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