fix: make development database seeding reliable

This commit is contained in:
2026-07-30 10:03:45 +08:00
parent 98585aa521
commit bf370605d4
3 changed files with 9 additions and 0 deletions

View File

@@ -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]