17 references to TestServer
Sockets.FunctionalTests (17)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
42
:
this
(app, context, new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)))
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (2)
26
await using (var server = new
TestServer
(TestApp.EchoApp, serviceContext, listenOptions))
68
await using (var server = new
TestServer
(TestApp.EmptyApp, serviceContext, listenOptions))
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
36
await using (var server = new
TestServer
(_ => Task.CompletedTask, new TestServiceContext(LoggerFactory),
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (5)
738
await using (var server = new
TestServer
(context =>
772
await using (var server = new
TestServer
(context =>
808
await using (var server = new
TestServer
(context =>
855
await using (var server = new
TestServer
(async httpContext =>
1053
await using (var server = new
TestServer
(async context =>
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (8)
154
await using (var server = new
TestServer
(async httpContext =>
208
await using (var server = new
TestServer
(async httpContext =>
299
await using (var server = new
TestServer
(async context =>
366
await using (var server = new
TestServer
(async context =>
434
await using (var server = new
TestServer
(context => Task.CompletedTask, testServiceContext, listenOptions))
894
await using (var server = new
TestServer
(App, testContext, listenOptions))
969
await using (var server = new
TestServer
(App, testContext, listenOptions))
1058
await using (var server = new
TestServer
(App, testContext, listenOptions))