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