Skip to content

Commit 75cf09b

Browse files
fix(#19): this commit fixes the tests so they use the testing environment during automated testing
1 parent a8e328c commit 75cf09b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Boundaries/Comanda.Stores/Tests/Fixtures/WebApplicationFixture.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using Microsoft.AspNetCore.Hosting;
2+
13
namespace Comanda.Stores.TestSuite.Fixtures;
24

35
public sealed class WebApplicationFixture : IAsyncLifetime
@@ -25,6 +27,7 @@ public async ValueTask InitializeAsync()
2527
_factory = new WebApplicationFactory<Program>()
2628
.WithWebHostBuilder(builder =>
2729
{
30+
builder.UseEnvironment("Testing");
2831
builder.ConfigureServices(services =>
2932
{
3033
services.AddBypassAuthentication();

0 commit comments

Comments
 (0)