104 references to CreateClient
AuthSamples.FunctionalTests (5)
CookiesTests.cs (1)
16=> Client = fixture.CreateClient();
CustomAuthorizationFailureResponseTests.cs (1)
18Client = fixture.CreateClient();
CustomPolicyProviderTests.cs (1)
19Client = fixture.CreateClient();
DynamicSchemeTests.cs (1)
17Client = fixture.CreateClient();
PathSchemeSelectionTests.cs (1)
17Client = fixture.CreateClient();
Microsoft.AspNetCore.Identity.FunctionalTests (70)
AuthorizationTests.cs (4)
44.CreateClient(); 81.CreateClient(); 116.CreateClient(); 144.CreateClient();
LoginTests.cs (35)
26var client = ServerFactory.CreateClient(); 27var newClient = ServerFactory.CreateClient(); 49var client = server.CreateClient(); 50var newClient = server.CreateClient(); 66var client = ServerFactory.CreateClient(); 67var newClient = ServerFactory.CreateClient(); 92var client = server.CreateClient(); 93var newClient = server.CreateClient(); 112var client = ServerFactory.CreateClient(); 113var newClient = ServerFactory.CreateClient(); 137var client = server.CreateClient(); 138var newClient = server.CreateClient(); 164var client = server.CreateClient(); 165var newClient = server.CreateClient(); 189var client = server.CreateClient(); 190var newClient = server.CreateClient(); 213var client = server.CreateClient(); 214var newClient = server.CreateClient(); 240var client = server.CreateClient(); 241var newClient = server.CreateClient(); 250await UserStories.ResendConfirmEmailAsync(server.CreateClient(), userName); 268var client = server.CreateClient(); 269var newClient = server.CreateClient(); 293var client = server.CreateClient(); 294var newClient = server.CreateClient(); 315var client = server.CreateClient(); 316var newClient = server.CreateClient(); 337var client = server.CreateClient(); 338var resetPasswordClient = server.CreateClient(); 339var newClient = server.CreateClient(); 367var client = server.CreateClient(); 368var resetPasswordClient = server.CreateClient(); 369var newClient = server.CreateClient(); 397var client = server.CreateClient(); 398var newClient = server.CreateClient();
ManagementTests.cs (18)
29.CreateClient(); 45.CreateClient(); 66var client = server.CreateClient(); 90var client = server.CreateClient(); 91var newClient = server.CreateClient(); 92var failedClient = server.CreateClient(); 122var client = server.CreateClient(); 123var newClient = server.CreateClient(); 159var client = server.CreateClient(); 160var newClient = server.CreateClient(); 161var loginAfterSetPasswordClient = server.CreateClient(); 199var client = server.CreateClient(); 223var client = server.CreateClient(); 249var client = server.CreateClient(); 250var newClient = server.CreateClient(); 282.CreateClient(); 338.CreateClient(); 354.CreateClient();
NoIdentityAddedTests.cs (1)
29.CreateClient();
RegistrationTests.cs (12)
31.CreateClient(); 48var client = server.CreateClient(); 49var client2 = server.CreateClient(); 81var client = server.CreateClient(); 82var client2 = server.CreateClient(); 103.CreateClient(); 122.CreateClient(); 144.CreateClient(); 169.CreateClient(); 190.CreateClient(); 211.CreateClient(); 235.CreateClient();
Microsoft.AspNetCore.Mvc.FunctionalTests (28)
ClientValidationOptionsTests.cs (1)
33.CreateClient();
ComponentRenderingFunctionalTests.cs (1)
197.CreateClient();
ControllerEndpointFiltersTest.cs (4)
39using var client = Factory.CreateClient(); 52using var client = Factory.CreateClient(); 65using var client = Factory.CreateClient(); 77using var client = Factory.CreateClient();
RoutingAcrossPipelineBranchesTest.cs (5)
39var client = Factory.CreateClient(); 73var client = Factory.CreateClient(); 107var client = Factory.CreateClient(); 137var client = Factory.CreateClient(); 160var client = Factory.CreateClient();
RoutingDynamicOrderTest.cs (6)
40var client = factory.CreateClient(); 62var client = factory.CreateClient(); 85var client = factory.CreateClient(); 107var client = factory.CreateClient(); 130var client = factory.CreateClient(); 151var client = factory.CreateClient();
RoutingGroupsTest.cs (2)
40using var client = Factory.CreateClient(); 53using var client = Factory.CreateClient();
RoutingGroupsWithMetadataTest.cs (1)
38using var client = Factory.CreateClient();
SimpleWithWebApplicationBuilderExceptionTests.cs (1)
29var ex = Assert.Throws<InvalidOperationException>(() => Factory.CreateClient());
SimpleWithWebApplicationBuilderTests.cs (1)
142using var client = new WebApplicationFactory<SimpleWebSiteWithWebApplicationBuilder.Program>().CreateClient();
SystemTextJsonOutputFormatterTest.cs (1)
36var client = Factory.WithWebHostBuilder(c => c.ConfigureServices(ConfigureServices)).CreateClient();
TestingInfrastructureInheritanceTests.cs (2)
24var client = customized.CreateClient(); 44var client = customized.CreateClient();
TestingInfrastructureTests.cs (3)
24Client = Factory.CreateClient(); 47var ex = Assert.Throws<InvalidOperationException>(() => factory.CreateClient()); 189var response = await factory.CreateClient().GetStringAsync("Testing/Builder");
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
103/// Gets the <see cref="WebApplicationFactoryClientOptions"/> used by <see cref="CreateClient()"/>.