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 => 183await using (var server = new TestServer(context => 208await using (var server = new TestServer(App, new TestServiceContext(LoggerFactory), listenOptions => 234await using (var server = new TestServer(context => 262await using (var server = new TestServer(context => 289await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 319await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 352await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 387await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 422await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 456await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 484await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 514await using (var server = new TestServer(context => 550await using var server = new TestServer(async context => 594await using var server = new TestServer(async context => 635await using var server = new TestServer(async context => 678await using var server = new TestServer(async context => 726await using var server = new TestServer(async context => 768await using var server = new TestServer(async context => 846await using (var server = new TestServer( 895await using var server = new TestServer(async context => 932await using var server = new TestServer(context => Task.CompletedTask, 965await using var server = new TestServer(context => Task.CompletedTask, 998await using var server = new TestServer(context => Task.CompletedTask, 1031await using var server = new TestServer(async context => 1078await using var server = new TestServer(async context => 1122await using (var server = new TestServer(context => context.Response.WriteAsync(context.Request.Scheme), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1145await using (var server = new TestServer(context => context.Response.WriteAsync("hello world"), new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1183await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1210await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1235await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1260await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1294await using (var server = new TestServer(app, new TestServiceContext(LoggerFactory), ConfigureListenOptions)) 1393await 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 =>