61 references to TestServer
InMemory.FunctionalTests (61)
ConnectionMiddlewareTests.cs (2)
74await using (var server = new TestServer(requestDelegate, serviceContext, listenOptions => 104await using (var server = new TestServer(requestDelegate, serviceContext, listenOptions =>
EventSourceTests.cs (2)
149await using (var server = new TestServer(context => 271await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory),
Http2\Http2EndToEndTests.cs (1)
31await using var server = new TestServer(async context =>
Http2\TlsTests.cs (1)
41await using (var server = new TestServer(context =>
HttpsConnectionMiddlewareTests.cs (37)
58await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 92await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 112await using (var server = new TestServer(context => 143await using (var server = new TestServer(context => 181await using (var server = new TestServer(context => 204await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), listenOptions => 230await using (var server = new TestServer(context => 258await using (var server = new TestServer(context => 285await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 315await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 348await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 383await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 418await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 452await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 480await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 510await using (var server = new TestServer(context => 546await using var server = new TestServer(async context => 590await using var server = new TestServer(async context => 631await using var server = new TestServer(async context => 674await using var server = new TestServer(async context => 722await using var server = new TestServer(async context => 764await using var server = new TestServer(async context => 842await using (var server = new TestServer( 891await using var server = new TestServer(async context => 928await using var server = new TestServer(context => Task.CompletedTask, 961await using var server = new TestServer(context => Task.CompletedTask, 994await using var server = new TestServer(context => Task.CompletedTask, 1027await using var server = new TestServer(async context => 1074await using var server = new TestServer(async context => 1118await using (var server = new TestServer(context => context.Response.WriteAsync(context.Request.Scheme), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1141await using (var server = new TestServer(context => context.Response.WriteAsync("hello world"), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1179await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1206await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1231await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1256await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1290await using (var server = new TestServer(app, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1389await using var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions);
HttpsTests.cs (12)
83await using (var server = new TestServer(context => Task.CompletedTask, 175await using (var server = new TestServer(context => Task.CompletedTask, 203await using (var server = new TestServer(context => Task.CompletedTask, 232await using (var server = new TestServer(async httpContext => 279await using (var server = new TestServer(async httpContext => 322await using (var server = new TestServer(context => Task.CompletedTask, 348await using (var server = new TestServer(context => Task.CompletedTask, 370await using (var server = new TestServer(context => Task.CompletedTask, 400await using (var server = new TestServer(context => Task.CompletedTask, 683await using (var server = new TestServer(context => Task.CompletedTask, 719await using (var server = new TestServer(context => Task.CompletedTask, 755await using (var server = new TestServer(context => Task.CompletedTask,
KestrelMetricsTests.cs (5)
537var server = new TestServer(async context => 619var server = new TestServer(async context => 684await using (var server = new TestServer(context => 771var server = new TestServer( 852await using (var server = new TestServer(context =>
LoggingConnectionMiddlewareTests.cs (1)
20await using (var server = new TestServer(context =>