34 instantiations of TestServiceContext
Sockets.FunctionalTests (34)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
37: this(app, new TestServiceContext())
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (2)
24var serviceContext = new TestServiceContext(LoggerFactory); 66var serviceContext = new TestServiceContext(LoggerFactory);
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (3)
51}, new TestServiceContext(LoggerFactory), 77}, new TestServiceContext(LoggerFactory), 105}, new TestServiceContext(LoggerFactory),
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (3)
67var testContext = new TestServiceContext(LoggerFactory); 122var testContext = new TestServiceContext(LoggerFactory); 169var testContext = new TestServiceContext(LoggerFactory)
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)
210}, new TestServiceContext(LoggerFactory))) 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))) 500new TestServiceContext(LoggerFactory))) 656}, new TestServiceContext(LoggerFactory))) 734var testContext = new TestServiceContext(LoggerFactory); 769var testContext = new TestServiceContext(LoggerFactory); 805var testContext = new TestServiceContext(LoggerFactory); 849var testContext = new TestServiceContext(LoggerFactory); 971var testContext = new TestServiceContext(LoggerFactory) 1049var testContext = new TestServiceContext(LoggerFactory);
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (11)
168}, new TestServiceContext(LoggerFactory), listenOptions)) 206var testServiceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 284var testContext = new TestServiceContext(LoggerFactory) 378}, new TestServiceContext(LoggerFactory), listenOptions)) 433var testServiceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 507var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 641var testContext = new TestServiceContext(LoggerFactory) 762var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 861var testContext = new TestServiceContext(LoggerFactory) 938var testContext = new TestServiceContext(LoggerFactory) 1025var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))
26 references to TestServiceContext
Sockets.FunctionalTests (26)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (6)
41public TestServer(RequestDelegate app, TestServiceContext context) 46public TestServer(RequestDelegate app, TestServiceContext context, ListenOptions listenOptions) 51public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions, Action<IServiceCollection> configureServices = null) 67public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel) 72public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices) 127public TestServiceContext Context { get; }
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (2)
24var serviceContext = new TestServiceContext(LoggerFactory); 66var serviceContext = new TestServiceContext(LoggerFactory);
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (3)
67var testContext = new TestServiceContext(LoggerFactory); 122var testContext = new TestServiceContext(LoggerFactory); 169var testContext = new TestServiceContext(LoggerFactory)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (6)
734var testContext = new TestServiceContext(LoggerFactory); 769var testContext = new TestServiceContext(LoggerFactory); 805var testContext = new TestServiceContext(LoggerFactory); 849var testContext = new TestServiceContext(LoggerFactory); 971var testContext = new TestServiceContext(LoggerFactory) 1049var testContext = new TestServiceContext(LoggerFactory);
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (9)
206var testServiceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 284var testContext = new TestServiceContext(LoggerFactory) 433var testServiceContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)); 507var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 641var testContext = new TestServiceContext(LoggerFactory) 762var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) 861var testContext = new TestServiceContext(LoggerFactory) 938var testContext = new TestServiceContext(LoggerFactory) 1025var testContext = new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))