19 references to TestServer
InMemory.FunctionalTests (19)
ConnectionLimitTests.cs (1)
244
return new
TestServer
(app, serviceContext, listenOptions);
ConnectionMiddlewareTests.cs (8)
50
await using (var server = new
TestServer
(requestDelegate, serviceContext, listenOptions))
140
await using (var server = new
TestServer
(requestDelegate, serviceContext, listenOptions))
163
await using (var server = new
TestServer
(requestDelegate, serviceContext, listenOptions))
192
await using (var server = new
TestServer
(requestDelegate, serviceContext, listenOptions))
223
await using (var server = new
TestServer
(TestApp.EchoApp, serviceContext, listenOptions))
252
await using (var server = new
TestServer
(requestDelegate, serviceContext, listenOptions))
276
await using (var server = new
TestServer
(async context =>
307
await using (var server = new
TestServer
(async context =>
HttpProtocolSelectionTests.cs (2)
67
await using (var server = new
TestServer
(context => Task.CompletedTask, testContext, listenOptions))
86
await using (var server = new
TestServer
(context => Task.CompletedTask, testContext, listenOptions))
KestrelMetricsTests.cs (5)
69
await using var server = new
TestServer
(EchoApp, serviceContext, listenOptions);
128
await using var server = new
TestServer
(EchoApp, serviceContext, listenOptions);
348
await using var server = new
TestServer
(EchoApp, serviceContext, listenOptions);
462
await using var server = new
TestServer
(EchoApp, serviceContext, listenOptions);
502
await using var server = new
TestServer
(UpgradeApp, serviceContext, listenOptions);
ResponseDrainingTests.cs (1)
28
await using (var server = new
TestServer
(context =>
ResponseTests.cs (1)
4475
await using (var server = new
TestServer
(
TestTransport\TestServer.cs (1)
44
:
this
(app, context, new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)))