public void StartWebApp() { _staticApiServer = MockApiServer.Start(); var webApp = new CustomWebApplicationFactory <Startup>(); _server = webApp.Server; _staticClient = new CustomWebApplicationFactory <Startup>().CreateClient(new WebApplicationFactoryClientOptions { HandleCookies = false }); _context.Set(_server, ContextKeys.TestServer); _context.Set(_staticClient, ContextKeys.HttpClient); }
public static void StartEnvironment() { _staticServer = MockApiServer.Start(); _staticClient = new WebApplicationFactory <Startup>().CreateClient(); }