scaffold: EF design ref + initial migration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user