81 instantiations of TestServer
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
429protected virtual TestServer CreateServer(IWebHostBuilder builder) => new(builder);
Microsoft.AspNetCore.SignalR.Client.Tests (2)
TestServerTests.cs (2)
35var server = new TestServer(builder); 87var server = new TestServer(builder);
Microsoft.AspNetCore.TestHost.Tests (78)
ClientHandlerTests.cs (1)
706var server = new TestServer(builder);
HttpContextBuilderTests.cs (15)
21var server = new TestServer(builder); 52var server = new TestServer(builder); 67var server = new TestServer(builder); 88var server = new TestServer(builder); 106var server = new TestServer(builder); 134var server = new TestServer(builder); 158var server = new TestServer(builder); 182var server = new TestServer(builder); 204var server = new TestServer(builder); 230var server = new TestServer(builder); 253var server = new TestServer(builder); 276var server = new TestServer(builder); 294var server = new TestServer(builder); 321var server = new TestServer(builder); 341var server = new TestServer(builder);
RequestBuilderTests.cs (3)
14var server = new TestServer(builder); 27var server = new TestServer(builder); 42var server = new TestServer(builder);
TestClientTests.cs (26)
30var server = new TestServer(builder); 52var server = new TestServer(builder); 74var server = new TestServer(builder); 94var server = new TestServer(builder); 112var server = new TestServer(builder); 148var server = new TestServer(builder); 193var server = new TestServer(builder); 250var server = new TestServer(builder); 301var server = new TestServer(builder); 358var server = new TestServer(builder); 420var server = new TestServer(builder); 467var server = new TestServer(builder); 518var server = new TestServer(builder); 610var server = new TestServer(builder); 676var server = new TestServer(builder); 726var server = new TestServer(builder); 770var server = new TestServer(builder); 803var server = new TestServer(builder); 848var server = new TestServer(builder); 877using var server = new TestServer(builder); 902var server = new TestServer(builder); 927var server = new TestServer(builder) 950var server = new TestServer(builder); 976var server = new TestServer(builder); 1003var server = new TestServer(builder); 1021using (var testServer = new TestServer(new WebHostBuilder()
TestServerTests.cs (30)
32services.AddSingleton<IServer>(serviceProvider => new TestServer(serviceProvider)); 95new TestServer(new WebHostBuilder().Configure(app => { })); 118Assert.Throws<InvalidOperationException>(() => new TestServer(builder)); 130var host = new TestServer(builder); 173new TestServer(builder); 186var server = new TestServer(builder); 201var server = new TestServer(builder); 220var server = new TestServer(builder); 254var server = new TestServer(builder); 276new TestServer(builder, featureCollection); 294new TestServer(builder); 306Assert.Throws<ArgumentNullException>(() => new TestServer(builder, null)); 316var testServer = new TestServer(serviceProvider); 332var testServer = new TestServer(builder); 438var server = new TestServer(builder); 460var server = new TestServer(builder); 508var server = new TestServer(builder); 549var server = new TestServer(builder); 566var server = new TestServer(builder); 587var server = new TestServer(builder); 619var server = new TestServer(builder); 635var server = new TestServer(builder); 652var server = new TestServer(builder); 670var server = new TestServer(builder); 691var server = new TestServer(builder); 701var server = new TestServer(builder); 713var server = new TestServer(builder); 734var server = new TestServer(builder); 761var server = new TestServer(builder); 787var server = new TestServer(builder);
WebSocketClientTests.cs (3)
22using (var testServer = new TestServer(new WebHostBuilder() 59using (var testServer = new TestServer(new WebHostBuilder() 97using (var testServer = new TestServer(new WebHostBuilder()
1095 references to TestServer
Diagnostics.EFCore.FunctionalTests (17)
DatabaseErrorPageMiddlewareTest.cs (11)
41var server = host.GetTestServer(); 78var server = host.GetTestServer(); 105using var server = host.GetTestServer(); 138using var server = host.GetTestServer(); 199using var server = host.GetTestServer(); 238using var server = host.GetTestServer(); 278using var server = host.GetTestServer(); 360var server = host.GetTestServer(); 399using var server = host.GetTestServer(); 447using var server = host.GetTestServer(); 484using var server = host.GetTestServer();
MigrationsEndPointMiddlewareTest.cs (6)
38var server = host.GetTestServer(); 113var server = host.GetTestServer(); 157var server = host.GetTestServer(); 185var server = host.GetTestServer(); 215var server = host.GetTestServer(); 254var server = host.GetTestServer();
Diagnostics.FunctionalTests (1)
TestFixture.cs (1)
14private readonly TestServer _server;
Microsoft.AspNetCore.Authentication.Negotiate.Test (49)
EventTests.cs (19)
38var server = host.GetTestServer(); 62var server = host.GetTestServer(); 86var server = host.GetTestServer(); 110var server = host.GetTestServer(); 134var server = host.GetTestServer(); 160var server = host.GetTestServer(); 185var server = host.GetTestServer(); 210var server = host.GetTestServer(); 235var server = host.GetTestServer(); 260var server = host.GetTestServer(); 288var server = host.GetTestServer(); 314var server = host.GetTestServer(); 336var server = host.GetTestServer(); 360var server = host.GetTestServer(); 383var server = host.GetTestServer(); 389private static async Task KerberosStage1And2Auth(TestServer server, TestConnection testConnection) 395private static async Task KerberosStage1Auth(TestServer server, TestConnection testConnection) 402private static async Task KerberosStage2Auth(TestServer server, TestConnection testConnection) 457private static Task<HttpContext> SendAsync(TestServer server, string path, TestConnection connection, string authorizationHeader = null)
NegotiateHandlerTests.cs (30)
27var server = host.GetTestServer(); 37var server = host.GetTestServer(); 47var server = host.GetTestServer(); 57var server = host.GetTestServer(); 68var server = host.GetTestServer(); 80var server = host.GetTestServer(); 90var server = host.GetTestServer(); 102var server = host.GetTestServer(); 114var server = host.GetTestServer(); 125var server = host.GetTestServer(); 136var server = host.GetTestServer(); 148var server = host.GetTestServer(); 175var server = host.GetTestServer(); 201var server = host.GetTestServer(); 223var server = host.GetTestServer(); 235var server = host.GetTestServer(); 247var server = host.GetTestServer(); 284var server = host.GetTestServer(); 297var server = host.GetTestServer(); 308var server = host.GetTestServer(); 319var server = host.GetTestServer(); 325private static async Task AuthenticateAndRetrieveRBACClaims(TestServer server, TestConnection testConnection) 333private static async Task KerberosAuth(TestServer server, TestConnection testConnection) 340private static async Task KerberosStage1And2Auth(TestServer server, TestConnection testConnection) 346private static async Task KerberosStage1Auth(TestServer server, TestConnection testConnection) 353private static async Task KerberosStage2Auth(TestServer server, TestConnection testConnection) 360private static async Task NtlmStage1And2Auth(TestServer server, TestConnection testConnection) 366private static async Task NtlmStage1Auth(TestServer server, TestConnection testConnection) 373private static async Task NtlmStage2Auth(TestServer server, TestConnection testConnection) 480private static Task<HttpContext> SendAsync(TestServer server, string path, TestConnection connection, string authorizationHeader = null, bool http2 = false)
Microsoft.AspNetCore.Authentication.Test (399)
AuthenticationMiddlewareTests.cs (1)
55using var server = host.GetTestServer();
CertificateTests.cs (29)
56using var server = host.GetTestServer(); 72using var server = host.GetTestServer(); 87using var server = host.GetTestServer(); 103using var server = host.GetTestServer(); 119using var server = host.GetTestServer(); 136using var server = host.GetTestServer(); 153using var server = host.GetTestServer(); 171using var server = host.GetTestServer(); 188using var server = host.GetTestServer(); 206using var server = host.GetTestServer(); 223using var server = host.GetTestServer(); 239using var server = host.GetTestServer(); 256using var server = host.GetTestServer(); 270using var server = host.GetTestServer(); 284using var server = host.GetTestServer(); 307using var server = host.GetTestServer(); 325using var server = host.GetTestServer(); 342using var server = host.GetTestServer(); 360using var server = host.GetTestServer(); 377using var server = host.GetTestServer(); 393using var server = host.GetTestServer(); 410using var server = host.GetTestServer(); 429using var server = host.GetTestServer(); 447using var server = host.GetTestServer(); 464using var server = host.GetTestServer(); 595using var server = host.GetTestServer(); 665using var server = host.GetTestServer(); 722using var server = host.GetTestServer(); 901var server = host.GetTestServer();
CookieTests.cs (60)
39using var server = host.GetTestServer(); 48using var server = host.GetTestServer(); 60using var server = host.GetTestServer(); 72using var server = host.GetTestServer(); 84using var server = host.GetTestServer(); 96using var server = host.GetTestServer(); 135using var server = host.GetTestServer(); 198using var server = host.GetTestServer(); 233using var server = host.GetTestServer(); 268using var server = host.GetTestServer(); 304using var server = host.GetTestServer(); 318using var server = host.GetTestServer(); 341using var server = host.GetTestServer(); 370using var server1 = host.GetTestServer(); 392using var server2 = host2.GetTestServer(); 410using var server = host.GetTestServer(); 427using var server = host.GetTestServer(); 446using var server = host.GetTestServer(); 480using var server = host.GetTestServer(); 520using var server = host.GetTestServer(); 551using var server = host.GetTestServer(); 579using var server = host.GetTestServer(); 616using var server = host.GetTestServer(); 661using var server = host.GetTestServer(); 694using var server = host.GetTestServer(); 737using var server = host.GetTestServer(); 793using var server = host.GetTestServer(); 852using var server = host.GetTestServer(); 898using var server = host.GetTestServer(); 950using var server = host.GetTestServer(); 997using var server = host.GetTestServer(); 1027using var server = host.GetTestServer(); 1073using var server = host.GetTestServer(); 1121using var server = host.GetTestServer(); 1164using var server = host.GetTestServer(); 1175using var server = host.GetTestServer(); 1189using var server = host.GetTestServer(); 1204using var server = host.GetTestServer(); 1220using var server = host.GetTestServer(); 1248using var server = host.GetTestServer(); 1284using var server = host.GetTestServer(); 1310using var server = host.GetTestServer(); 1338using var server = host.GetTestServer(); 1362using var server = host.GetTestServer(); 1384using var server = host.GetTestServer(); 1410using var server = host.GetTestServer(); 1432using var server = host.GetTestServer(); 1458using var server = host.GetTestServer(); 1483using var server = host.GetTestServer(); 1511using var server = host.GetTestServer(); 1534using var server = host.GetTestServer(); 1556using var server = host.GetTestServer(); 1579using var server = host.GetTestServer(); 1602using var server = host.GetTestServer(); 1625using var server = host.GetTestServer(); 1656using var server1 = host1.GetTestServer(); 1680using var server2 = host2.GetTestServer(); 1725using var server = host.GetTestServer(); 1881var server = host.GetTestServer(); 1903private static async Task<Transaction> SendAsync(TestServer server, string uri, string cookieHeader = null)
DynamicSchemeTests.cs (2)
30using var server = host.GetTestServer(); 62using var server = host.GetTestServer();
FacebookTests.cs (11)
56using var server = host.GetTestServer(); 72using var server = host.GetTestServer(); 108using var server = host.GetTestServer(); 137using var server = host.GetTestServer(); 169using var server = host.GetTestServer(); 201using var server = host.GetTestServer(); 229using var server = host.GetTestServer(); 262using var server = host.GetTestServer(); 297using var server = host.GetTestServer(); 362using var server = host.GetTestServer(); 432using var server = host.GetTestServer();
GoogleTests.cs (30)
53using var server = host.GetTestServer(); 84using var server = host.GetTestServer(); 97using var server = host.GetTestServer(); 110using var server = host.GetTestServer(); 123using var server = host.GetTestServer(); 136using var server = host.GetTestServer(); 149using var server = host.GetTestServer(); 185using var server = host.GetTestServer(); 237using var server = host.GetTestServer(); 293using var server = host.GetTestServer(); 332using var server = host.GetTestServer(); 357using var server = host.GetTestServer(); 370using var server = host.GetTestServer(); 395using var server = host.GetTestServer(); 434using var server = host.GetTestServer(); 477using var server = host.GetTestServer(); 513using var server = host.GetTestServer(); 554using var server = host.GetTestServer(); 621using var server = host.GetTestServer(); 673using var server = host.GetTestServer(); 717using var server = host.GetTestServer(); 757using var server = host.GetTestServer(); 804using var server = host.GetTestServer(); 823using var server = host.GetTestServer(); 848using var server = host.GetTestServer(); 878using var server = host.GetTestServer(); 922using var server = host.GetTestServer(); 966using var server = host.GetTestServer(); 1003using var server = host.GetTestServer(); 1065using var server = host.GetTestServer();
JwtBearerTests.cs (33)
79using var server = host.GetTestServer(); 117using var server = host.GetTestServer(); 161using var server = host.GetTestServer(); 170using var server = host.GetTestServer(); 213using var server = host.GetTestServer(); 244using var server = host.GetTestServer(); 254using var server = host.GetTestServer(); 263using var server = host.GetTestServer(); 272using var server = host.GetTestServer(); 290using var server = host.GetTestServer(); 317using var server = host.GetTestServer(); 341using var server = host.GetTestServer(); 361using var server = host.GetTestServer(); 381using var server = host.GetTestServer(); 414using var server = host.GetTestServer(); 463using var server = host.GetTestServer(); 475using var server = host.GetTestServer(); 515using var server = host.GetTestServer(); 544using var server = host.GetTestServer(); 578using var server = host.GetTestServer(); 613using var server = host.GetTestServer(); 650using var server = host.GetTestServer(); 685using var server = host.GetTestServer(); 722using var server = host.GetTestServer(); 757using var server = host.GetTestServer(); 782using var server = host.GetTestServer(); 805using var server = host.GetTestServer(); 832using var server = host.GetTestServer(); 860using var server = host.GetTestServer(); 908using var server = host.GetTestServer(); 950using var server = host.GetTestServer(); 994using var server = host.GetTestServer(); 1248private static async Task<Transaction> SendAsync(TestServer server, string uri, string authorizationHeader = null)
JwtBearerTests_Handler.cs (33)
70using var server = host.GetTestServer(); 107using var server = host.GetTestServer(); 151using var server = host.GetTestServer(); 160using var server = host.GetTestServer(); 200using var server = host.GetTestServer(); 230using var server = host.GetTestServer(); 240using var server = host.GetTestServer(); 249using var server = host.GetTestServer(); 258using var server = host.GetTestServer(); 273using var server = host.GetTestServer(); 297using var server = host.GetTestServer(); 318using var server = host.GetTestServer(); 335using var server = host.GetTestServer(); 352using var server = host.GetTestServer(); 384using var server = host.GetTestServer(); 432using var server = host.GetTestServer(); 444using var server = host.GetTestServer(); 481using var server = host.GetTestServer(); 507using var server = host.GetTestServer(); 540using var server = host.GetTestServer(); 574using var server = host.GetTestServer(); 608using var server = host.GetTestServer(); 640using var server = host.GetTestServer(); 674using var server = host.GetTestServer(); 706using var server = host.GetTestServer(); 730using var server = host.GetTestServer(); 752using var server = host.GetTestServer(); 778using var server = host.GetTestServer(); 805using var server = host.GetTestServer(); 853using var server = host.GetTestServer(); 894using var server = host.GetTestServer(); 937using var server = host.GetTestServer(); 1307private static async Task<Transaction> SendAsync(TestServer server, string uri, string authorizationHeader = null)
MicrosoftAccountTests.cs (11)
62using var server = host.GetTestServer(); 78using var server = host.GetTestServer(); 91using var server = host.GetTestServer(); 104using var server = host.GetTestServer(); 117using var server = host.GetTestServer(); 142using var server = host.GetTestServer(); 160using var server = host.GetTestServer(); 178using var server = host.GetTestServer(); 239using var server = host.GetTestServer(); 265using var server = host.GetTestServer(); 332using var server = host.GetTestServer();
OAuthTests.cs (17)
46using var server = host.GetTestServer(); 62using var server = host.GetTestServer(); 78using var server = host.GetTestServer(); 94using var server = host.GetTestServer(); 110using var server = host.GetTestServer(); 130using var server = host.GetTestServer(); 158using var server = host.GetTestServer(); 188using var server = host.GetTestServer(); 214using var server = host.GetTestServer(); 243using var server = host.GetTestServer(); 272using var server = host.GetTestServer(); 309using var server = host.GetTestServer(); 344using var server = host.GetTestServer(); 380using var server = host.GetTestServer(); 416using var server = host.GetTestServer(); 465using var server = host.GetTestServer(); 506using var server = host.GetTestServer();
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (3)
27var server = settings.CreateTestServer(handler: async context => 52var server = settings.CreateTestServer(handler: async context => 94var server = settings.CreateTestServer();
OpenIdConnect\OpenIdConnectChallengeTests.cs (32)
32var server = settings.CreateTestServer(); 65var server = settings.CreateTestServer(); 100var server = settings.CreateTestServer(); 121var server = settings.CreateTestServer(); 160var server = settings.CreateTestServer(); 193var server = settings.CreateTestServer(properties); 228var server = settings.CreateTestServer(); 269var server = settings.CreateTestServer(); 308var server = settings.CreateTestServer(); 352var server = settings.CreateTestServer(); 386var server = settings.CreateTestServer(); 416var server = settings.CreateTestServer(); 435var server = settings.CreateTestServer(); 469var server = settings.CreateTestServer(); 484var server = settings.CreateTestServer(); 506var server = settings.CreateTestServer(); 527var server = settings.CreateTestServer(); 551var server = settings.CreateTestServer(properties); 573var server = settings.CreateTestServer(properties); 597var server = settings.CreateTestServer(properties); 621var server = settings.CreateTestServer(properties); 645var server = settings.CreateTestServer(properties); 667var server = settings.CreateTestServer(properties); 688var server = settings.CreateTestServer(); 715var server = settings.CreateTestServer(); 755var server = settings.CreateTestServer(); 778var server = settings.CreateTestServer(); 805var server = settings.CreateTestServer(); 844var server = settings.CreateTestServer(); 878var server = settings.CreateTestServer(); 909var server = settings.CreateTestServer(); 963var server = settings.CreateTestServer();
OpenIdConnect\OpenIdConnectConfigurationTests.cs (2)
462var server = host.GetTestServer(); 554private TestServer BuildTestServer(Action<OpenIdConnectOptions> options)
OpenIdConnect\OpenIdConnectEventTests.cs (43)
43var server = CreateServer(events, AppWritePath); 65var server = CreateServer(events, AppWritePath); 89var server = CreateServer(events, AppNotImpl); 111var server = CreateServer(events, AppWritePath); 134var server = CreateServer(events, AppWritePath); 160var server = CreateServer(events, AppNotImpl); 196var server = CreateServer(events, AppNotImpl); 219var server = CreateServer(events, AppWritePath); 243var server = CreateServer(events, AppWritePath); 270var server = CreateServer(events, AppNotImpl); 300var server = CreateServer(events, AppNotImpl); 324var server = CreateServer(events, AppWritePath); 349var server = CreateServer(events, AppWritePath); 377var server = CreateServer(events, AppNotImpl); 408var server = CreateServer(events, AppNotImpl); 432var server = CreateServer(events, AppWritePath); 457var server = CreateServer(events, AppWritePath); 485var server = CreateServer(events, AppNotImpl); 516var server = CreateServer(events, AppNotImpl); 541var server = CreateServer(events, AppWritePath); 567var server = CreateServer(events, AppWritePath); 596var server = CreateServer(events, AppNotImpl); 628var server = CreateServer(events, AppNotImpl); 659var server = CreateServer(events, AppWritePath); 691var server = CreateServer(events, AppWritePath); 726var server = CreateServer(events, AppNotImpl); 774var server = CreateServer(events, AppNotImpl); 796var server = CreateServer(events, AppWritePath); 820var server = CreateServer(events, AppNotImpl); 857var server = CreateServer(events, AppWritePath); 891var server = CreateServer(events, AppNotImpl); 917var server = CreateServer(events, AppWritePath); 944var server = CreateServer(events, AppNotImpl); 960var server = CreateServer(events, 987var server = CreateServer(events, 1008var server = CreateServer(events, AppNotImpl); 1034var server = CreateServer(events, AppNotImpl); 1056var server = CreateServer(events, context => 1077var server = CreateServer(events, AppNotImpl); 1100var server = CreateServer(events, AppNotImpl); 1122var server = CreateServer(events, 1264private TestServer CreateServer(OpenIdConnectEvents events, RequestDelegate appCode) 1308private Task<HttpResponseMessage> PostAsync(TestServer server, string path, string form)
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (43)
43var server = CreateServer(events, AppWritePath); 65var server = CreateServer(events, AppWritePath); 89var server = CreateServer(events, AppNotImpl); 111var server = CreateServer(events, AppWritePath); 134var server = CreateServer(events, AppWritePath); 160var server = CreateServer(events, AppNotImpl); 196var server = CreateServer(events, AppNotImpl); 219var server = CreateServer(events, AppWritePath); 243var server = CreateServer(events, AppWritePath); 270var server = CreateServer(events, AppNotImpl); 300var server = CreateServer(events, AppNotImpl); 324var server = CreateServer(events, AppWritePath); 349var server = CreateServer(events, AppWritePath); 377var server = CreateServer(events, AppNotImpl); 408var server = CreateServer(events, AppNotImpl); 432var server = CreateServer(events, AppWritePath); 457var server = CreateServer(events, AppWritePath); 485var server = CreateServer(events, AppNotImpl); 516var server = CreateServer(events, AppNotImpl); 541var server = CreateServer(events, AppWritePath); 567var server = CreateServer(events, AppWritePath); 596var server = CreateServer(events, AppNotImpl); 628var server = CreateServer(events, AppNotImpl); 659var server = CreateServer(events, AppWritePath); 691var server = CreateServer(events, AppWritePath); 726var server = CreateServer(events, AppNotImpl); 774var server = CreateServer(events, AppNotImpl); 796var server = CreateServer(events, AppWritePath); 820var server = CreateServer(events, AppNotImpl); 857var server = CreateServer(events, AppWritePath); 891var server = CreateServer(events, AppNotImpl); 917var server = CreateServer(events, AppWritePath); 944var server = CreateServer(events, AppNotImpl); 960var server = CreateServer(events, 987var server = CreateServer(events, 1008var server = CreateServer(events, AppNotImpl); 1034var server = CreateServer(events, AppNotImpl); 1056var server = CreateServer(events, context => 1077var server = CreateServer(events, AppNotImpl); 1100var server = CreateServer(events, AppNotImpl); 1122var server = CreateServer(events, 1264private TestServer CreateServer(OpenIdConnectEvents events, RequestDelegate appCode) 1306private Task<HttpResponseMessage> PostAsync(TestServer server, string path, string form)
OpenIdConnect\OpenIdConnectTests.cs (14)
45var server = setting.CreateTestServer(); 72var server = setting.CreateTestServer(); 99var server = setting.CreateTestServer(); 125var server = setting.CreateTestServer(); 152var server = setting.CreateTestServer(); 177var server = setting.CreateTestServer(); 197var server = settings.CreateTestServer(); 215var server = settings.CreateTestServer(); 229var server = TestServerBuilder.CreateServer(o => 261var server = TestServerBuilder.CreateServer(o => 295var server = setting.CreateTestServer(); 310var server = settings.CreateTestServer(handler: async context => 334var server = settings.CreateTestServer(handler: async context => 357var server = settings.CreateTestServer(handler: async context =>
OpenIdConnect\TestServerBuilder.cs (2)
54public static TestServer CreateServer(Action<OpenIdConnectOptions> options) 59public static TestServer CreateServer(
OpenIdConnect\TestServerExtensions.cs (3)
12public static Task<TestTransaction> SendAsync(this TestServer server, string url) 17public static Task<TestTransaction> SendAsync(this TestServer server, string url, string cookieHeader) 22public static async Task<TestTransaction> SendAsync(this TestServer server, HttpRequestMessage request, string cookieHeader)
OpenIdConnect\TestSettings.cs (1)
47public TestServer CreateTestServer(AuthenticationProperties properties = null, Func<HttpContext, Task> handler = null) => TestServerBuilder.CreateServer(_configureOptions, handler: handler, properties: properties);
PolicyTests.cs (4)
20using var server = await CreateServer(services => 339using var server = await CreateServer(services => 461private static async Task<TestServer> CreateServer(Action<IServiceCollection> configure = null, string defaultScheme = null) 494var server = host.GetTestServer();
RemoteAuthenticationTests.cs (3)
68using var server = host.GetTestServer(); 81using var server = host.GetTestServer(); 96using var server = host.GetTestServer();
TestExtensions.cs (1)
18public static async Task<Transaction> SendAsync(this TestServer server, string uri, string cookieHeader = null)
TwitterTests.cs (15)
69using var server = host.GetTestServer(); 88using var server = host.GetTestServer(); 104using var server = host.GetTestServer(); 118using var server = host.GetTestServer(); 131using var server = host.GetTestServer(); 144using var server = host.GetTestServer(); 157using var server = host.GetTestServer(); 179using var server = host.GetTestServer(); 207using var server = host.GetTestServer(); 257using var server = host.GetTestServer(); 293using var server = host.GetTestServer(); 323using var server = host.GetTestServer(); 364using var server = host.GetTestServer(); 427using var server = host.GetTestServer(); 506using var server = host.GetTestServer();
WsFederation\WsFederationTest.cs (3)
61using var server = host.GetTestServer(); 231using var server = host.GetTestServer(); 361var server = host.GetTestServer();
WsFederation\WsFederationTest_Handler.cs (3)
59using var server = host.GetTestServer(); 229using var server = host.GetTestServer(); 357var server = host.GetTestServer();
Microsoft.AspNetCore.CookiePolicy.Test (9)
CookieConsentTests.cs (1)
721var server = host.GetTestServer();
CookiePolicyTests.cs (7)
268var server = host.GetTestServer(); 307var server = host.GetTestServer(); 349var server = host.GetTestServer(); 392var server = host.GetTestServer(); 443var server = host.GetTestServer(); 511public async Task Execute(TestServer server) 543var server = host.GetTestServer();
TestExtensions.cs (1)
15public static async Task<Transaction> SendAsync(this TestServer server, string uri, string cookieHeader = null)
Microsoft.AspNetCore.Cors.Test (10)
CorsMiddlewareTests.cs (10)
47using (var server = host.GetTestServer()) 89using (var server = host.GetTestServer()) 140using (var server = host.GetTestServer()) 189using (var server = host.GetTestServer()) 254using (var server = host.GetTestServer()) 317using (var server = host.GetTestServer()) 360using (var server = host.GetTestServer()) 476using (var server = host.GetTestServer()) 534using (var server = host.GetTestServer()) 610using (var server = host.GetTestServer())
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (31)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (2)
73var server = host.GetTestServer(); 118var server = host.GetTestServer();
HealthCheckMiddlewareSampleTest.cs (4)
26var server = host.GetTestServer(); 48var server = host.GetTestServer(); 71var server = host.GetTestServer(); 93var server = host.GetTestServer();
HealthCheckMiddlewareTests.cs (25)
62var server = host.GetTestServer(); 89var server = host.GetTestServer(); 116var server = host.GetTestServer(); 146var server = host.GetTestServer(); 179var server = host.GetTestServer(); 212var server = host.GetTestServer(); 245var server = host.GetTestServer(); 278var server = host.GetTestServer(); 324var server = host.GetTestServer(); 361var server = host.GetTestServer(); 396var server = host.GetTestServer(); 425var server = host.GetTestServer(); 460var server = host.GetTestServer(); 499var server = host.GetTestServer(); 529var server = host.GetTestServer(); 559var server = host.GetTestServer(); 587var server = host.GetTestServer(); 617var server = host.GetTestServer(); 652var server = host.GetTestServer(); 689var server = host.GetTestServer(); 727var server = host.GetTestServer(); 765var server = host.GetTestServer(); 803var server = host.GetTestServer(); 845var server = host.GetTestServer(); 889var server = host.GetTestServer();
Microsoft.AspNetCore.Diagnostics.Tests (44)
DeveloperExceptionPageMiddlewareTest.cs (13)
61var server = host.GetTestServer(); 114var server = host.GetTestServer(); 173var server = host.GetTestServer(); 215var server = host.GetTestServer(); 250var server = host.GetTestServer(); 287var server = host.GetTestServer(); 325var server = host.GetTestServer(); 360var server = host.GetTestServer(); 397var server = host.GetTestServer(); 433var server = host.GetTestServer(); 471var server = host.GetTestServer(); 559var server = host.GetTestServer(); 603var server = host.GetTestServer();
ExceptionHandlerMiddlewareTest.cs (3)
67var server = host.GetTestServer(); 335var server = host.GetTestServer(); 402var server = host.GetTestServer();
ExceptionHandlerTest.cs (20)
58using (var server = host.GetTestServer()) 113using (var server = host.GetTestServer()) 179using (var server = host.GetTestServer()) 235using (var server = host.GetTestServer()) 290using (var server = host.GetTestServer()) 362using (var server = host.GetTestServer()) 432using (var server = host.GetTestServer()) 486var server = host.GetTestServer(); 596using (var server = host.GetTestServer()) 645using (var server = host.GetTestServer()) 686using (var server = host.GetTestServer()) 725using (var server = host.GetTestServer()) 766using (var server = host.GetTestServer()) 817using (var server = app.GetTestServer()) 871using (var server = app.GetTestServer()) 923using (var server = app.GetTestServer()) 981using (var server = app.GetTestServer()) 1025var server = host.GetTestServer(); 1095var server = host.GetTestServer(); 1158var server = host.GetTestServer();
StatusCodeMiddlewareTest.cs (8)
59using var server = host.GetTestServer(); 125using var server = host.GetTestServer(); 187using var server = host.GetTestServer(); 242using var server = host.GetTestServer(); 276using var server = app.GetTestServer(); 310using var server = app.GetTestServer(); 347using var server = host.GetTestServer(); 385using var server = host.GetTestServer();
Microsoft.AspNetCore.HeaderPropagation.Tests (4)
HeaderPropagationIntegrationTest.cs (4)
58var server = host.GetTestServer(); 106var server = host.GetTestServer(); 132var server = host.GetTestServer(); 179var server = host.GetTestServer();
Microsoft.AspNetCore.HostFiltering.Tests (5)
HostFilteringMiddlewareTests.cs (5)
73var server = host.GetTestServer(); 116var server = host.GetTestServer(); 167var server = host.GetTestServer(); 219var server = host.GetTestServer(); 258var server = host.GetTestServer();
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UsePathBaseExtensionsTests.cs (3)
159using var server = app.GetTestServer(); 181using var server = app.GetTestServer(); 201using var server = app.GetTestServer();
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (11)
1729using var server = app.GetTestServer(); 1744using var server = app.GetTestServer(); 1759using var server = app.GetTestServer(); 1774using var server = app.GetTestServer(); 1800using var server = app.GetTestServer(); 1819using var server = app.GetTestServer(); 1834using var server = app.GetTestServer(); 1849using var server = app.GetTestServer(); 1864using var server = app.GetTestServer(); 1890using var server = app.GetTestServer(); 1936using var server = host.GetTestServer();
Microsoft.AspNetCore.HttpOverrides.Tests (40)
CertificateForwardingTest.cs (5)
67var server = host.GetTestServer(); 106var server = host.GetTestServer(); 144var server = host.GetTestServer(); 182var server = host.GetTestServer(); 220var server = host.GetTestServer();
ForwardedHeadersMiddlewareTest.cs (29)
36var server = host.GetTestServer(); 72var server = host.GetTestServer(); 130var server = host.GetTestServer(); 168var server = host.GetTestServer(); 241var server = host.GetTestServer(); 273var server = host.GetTestServer(); 302var server = host.GetTestServer(); 374var server = host.GetTestServer(); 459var server = host.GetTestServer(); 510var server = host.GetTestServer(); 561var server = host.GetTestServer(); 597var server = host.GetTestServer(); 632var server = host.GetTestServer(); 686var server = host.GetTestServer(); 743var server = host.GetTestServer(); 781var server = host.GetTestServer(); 823var server = host.GetTestServer(); 873var server = host.GetTestServer(); 914var server = host.GetTestServer(); 949var server = host.GetTestServer(); 984var server = host.GetTestServer(); 1038var server = host.GetTestServer(); 1077var server = host.GetTestServer(); 1114var server = host.GetTestServer(); 1153var server = host.GetTestServer(); 1195var server = host.GetTestServer(); 1231var server = host.GetTestServer(); 1275var server = host.GetTestServer(); 1321var server = host.GetTestServer();
HttpMethodOverrideMiddlewareTest.cs (6)
37var server = host.GetTestServer(); 68var server = host.GetTestServer(); 98var server = host.GetTestServer(); 131var server = host.GetTestServer(); 169var server = host.GetTestServer(); 206var server = host.GetTestServer();
Microsoft.AspNetCore.HttpsPolicy.Tests (18)
HstsMiddlewareTests.cs (8)
62var server = host.GetTestServer(); 109var server = host.GetTestServer(); 155var server = host.GetTestServer(); 200var server = host.GetTestServer(); 255var server = host.GetTestServer(); 310var server = host.GetTestServer(); 357var server = host.GetTestServer(); 403var server = host.GetTestServer();
HttpsPolicyTests.cs (1)
61var server = host.GetTestServer();
HttpsRedirectionMiddlewareTests.cs (9)
48var server = host.GetTestServer(); 103var server = host.GetTestServer(); 159var server = host.GetTestServer(); 213var server = host.GetTestServer(); 257var server = host.GetTestServer(); 300var server = host.GetTestServer(); 343var server = host.GetTestServer(); 398var server = host.GetTestServer(); 438var server = host.GetTestServer();
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Infrastructure\ServerFactory.cs (2)
66protected override TestServer CreateServer(IWebHostBuilder builder) 68var result = base.CreateServer(builder);
Microsoft.AspNetCore.Identity.InMemory.Test (10)
FunctionalTest.cs (10)
32var server = await CreateServer(services => services.Configure<IdentityOptions>(options => 49var server = await CreateServer(null, null, null, testCore: true); 72var server = await CreateServer(services => 120var server = await CreateServer(services => 169var server = await CreateServer(services => 222var server = await CreateServer(services => services.AddSingleton<TimeProvider>(timeProvider), testCore: testCore); 251var server = await CreateServer(services => services.AddSingleton<TimeProvider>(timeProvider), testCore: testCore); 291private async Task<TestServer> CreateServer(Action<IServiceCollection> configureServices = null, Func<HttpContext, Task> testpath = null, Uri baseAddress = null, bool testCore = false) 400var server = host.GetTestServer(); 428private static async Task<Transaction> SendAsync(TestServer server, string uri, string cookieHeader = null, bool ajaxRequest = false)
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
29var testHost = host.GetTestServer();
LocalizationTest.cs (1)
108var testHost = host.GetTestServer();
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
81using (var server = host.GetTestServer()) 127using (var server = host.GetTestServer()) 203using (var server = host.GetTestServer())
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
46using (var server = host.GetTestServer()) 87using (var server = host.GetTestServer()) 127using (var server = host.GetTestServer()) 173using (var server = host.GetTestServer())
CookieRequestCultureProviderTest.cs (5)
60using (var server = host.GetTestServer()) 112using (var server = host.GetTestServer()) 161using (var server = host.GetTestServer()) 210using (var server = host.GetTestServer()) 270using (var server = host.GetTestServer())
CustomRequestCultureProviderTest.cs (1)
57using (var server = host.GetTestServer())
QueryStringRequestCultureProviderTest.cs (8)
50using (var server = host.GetTestServer()) 84using (var server = host.GetTestServer()) 125using (var server = host.GetTestServer()) 166using (var server = host.GetTestServer()) 208using (var server = host.GetTestServer()) 250using (var server = host.GetTestServer()) 297using (var server = host.GetTestServer()) 345using (var server = host.GetTestServer())
RequestLocalizationMiddlewareTest.cs (1)
63using (var server = host.GetTestServer())
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
40var server = host.GetTestServer();
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Infrastructure\MvcTestFixture.cs (1)
45protected override TestServer CreateServer(IWebHostBuilder builder)
TestingInfrastructureInheritanceTests.cs (1)
144protected override TestServer CreateServer(IWebHostBuilder builder)
Microsoft.AspNetCore.Mvc.Testing (14)
WebApplicationFactory.cs (14)
29private TestServer? _server; 38/// create a <see cref="TestServer"/> instance using the MVC application defined by <typeparamref name="TEntryPoint"/> 39/// and one or more <see cref="HttpClient"/> instances used to send <see cref="HttpRequestMessage"/> to the <see cref="TestServer"/>. 72/// Gets the <see cref="TestServer"/> created by this <see cref="WebApplicationFactory{TEntryPoint}"/>. 74public TestServer Server 214_server = (TestServer)_host.Services.GetRequiredService<IServer>(); 384/// Creates a <see cref="IHostBuilder"/> used to set up <see cref="TestServer"/>. 401/// Creates a <see cref="IWebHostBuilder"/> used to set up <see cref="TestServer"/>. 422/// Creates the <see cref="TestServer"/> with the bootstrapped application in <paramref name="builder"/>. 428/// <returns>The <see cref="TestServer"/> with the bootstrapped application.</returns> 429protected virtual TestServer CreateServer(IWebHostBuilder builder) => new(builder); 609private readonly Func<IWebHostBuilder, TestServer> _createServer; 618Func<IWebHostBuilder, TestServer> createServer, 636protected override TestServer CreateServer(IWebHostBuilder builder) => _createServer(builder);
Microsoft.AspNetCore.OutputCaching.Tests (43)
OutputCacheTests.cs (43)
27using var server = host.GetTestServer(); 49using var server = host.GetTestServer(); 69using var server = host.GetTestServer(); 89using var server = host.GetTestServer(); 109using var server = host.GetTestServer(); 131using var server = host.GetTestServer(); 162using var server = host.GetTestServer(); 193using var server = host.GetTestServer(); 216using var server = host.GetTestServer(); 243using var server = host.GetTestServer(); 266using var server = host.GetTestServer(); 294using var server = host.GetTestServer(); 315using var server = host.GetTestServer(); 339using var server = host.GetTestServer(); 364using var server = host.GetTestServer(); 387using var server = host.GetTestServer(); 410using var server = host.GetTestServer(); 433using var server = host.GetTestServer(); 456using var server = host.GetTestServer(); 478using var server = host.GetTestServer(); 501using var server = host.GetTestServer(); 523using var server = host.GetTestServer(); 545using var server = host.GetTestServer(); 565using var server = host.GetTestServer(); 589using var server = host.GetTestServer(); 614using var server = host.GetTestServer(); 634using var server = host.GetTestServer(); 658using var server = host.GetTestServer(); 682using var server = host.GetTestServer(); 708using var server = host.GetTestServer(); 731using var server = host.GetTestServer(); 757using var server = host.GetTestServer(); 780using var server = host.GetTestServer(); 807using var server = host.GetTestServer(); 830using var server = host.GetTestServer(); 853using var server = host.GetTestServer(); 873using var server = host.GetTestServer(); 897using var server = host.GetTestServer(); 930using var server = host.GetTestServer(); 950using var server = host.GetTestServer(); 958static async Task RunClient(TestServer server) 979using var server = host.GetTestServer(); 997static async Task<Guid> RunClient(TestServer server, int id)
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
236var server = host.GetTestServer(); 307var server = host.GetTestServer(); 383var server = host.GetTestServer(); 485var server = host.GetTestServer(); 569var server = host.GetTestServer(); 720var server = host.GetTestServer();
Microsoft.AspNetCore.ResponseCaching.Tests (37)
ResponseCachingTests.cs (37)
26using (var server = host.GetTestServer()) 50using (var server = host.GetTestServer()) 72using (var server = host.GetTestServer()) 94using (var server = host.GetTestServer()) 116using (var server = host.GetTestServer()) 140using (var server = host.GetTestServer()) 173using (var server = host.GetTestServer()) 206using (var server = host.GetTestServer()) 230using (var server = host.GetTestServer()) 254using (var server = host.GetTestServer()) 277using (var server = host.GetTestServer()) 300using (var server = host.GetTestServer()) 324using (var server = host.GetTestServer()) 346using (var server = host.GetTestServer()) 368using (var server = host.GetTestServer()) 390using (var server = host.GetTestServer()) 412using (var server = host.GetTestServer()) 434using (var server = host.GetTestServer()) 456using (var server = host.GetTestServer()) 478using (var server = host.GetTestServer()) 500using (var server = host.GetTestServer()) 526using (var server = host.GetTestServer()) 553using (var server = host.GetTestServer()) 575using (var server = host.GetTestServer()) 601using (var server = host.GetTestServer()) 627using (var server = host.GetTestServer()) 654using (var server = host.GetTestServer()) 679using (var server = host.GetTestServer()) 707using (var server = host.GetTestServer()) 732using (var server = host.GetTestServer()) 758using (var server = host.GetTestServer()) 783using (var server = host.GetTestServer()) 808using (var server = host.GetTestServer()) 830using (var server = host.GetTestServer()) 856using (var server = host.GetTestServer()) 891using (var server = host.GetTestServer()) 926using (var server = host.GetTestServer())
Microsoft.AspNetCore.ResponseCompression.Tests (17)
ResponseCompressionMiddlewareTest.cs (17)
174var server = host.GetTestServer(); 332var server = host.GetTestServer(); 469var server = host.GetTestServer(); 532var server = host.GetTestServer(); 595var server = host.GetTestServer(); 649var server = host.GetTestServer(); 695var server = host.GetTestServer(); 747var server = host.GetTestServer(); 800var server = host.GetTestServer(); 870var server = host.GetTestServer(); 934var server = host.GetTestServer(); 998var server = host.GetTestServer(); 1059var server = host.GetTestServer(); 1109var server = host.GetTestServer(); 1159var server = host.GetTestServer(); 1209var server = host.GetTestServer(); 1275var server = host.GetTestServer();
Microsoft.AspNetCore.Rewrite.Tests (71)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (17)
33var server = host.GetTestServer(); 59var server = host.GetTestServer(); 85var server = host.GetTestServer(); 110var server = host.GetTestServer(); 135var server = host.GetTestServer(); 160var server = host.GetTestServer(); 185var server = host.GetTestServer(); 212var server = host.GetTestServer(); 243var server = host.GetTestServer(); 269var server = host.GetTestServer(); 295var server = host.GetTestServer(); 321var server = host.GetTestServer(); 348var server = host.GetTestServer(); 376var server = host.GetTestServer(); 404var server = host.GetTestServer(); 430var server = host.GetTestServer(); 460var server = host.GetTestServer();
IISUrlRewrite\MiddleWareTests.cs (20)
43var server = host.GetTestServer(); 75var server = host.GetTestServer(); 111var server = host.GetTestServer(); 143var server = host.GetTestServer(); 178var server = host.GetTestServer(); 213var server = host.GetTestServer(); 247var server = host.GetTestServer(); 287var server = host.GetTestServer(); 324var server = host.GetTestServer(); 361var server = host.GetTestServer(); 395var server = host.GetTestServer(); 429var server = host.GetTestServer(); 468var server = host.GetTestServer(); 504var server = host.GetTestServer(); 540var server = host.GetTestServer(); 577var server = host.GetTestServer(); 614var server = host.GetTestServer(); 659var server = host.GetTestServer(); 690var server = host.GetTestServer(); 746var server = host.GetTestServer();
MiddlewareTests.cs (34)
39var server = host.GetTestServer(); 69var server = host.GetTestServer(); 101var server = host.GetTestServer(); 133var server = host.GetTestServer(); 166var server = host.GetTestServer(); 200var server = host.GetTestServer(); 224var server = host.GetTestServer(); 252var server = host.GetTestServer(); 279var server = host.GetTestServer(); 321var server = host.GetTestServer(); 353var server = host.GetTestServer(); 379var server = host.GetTestServer(); 406var server = host.GetTestServer(); 435var server = host.GetTestServer(); 464var server = host.GetTestServer(); 489var server = host.GetTestServer(); 524var server = host.GetTestServer(); 552var server = host.GetTestServer(); 581var server = host.GetTestServer(); 606var server = host.GetTestServer(); 631var server = host.GetTestServer(); 667var server = host.GetTestServer(); 694var server = host.GetTestServer(); 721var server = host.GetTestServer(); 751var server = host.GetTestServer(); 779var server = host.GetTestServer(); 804var server = host.GetTestServer(); 833var server = host.GetTestServer(); 870var server = app.GetTestServer(); 908var server = app.GetTestServer(); 944var server = app.GetTestServer(); 981var server = app.GetTestServer(); 1018var server = app.GetTestServer(); 1050var server = app.GetTestServer();
Microsoft.AspNetCore.Routing.FunctionalTests (35)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
17private readonly TestServer _testServer;
Benchmarks\RouterBenchmarkTest.cs (1)
18private readonly TestServer _testServer;
EndpointRoutingIntegrationTest.cs (10)
52using var server = host.GetTestServer(); 84using var server = host.GetTestServer(); 116using var server = host.GetTestServer(); 148using var server = host.GetTestServer(); 177using var server = host.GetTestServer(); 209using var server = host.GetTestServer(); 240using var server = host.GetTestServer(); 271using var server = host.GetTestServer(); 303using var server = host.GetTestServer(); 339using var server = host.GetTestServer();
EndpointRoutingSampleTest.cs (1)
16private readonly TestServer _testServer;
MinimalFormTests.cs (15)
46using var server = host.GetTestServer(); 106using var server = host.GetTestServer(); 156using var server = host.GetTestServer(); 195using var server = host.GetTestServer(); 240using var server = host.GetTestServer(); 272using var server = host.GetTestServer(); 319using var server = host.GetTestServer(); 415using var server = host.GetTestServer(); 467using var server = host.GetTestServer(); 526using var server = host.GetTestServer(); 578using var server = host.GetTestServer(); 630using var server = host.GetTestServer(); 679using var server = host.GetTestServer(); 718using var server = host.GetTestServer(); 745using var server = host.GetTestServer();
RouteHandlerTest.cs (2)
43using var server = host.GetTestServer(); 91using var server = host.GetTestServer();
RouterSampleTest.cs (1)
16private readonly TestServer _testServer;
RoutingTestFixture.cs (1)
13private readonly TestServer _server;
ShortCircuitTests.cs (2)
48using var server = host.GetTestServer(); 86using var server = host.GetTestServer();
WebHostBuilderExtensionsTest.cs (1)
92var testServer = host.GetTestServer();
Microsoft.AspNetCore.Server.IISIntegration.Tests (12)
IISExtensionTests.cs (1)
35var server = host.GetTestServer();
IISMiddlewareTests.cs (11)
50var server = host.GetTestServer(); 88var server = host.GetTestServer(); 130var server = host.GetTestServer(); 189var server = host.GetTestServer(); 234var server = host.GetTestServer(); 279var server = host.GetTestServer(); 316var server = host.GetTestServer(); 379var server = host.GetTestServer(); 420var server = host.GetTestServer(); 477var server = host.GetTestServer(); 522var server = host.GetTestServer();
Microsoft.AspNetCore.Session.Tests (21)
SessionTests.cs (21)
52using (var server = host.GetTestServer()) 89using (var server = host.GetTestServer()) 144using (var server = host.GetTestServer()) 195using (var server = host.GetTestServer()) 255using (var server = host.GetTestServer()) 313using (var server = host.GetTestServer()) 359using (var server = host.GetTestServer()) 418using (var server = host.GetTestServer()) 487using (var server = host.GetTestServer()) 543using (var server = host.GetTestServer()) 593using (var server = host.GetTestServer()) 629using (var server = host.GetTestServer()) 674using (var server = host.GetTestServer()) 723using (var server = host.GetTestServer()) 772using (var server = host.GetTestServer()) 820using (var server = host.GetTestServer()) 872using (var server = host.GetTestServer()) 935using (var server = host.GetTestServer()) 1001using (var server = host.GetTestServer()) 1066using (var server = host.GetTestServer()) 1118using (var server = host.GetTestServer())
Microsoft.AspNetCore.SignalR.Client.Tests (2)
TestServerTests.cs (2)
35var server = new TestServer(builder); 87var server = new TestServer(builder);
Microsoft.AspNetCore.StaticFiles.Tests (73)
CacheHeaderTests.cs (21)
18using var server = host.GetTestServer(); 29using var server = host.GetTestServer(); 49using var server = host.GetTestServer(); 61using var server = host.GetTestServer(); 75using var server = host.GetTestServer(); 87using var server = host.GetTestServer(); 113using var server = host.GetTestServer(); 127using var server = host.GetTestServer(); 141using var server = host.GetTestServer(); 165using var server = host.GetTestServer(); 189using var server = host.GetTestServer(); 208using var server = host.GetTestServer(); 234using var server = host.GetTestServer(); 283using var server = host.GetTestServer(); 298using var server = host.GetTestServer(); 320using var server = host.GetTestServer(); 339using var server = host.GetTestServer(); 367using var server = host.GetTestServer(); 386using var server = host.GetTestServer(); 401using var server = host.GetTestServer(); 416using var server = host.GetTestServer();
DefaultFilesMiddlewareTests.cs (7)
25using var server = host.GetTestServer(); 72using var server = host.GetTestServer(); 115using var server = host.GetTestServer(); 155using var server = host.GetTestServer(); 220using var server = host.GetTestServer(); 262using var server = host.GetTestServer(); 318using var server = host.GetTestServer();
DirectoryBrowserMiddlewareTests.cs (8)
45using var server = host.GetTestServer(); 91using var server = host.GetTestServer(); 130using var server = host.GetTestServer(); 167using var server = host.GetTestServer(); 224using var server = host.GetTestServer(); 267using var server = host.GetTestServer(); 318using var server = host.GetTestServer(); 366using var server = host.GetTestServer();
RangeHeaderTests.cs (22)
20using var server = host.GetTestServer(); 41using var server = host.GetTestServer(); 62using var server = host.GetTestServer(); 79using var server = host.GetTestServer(); 96using var server = host.GetTestServer(); 113using var server = host.GetTestServer(); 134using var server = host.GetTestServer(); 151using var server = host.GetTestServer(); 168using var server = host.GetTestServer(); 187using var server = host.GetTestServer(); 207using var server = host.GetTestServer(); 234using var server = host.GetTestServer(); 269using var server = host.GetTestServer(); 290using var server = host.GetTestServer(); 311using var server = host.GetTestServer(); 325using var server = host.GetTestServer(); 343using var server = host.GetTestServer(); 358using var server = host.GetTestServer(); 378using var server = host.GetTestServer(); 400using var server = host.GetTestServer(); 421using var server = host.GetTestServer(); 441using var server = host.GetTestServer();
StaticFileMiddlewareTests.cs (15)
36var server = host.GetTestServer(); 70var server = host.GetTestServer(); 110var server = host.GetTestServer(); 127using var server = host.GetTestServer(); 151using var server = host.GetTestServer(); 184using var server = host.GetTestServer(); 223using var server = host.GetTestServer(); 265using var server = host.GetTestServer(); 315using var server = host.GetTestServer(); 357using var server = host.GetTestServer(); 405using var server = host.GetTestServer(); 430using var server = host.GetTestServer(); 461using var server = host.GetTestServer(); 477using var server = host.GetTestServer(); 537using var server = host.GetTestServer();
Microsoft.AspNetCore.TestHost (10)
HostBuilderTestServerExtensions.cs (2)
21public static TestServer GetTestServer(this IHost host) 23return (TestServer)host.Services.GetRequiredService<IServer>();
RequestBuilder.cs (2)
20public RequestBuilder(TestServer server, string path) 29public TestServer TestServer { get; }
WebHostBuilderExtensions.cs (6)
20/// Enables the <see cref="TestServer" /> service. 29services.AddSingleton<IServer, TestServer>(); 34/// Enables the <see cref="TestServer" /> service. 45services.AddSingleton<IServer, TestServer>(); 54public static TestServer GetTestServer(this IWebHost host) 56return (TestServer)host.Services.GetRequiredService<IServer>();
Microsoft.AspNetCore.TestHost.Tests (73)
ClientHandlerTests.cs (1)
706var server = new TestServer(builder);
HttpContextBuilderTests.cs (15)
21var server = new TestServer(builder); 52var server = new TestServer(builder); 67var server = new TestServer(builder); 88var server = new TestServer(builder); 106var server = new TestServer(builder); 134var server = new TestServer(builder); 158var server = new TestServer(builder); 182var server = new TestServer(builder); 204var server = new TestServer(builder); 230var server = new TestServer(builder); 253var server = new TestServer(builder); 276var server = new TestServer(builder); 294var server = new TestServer(builder); 321var server = new TestServer(builder); 341var server = new TestServer(builder);
RequestBuilderTests.cs (3)
14var server = new TestServer(builder); 27var server = new TestServer(builder); 42var server = new TestServer(builder);
TestClientTests.cs (26)
30var server = new TestServer(builder); 52var server = new TestServer(builder); 74var server = new TestServer(builder); 94var server = new TestServer(builder); 112var server = new TestServer(builder); 148var server = new TestServer(builder); 193var server = new TestServer(builder); 250var server = new TestServer(builder); 301var server = new TestServer(builder); 358var server = new TestServer(builder); 420var server = new TestServer(builder); 467var server = new TestServer(builder); 518var server = new TestServer(builder); 610var server = new TestServer(builder); 676var server = new TestServer(builder); 726var server = new TestServer(builder); 770var server = new TestServer(builder); 803var server = new TestServer(builder); 848var server = new TestServer(builder); 877using var server = new TestServer(builder); 902var server = new TestServer(builder); 927var server = new TestServer(builder) 950var server = new TestServer(builder); 976var server = new TestServer(builder); 1003var server = new TestServer(builder); 1021using (var testServer = new TestServer(new WebHostBuilder()
TestServerTests.cs (25)
130var host = new TestServer(builder); 186var server = new TestServer(builder); 201var server = new TestServer(builder); 220var server = new TestServer(builder); 254var server = new TestServer(builder); 316var testServer = new TestServer(serviceProvider); 332var testServer = new TestServer(builder); 355var testServer = host.GetTestServer(); 382var testServer = host.GetTestServer(); 438var server = new TestServer(builder); 460var server = new TestServer(builder); 508var server = new TestServer(builder); 549var server = new TestServer(builder); 566var server = new TestServer(builder); 587var server = new TestServer(builder); 619var server = new TestServer(builder); 635var server = new TestServer(builder); 652var server = new TestServer(builder); 670var server = new TestServer(builder); 691var server = new TestServer(builder); 701var server = new TestServer(builder); 713var server = new TestServer(builder); 734var server = new TestServer(builder); 761var server = new TestServer(builder); 787var server = new TestServer(builder);
WebSocketClientTests.cs (3)
22using (var testServer = new TestServer(new WebHostBuilder() 59using (var testServer = new TestServer(new WebHostBuilder() 97using (var testServer = new TestServer(new WebHostBuilder()
Microsoft.AspNetCore.WebSockets.Tests (1)
Http2WebSocketTests.cs (1)
35var testServer = host.GetTestServer();