start of manual testing
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user