Skip to content

Commit 9df4255

Browse files
fix(#19): this commit fixes the tests so they use the testing environment during automated testing
1 parent 528e254 commit 9df4255

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.AspNetCore.Authentication;
22
using Microsoft.AspNetCore.Authorization;
3+
using Microsoft.AspNetCore.Hosting;
34

45
namespace Comanda.Payments.TestSuite.Fixtures;
56

@@ -28,6 +29,7 @@ public async ValueTask InitializeAsync()
2829
_factory = new WebApplicationFactory<Program>()
2930
.WithWebHostBuilder(builder =>
3031
{
32+
builder.UseEnvironment("Testing");
3133
builder.ConfigureServices(services =>
3234
{
3335
services.AddAuthentication(options =>

0 commit comments

Comments
 (0)