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