1 instantiation of TestServerOptions
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
74
: this(services, featureCollection, Options.Create(new
TestServerOptions
()))
6 references to TestServerOptions
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TestServerWithCustomConfigurationIntegrationTests.cs (1)
13
public Action<
TestServerOptions
> ConfigureOptions { get; set; }
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
594
var options = serviceProvider.GetService<IOptions<
TestServerOptions
>>();
Microsoft.AspNetCore.TestHost (4)
TestServer.cs (3)
38
public TestServer(IServiceProvider services, IOptions<
TestServerOptions
> optionsAccessor)
49
public TestServer(IServiceProvider services, IFeatureCollection featureCollection, IOptions<
TestServerOptions
> optionsAccessor)
53
var
options = optionsAccessor?.Value ?? throw new ArgumentNullException(nameof(optionsAccessor));
WebHostBuilderExtensions.cs (1)
42
public static IWebHostBuilder UseTestServer(this IWebHostBuilder builder, Action<
TestServerOptions
> configureOptions)