public IntegrationTestsFixture() { var clientOptions = new WebApplicationFactoryClientOptions { }; Factory = new LojaAppFactory <TStartup>(); Client = Factory.CreateClient(clientOptions); }
public IntegrationTestsFixture() { var clientOptions = new WebApplicationFactoryClientOptions { AllowAutoRedirect = true, BaseAddress = new Uri("http://localhost"), HandleCookies = true, MaxAutomaticRedirections = 7 }; Factory = new LojaAppFactory <TStartup>(); Client = Factory.CreateClient(clientOptions); //já olha direto para o servidor da aplição }
public IntegrationTestsFixture() { var clientOption = new WebApplicationFactoryClientOptions { AllowAutoRedirect = true, HandleCookies = true, BaseAddress = new Uri("http://localhost"), MaxAutomaticRedirections = 7 }; Factory = new LojaAppFactory <TStartup>(); Client = Factory.CreateClient(options: clientOption); }