public UserControllerTests(IntegrationTestWebApplicationFactory <Startup> factory) { _existingUserClient = factory.WithWebHostBuilder(builder => { builder.ConfigureTestServices(ConfigureAuthenticationHandler); }).CreateDefaultClient(new UnwrappingResponseHandler()); _clientFactory = factory; }
public SurveyControllerTests(IntegrationTestWebApplicationFactory <Startup> factory) { _authenticatedClient = factory.WithWebHostBuilder(builder => { builder.ConfigureTestServices(services => { services.AddAuthentication("Test") .AddScheme <AuthenticationSchemeOptions, TestAuthHandler>( "Test", options => { }); }); }).CreateDefaultClient(new UnwrappingResponseHandler()); _unauthenticatedClient = factory.CreateClient(); }
public SurveyControllerTests(IntegrationTestWebApplicationFactory <Startup> factory) { _factory = factory; }
public AdminControllerTests(IntegrationTestWebApplicationFactory <Startup> factory) { _client = factory.CreateClient(); }