10 instantiations of MockTransportFactory
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
KestrelServerTests.cs (10)
274new KestrelServer(Options.Create<KestrelServerOptions>(null), new MockTransportFactory(), mockLoggerFactory.Object);
332new List<IConnectionListenerFactory>() { new ThrowingTransportFactory(), new MockTransportFactory() },
362var transportFactory = new MockTransportFactory();
432var mockTransportFactory = new MockTransportFactory();
459var mockTransportFactory = new MockTransportFactory();
490var mockTransportFactory = new MockTransportFactory();
518var mockTransportFactory = new MockTransportFactory();
737using (var server = new KestrelServerImpl(new[] { new MockTransportFactory() }, Array.Empty<IMultiplexedConnectionListenerFactory>(), new HttpsConfigurationService(), testContext))
974return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(testLogger) }));
979return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(throwOnCriticalErrors) }));
5 references to MockTransportFactory
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)