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