File tree Expand file tree Collapse file tree
Boundaries/Comanda.Orchestrator/Tests/Fixtures Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public sealed class WebApplicationFixture : IAsyncLifetime
99 public IServiceProvider Services { get ; private set ; } = default ! ;
1010 private WebApplicationFactory < Program > _factory = default ! ;
1111
12- public async ValueTask InitializeAsync ( )
12+ public ValueTask InitializeAsync ( )
1313 {
1414 _factory = new WebApplicationFactory < Program > ( ) . WithWebHostBuilder ( builder =>
1515 {
@@ -22,7 +22,7 @@ public async ValueTask InitializeAsync()
2222 options . DefaultScheme = Defaults . AuthenticationScheme ;
2323 } ) ;
2424
25- policy . AddScheme < AuthenticationSchemeOptions , BypassAuthenticationHandler > ( Defaults . AuthenticationScheme , _ => { } ) ;
25+ policy . AddScheme < AuthenticationSchemeOptions , BypassAuthenticationHandler > ( Defaults . AuthenticationScheme , _ => { } ) ;
2626 services . AddAuthorizationBuilder ( )
2727 . SetDefaultPolicy ( new AuthorizationPolicyBuilder ( Defaults . AuthenticationScheme )
2828 . RequireAuthenticatedUser ( )
@@ -32,6 +32,8 @@ public async ValueTask InitializeAsync()
3232
3333 HttpClient = _factory . CreateClient ( ) ;
3434 Services = _factory . Services ;
35+
36+ return ValueTask . CompletedTask ;
3537 }
3638
3739 public async ValueTask DisposeAsync ( )
You can’t perform that action at this time.
0 commit comments