Beispiel #1
0
        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
        }
Beispiel #3
0
        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);
        }