Skip to content

Commit 3e69611

Browse files
fix(#19): this commit updates the tests to use the testing environment during automated testing
1 parent 9df4255 commit 3e69611

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public async ValueTask InitializeAsync()
2525
_factory = new WebApplicationFactory<Program>()
2626
.WithWebHostBuilder(builder =>
2727
{
28+
builder.UseEnvironment("Testing");
2829
builder.ConfigureServices(services =>
2930
{
3031
services.AddAuthentication(options =>

Boundaries/Comanda.Orders/Tests/Usings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
global using Microsoft.AspNetCore.Authorization;
1010

1111
global using Microsoft.AspNetCore.Mvc.Testing;
12+
global using Microsoft.AspNetCore.Hosting;
1213
global using Microsoft.Extensions.DependencyInjection;
1314

1415
global using Comanda.Orders.WebApi;

0 commit comments

Comments
 (0)