We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8e328c commit 75cf09bCopy full SHA for 75cf09b
1 file changed
Boundaries/Comanda.Stores/Tests/Fixtures/WebApplicationFixture.cs
@@ -1,3 +1,5 @@
1
+using Microsoft.AspNetCore.Hosting;
2
+
3
namespace Comanda.Stores.TestSuite.Fixtures;
4
5
public sealed class WebApplicationFixture : IAsyncLifetime
@@ -25,6 +27,7 @@ public async ValueTask InitializeAsync()
25
27
_factory = new WebApplicationFactory<Program>()
26
28
.WithWebHostBuilder(builder =>
29
{
30
+ builder.UseEnvironment("Testing");
31
builder.ConfigureServices(services =>
32
33
services.AddBypassAuthentication();
0 commit comments