Improve testing and some cleanup refactoring.
This commit is contained in:
@@ -16,9 +16,9 @@ public class AccountDbContext(DbContextOptions<AccountDbContext> options) : DbCo
|
||||
|
||||
modelBuilder.Entity<Account>()
|
||||
.HasData(
|
||||
new Account(1, 10000000.00m, "Credit"),
|
||||
new Account(2, 50000000.00m, "Liability"),
|
||||
new Account(99999, 0.00m, "Revenue")
|
||||
new Account(1, 10000000.00m, AccountType.Credit),
|
||||
new Account(2, 50000000.00m, AccountType.Liability),
|
||||
new Account(99999, 0.00m, AccountType.Revenue)
|
||||
);
|
||||
|
||||
modelBuilder.Entity<JournalEntry>(builder =>
|
||||
|
||||
+7
-7
@@ -7,16 +7,16 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\FinancialApi.Application\FinancialApi.Application.csproj" />
|
||||
<ProjectReference Include="..\FinancialApi.Domain\FinancialApi.Domain.csproj" />
|
||||
<ProjectReference Include="..\FinancialApi.Application\FinancialApi.Application.csproj"/>
|
||||
<ProjectReference Include="..\FinancialApi.Domain\FinancialApi.Domain.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.9" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.9" />
|
||||
<PackageReference Include="WolverineFx" Version="6.18.0" />
|
||||
<PackageReference Include="WolverineFx.EntityFrameworkCore" Version="6.18.0" />
|
||||
<PackageReference Include="WolverineFx.Sqlite" Version="6.18.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.9"/>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.9"/>
|
||||
<PackageReference Include="WolverineFx" Version="6.18.0"/>
|
||||
<PackageReference Include="WolverineFx.EntityFrameworkCore" Version="6.18.0"/>
|
||||
<PackageReference Include="WolverineFx.Sqlite" Version="6.18.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user