private FunctionTestServer(IHostBuilder builder) { _testLoggerProvider = new MemoryLoggerProvider(); var host = builder .ConfigureWebHost(webBuilder => webBuilder.UseTestServer()) .ConfigureLogging(logging => logging.AddProvider(_testLoggerProvider)) .Build(); host.Start(); Server = host.GetTestServer(); }
internal FunctionTestServer(TestServer server, Type functionTarget) { Server = server; FunctionTarget = functionTarget; _testLoggerProvider = server.Services.GetRequiredService <MemoryLoggerProvider>(); }