private TestServer <GraphSchema> CreateTestServer(out TestLogger logInstance) { // fake a logger with a single instance that will accept // log entries from the run time so they can be validated in the test. logInstance = new TestLogger(); var builder = new TestServerBuilder(); builder.AddGraphType <LogTestController>(); builder.AddGraphQLLocalQueryCache(); builder.Logging.AddLoggerProvider(new TestLoggingProvider(logInstance)); builder.Logging.SetMinimumLogLevel(LogLevel.Trace); return(builder.Build()); }