forked from xiongyuxing/tiku-backend.net
fix: make development database seeding reliable
This commit is contained in:
@@ -100,6 +100,10 @@ public sealed class PlatformAdminBootstrapperTests
|
||||
Assert.Equal(BackendPermissions.Platform.Count, await context.PlatformBackendRolePermissions.CountAsync());
|
||||
Assert.Single(context.PlatformBackendUserRoles);
|
||||
Assert.Single(context.AuditLogs);
|
||||
var quote = await context.PlatformBillingQuotes.SingleAsync();
|
||||
Assert.Equal(quote.OriginalAmountCents - quote.DiscountAmountCents, quote.TotalAmountCents);
|
||||
var order = await context.PlatformBillingOrders.SingleAsync();
|
||||
Assert.Equal(order.OriginalAmountCents - order.DiscountAmountCents, order.TotalAmountCents);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user