scaffold: EF design ref + initial migration

This commit is contained in:
cesnimda
2026-06-30 16:08:26 +02:00
parent f43ef5f945
commit 29a4aa2212
5 changed files with 1971 additions and 1 deletions
@@ -18,7 +18,11 @@ public class TestAppFactory : WebApplicationFactory<Program>
{
builder.ConfigureHostConfiguration(cfg => cfg.AddInMemoryCollection(new Dictionary<string, string?>
{
["Database:AutoMigrate"] = "false"
["Database:AutoMigrate"] = "false",
// Dummy OAuth creds so the Google challenge produces a real 302 redirect
// (an empty ClientId can make the handler throw instead of redirecting).
["GoogleOAuth:ClientId"] = "test-client-id",
["GoogleOAuth:ClientSecret"] = "test-client-secret"
}));
return base.CreateHost(builder);
}