1 instantiation of TestServer
IIS.Tests (1)
Utilities\TestServer.cs (1)
74var server = new TestServer(appBuilder, loggerFactory, isHttps);
72 references to TestServer
IIS.Microbenchmarks (2)
PlaintextBenchmark.cs (2)
19private TestServer _server; 26_server = TestServer.Create(builder => builder.UseMiddleware<PlaintextMiddleware>(), new LoggerFactory(), new IISServerOptions()).GetAwaiter().GetResult();
IIS.Tests (70)
ClientDisconnectTests.cs (16)
29using (var testServer = await TestServer.Create( 67using (var testServer = await TestServer.Create(async ctx => 110using (var testServer = await TestServer.Create(async ctx => 150using (var testServer = await TestServer.Create(async ctx => 192using (var testServer = await TestServer.Create(async ctx => 238using (var testServer = await TestServer.Create(async ctx => 291using (var testServer = await TestServer.Create(async ctx => 326using (var testServer = await TestServer.Create(
ConnectionIdFeatureTests.cs (2)
20using (var testServer = await TestServer.Create(ctx =>
HttpBodyControlFeatureTests.cs (2)
22using (var testServer = await TestServer.Create(
MaxRequestBodySizeTests.cs (20)
31using (var testServer = await TestServer.Create( 69using (var testServer = await TestServer.Create( 107using (var testServer = await TestServer.Create( 134using (var testServer = await TestServer.Create( 164using (var testServer = await TestServer.Create( 187using (var testServer = await TestServer.Create( 211using (var testServer = await TestServer.Create( 242using (var testServer = await TestServer.Create( 277using (var testServer = await TestServer.Create( 320using (var testServer = await TestServer.Create(
ResponseAbortTests.cs (12)
22using (var testServer = await TestServer.Create( 41using (var testServer = await TestServer.Create( 71using (var testServer = await TestServer.Create( 101using (var testServer = await TestServer.Create( 129using (var testServer = await TestServer.Create( 150using (var testServer = await TestServer.Create(async ctx =>
ResponseBodySizeTests.cs (2)
19using (var testServer = await TestServer.Create(
TestServerTest.cs (2)
24using (var testServer = await TestServer.Create(ctx =>
TlsHandshakeFeatureTests.cs (4)
21using (var testServer = await TestServer.CreateHttps(ctx => 65using (var testServer = await TestServer.Create(ctx =>
Utilities\SkipIfHostableWebCoreNotAvailibleAttribute.cs (2)
13public bool IsMet { get; } = File.Exists(TestServer.HostableWebCoreLocation); 15public string SkipReason { get; } = $"Hostable Web Core not available, {TestServer.HostableWebCoreLocation} not found.";
Utilities\TestServer.cs (8)
33internal static string BasePath => Path.Combine(Path.GetDirectoryName(typeof(TestServer).Assembly.Location), 70public static async Task<TestServer> Create(Action<IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory, IISServerOptions options, bool isHttps = false) 74var server = new TestServer(appBuilder, loggerFactory, isHttps); 81public static Task<TestServer> Create(RequestDelegate app, ILoggerFactory loggerFactory) 86public static Task<TestServer> Create(RequestDelegate app, ILoggerFactory loggerFactory, IISServerOptions options) 91public static Task<TestServer> CreateHttps(RequestDelegate app, ILoggerFactory loggerFactory) 116HttpClient = new HttpClient(new LoggingHandler(new SocketsHttpHandler(), _loggerFactory.CreateLogger<TestServer>())) 151.UseSetting(WebHostDefaults.ApplicationKey, typeof(TestServer).GetTypeInfo().Assembly.FullName)