8 instantiations of Index
Microsoft.AspNetCore.Identity.FunctionalTests (8)
Pages\Account\ExternalLogin.cs (1)
36
return new
Index
(Client, index, Context.WithAuthenticatedUser());
Pages\Account\Login.cs (1)
70
return new
Index
(
Pages\Account\LoginWith2fa.cs (1)
38
return new
Index
(Client, index, Context.WithAuthenticatedUser());
Pages\Account\LoginWithRecoveryCode.cs (1)
30
return new
Index
(Client, index, Context.WithAuthenticatedUser());
Pages\Account\Manage\DeleteUser.cs (1)
27
return new FunctionalTests.
Index
(Client, index, Context);
Pages\Account\Register.cs (1)
51
return new
Index
(Client, index, Context.WithAuthenticatedUser());
Pages\Contoso\Login.cs (1)
31
return new
Index
(Client, externalLogin, Context.WithAuthenticatedUser());
Pages\Index.cs (1)
39
return new
Index
(client, index, context ?? new DefaultUIContext());
75 references to Index
Microsoft.AspNetCore.Identity.FunctionalTests (75)
LoginTests.cs (9)
72
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
98
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
118
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
143
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
170
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
195
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
219
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
246
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
274
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
ManagementTests.cs (12)
34
var
index = await UserStories.RegisterNewUserAsync(client, userName, password);
50
var
index = await UserStories.RegisterNewUserAsync(client, userName, password);
71
var
index = await UserStories.RegisterNewUserAsync(client, userName, password);
98
var
index = await UserStories.RegisterNewUserAsync(client, userName, password);
129
var
index = await UserStories.RegisterNewUserAsync(client, userName, password);
168
var
index = await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email);
206
var
index = await UserStories.RegisterNewUserAsync(client, email, "[PLACEHOLDER]-1a");
228
var
index = await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email);
256
var
loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password);
262
var
index = await UserStories.LoginExistingUser2FaAsync(newClient, userName, password, twoFactorKey);
288
var
index = social
359
var
index = await UserStories.RegisterNewUserAsync(client, userName, password);
Pages\Account\ExternalLogin.cs (1)
27
public async Task<
Index
> SendEmailAsync(string email)
Pages\Account\Login.cs (2)
62
public async Task<
Index
> LoginValidUserAsync(string userName, string password)
67
Assert.Equal(
Index
.Path, loggedInLocation.ToString());
Pages\Account\LoginWith2fa.cs (2)
24
internal async Task<
Index
> Send2FACodeAsync(string twoFactorKey)
34
Assert.Equal(
Index
.Path, goToIndex.ToString());
Pages\Account\LoginWithRecoveryCode.cs (1)
19
public async Task<
Index
> SendRecoveryCodeAsync(string recoveryCode)
Pages\Account\Manage\DeleteUser.cs (1)
19
public async Task<FunctionalTests.
Index
> Delete(string password)
Pages\Account\Register.cs (2)
37
public async Task<
Index
> SubmitRegisterFormForValidUserAsync(string userName, string password)
47
Assert.Equal(
Index
.Path, registeredLocation.ToString());
Pages\Contoso\Login.cs (1)
27
public async Task<
Index
> SendExistingUserNameAsync(string userName)
Pages\Index.cs (1)
34
public static async Task<
Index
> CreateAsync(HttpClient client, DefaultUIContext context = null)
UserStories.cs (43)
16
internal static async Task<
Index
> RegisterNewUserAsync(HttpClient client, string userName = null, string password = null)
21
var
index = await
Index
.CreateAsync(client);
32
var
index = await
Index
.CreateAsync(client);
38
internal static async Task<
Index
> LoginExistingUserAsync(HttpClient client, string userName, string password)
40
var
index = await
Index
.CreateAsync(client);
49
var
index = await
Index
.CreateAsync(client);
58
var
index = await
Index
.CreateAsync(client);
66
internal static async Task<
Index
> RegisterNewUserWithSocialLoginAsync(HttpClient client, string userName, string email)
68
var
index = await
Index
.CreateAsync(client, new DefaultUIContext().WithSocialLoginEnabled());
81
var
index = await
Index
.CreateAsync(client, new DefaultUIContext().WithSocialLoginEnabled());
92
internal static async Task<
Index
> RegisterNewUserWithSocialLoginAsyncViaRegisterPage(HttpClient client, string userName, string email)
94
var
index = await
Index
.CreateAsync(client, new DefaultUIContext().WithSocialLoginEnabled());
105
internal static async Task<Email> SendEmailConfirmationLinkAsync(
Index
index)
112
internal static async Task<Email> SendUpdateEmailAsync(
Index
index, string newEmail)
119
internal static async Task<
Index
> LoginWithSocialLoginAsync(HttpClient client, string userName)
121
var
index = await
Index
.CreateAsync(
134
internal static async Task<
Index
> LoginExistingUser2FaAsync(HttpClient client, string userName, string password, string twoFactorKey)
136
var
index = await
Index
.CreateAsync(client);
145
internal static async Task<ShowRecoveryCodes> EnableTwoFactorAuthentication(
Index
index, bool consent = true)
157
internal static async Task<ResetAuthenticator> ResetAuthenticator(
Index
index)
165
internal static async Task<
Index
> LoginExistingUserRecoveryCodeAsync(
171
var
index = await
Index
.CreateAsync(client);
195
var
index = await
Index
.CreateAsync(client);
205
var
index = await
Index
.CreateAsync(client);
224
internal static async Task<ChangePassword> ChangePasswordAsync(
Index
index, string oldPassword, string newPassword)
232
internal static async Task<SetPassword> SetPasswordAsync(
Index
index, string newPassword)
240
internal static async Task<ManageExternalLogin> LinkExternalLoginAsync(
Index
index, string loginEmail)
257
internal static async Task<
Index
> DeleteUser(
Index
index, string password)
265
internal static async Task<JObject> DownloadPersonalData(
Index
index, string userName)