29 instantiations of TestServer
Sockets.FunctionalTests (29)
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\Http2\HandshakeTests.cs (3)
48var ex = Assert.Throws<NotSupportedException>(() => new TestServer(context => 69await using (var server = new TestServer(context => 97await using (var server = new TestServer(context =>
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (3)
71await using (var server = new TestServer(context => 126await using (var server = new TestServer(async context => 177await using (var server = new TestServer(async context =>
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 (12)
200await using (var server = new TestServer(async context => 271await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 323await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 368await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 427await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 495await using (var server = new TestServer(async context => 638await using (var server = new TestServer(async context => 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))
33 references to TestServer
Sockets.FunctionalTests (33)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
106.UseSetting(WebHostDefaults.ApplicationKey, typeof(TestServer).Assembly.FullName)
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\Http2\HandshakeTests.cs (2)
69await using (var server = new TestServer(context => 97await using (var server = new TestServer(context =>
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (3)
71await using (var server = new TestServer(context => 126await using (var server = new TestServer(async context => 177await using (var server = new TestServer(async context =>
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 (13)
200await using (var server = new TestServer(async context => 271await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 323await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 368await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 427await using (var server = new TestServer(context => Task.CompletedTask, new TestServiceContext(LoggerFactory))) 495await using (var server = new TestServer(async context => 638await using (var server = new TestServer(async context => 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 => 987await using (var server = new TestServer(async context => 1053await using (var server = new TestServer(async context =>
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (11)
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)) 557await using (var server = new TestServer(App, testContext, configureListenOptions: _ => { }, 660await using (var server = new TestServer(async context => 801await using (var server = new TestServer(App, testContext, configureListenOptions: _ => { }, 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))