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)
26await using (var server = new TestServer(TestApp.EchoApp, serviceContext, listenOptions)) 68await using (var server = new TestServer(TestApp.EmptyApp, serviceContext, listenOptions))
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
36await using (var server = new TestServer(_ => Task.CompletedTask, new TestServiceContext(LoggerFactory),
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (5)
738await using (var server = new TestServer(context => 772await using (var server = new TestServer(context => 808await using (var server = new TestServer(context => 855await using (var server = new TestServer(async httpContext => 1053await using (var server = new TestServer(async context =>
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (8)
154await using (var server = new TestServer(async httpContext => 208await using (var server = new TestServer(async httpContext => 299await using (var server = new TestServer(async context => 366await using (var server = new TestServer(async context => 434await using (var server = new TestServer(context => Task.CompletedTask, testServiceContext, listenOptions)) 894await using (var server = new TestServer(App, testContext, listenOptions)) 969await using (var server = new TestServer(App, testContext, listenOptions)) 1058await using (var server = new TestServer(App, testContext, listenOptions))