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