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