start of manual testing

This commit is contained in:
hamid
2026-07-27 00:54:22 +03:30
parent 12ce7fa7de
commit bd06ef0016
21 changed files with 2289 additions and 12 deletions
+5 -2
View File
@@ -131,6 +131,7 @@ if (args.Any(a => string.Equals(a, "migrate", StringComparison.OrdinalIgnoreCase
{
await app.SeedPaymentGatewaysAsync();
await app.SeedDemoWorldAsync();
await app.SeedDemoLifecycleAsync();
}
return;
}
@@ -142,12 +143,14 @@ if (!app.Environment.IsEnvironment("Testing"))
if (app.Environment.IsDevelopment())
{
// Local convenience: apply migrations + seed on boot. Development-only: a sandbox payment gateway
// (all-zeros merchant id) and a demo marketplace (nurses/variants/search rows, customers/patients) so the
// real-path screens aren't empty. Neither belongs in a deployed DB — both are idempotent.
// (all-zeros merchant id), a demo marketplace (nurses/variants/search rows, customers/patients), and
// the lifecycle demo world (bookings/money/reviews/tickets in every state) so the real-path screens
// aren't empty. None of it belongs in a deployed DB — all are idempotent.
await app.ApplyMigrationsAsync();
await app.SeedDefaultUsersAsync();
await app.SeedPaymentGatewaysAsync();
await app.SeedDemoWorldAsync();
await app.SeedDemoLifecycleAsync();
}
else
{