public CreateAccountShould( AuthenticationWebApplicationFactory <Startup> factory) { var client = factory.CreateClient(new WebApplicationFactoryClientOptions { AllowAutoRedirect = false }); _requestHelper = new RequestHelper(client); }
private static HttpClient GetClient(AuthenticationWebApplicationFactory <Startup> factory) { var client = factory.CreateClient( new WebApplicationFactoryClientOptions { HandleCookies = false, AllowAutoRedirect = false, } ); return(client); }