96 references to UserStories
Microsoft.AspNetCore.Identity.FunctionalTests (96)
AuthorizationTests.cs (1)
83await UserStories.RegisterNewUserAsync(client);
LoginTests.cs (46)
33await UserStories.RegisterNewUserAsync(client, userName, password); 36await UserStories.LoginExistingUserAsync(newClient, userName, password); 56await UserStories.RegisterNewUserAsync(client, userName, password); 59await UserStories.LoginExistingUserAsync(newClient, userName, password); 72var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 73var showRecoveryCodes = await UserStories.EnableTwoFactorAuthentication(loggedIn); 79await UserStories.LoginExistingUser2FaAsync(newClient, userName, password, twoFactorKey); 98var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 99var showRecoveryCodes = await UserStories.EnableTwoFactorAuthentication(loggedIn); 105await UserStories.LoginExistingUser2FaAsync(newClient, userName, password, twoFactorKey); 118var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 119var showRecoveryCodes = await UserStories.EnableTwoFactorAuthentication(loggedIn); 125await UserStories.LoginExistingUserRecoveryCodeAsync(newClient, userName, password, recoveryCode); 143var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 144var showRecoveryCodes = await UserStories.EnableTwoFactorAuthentication(loggedIn); 150await UserStories.LoginExistingUserRecoveryCodeAsync(newClient, userName, password, recoveryCode); 170var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 174await Assert.ThrowsAnyAsync<XunitException>(() => UserStories.LoginExistingUserAsync(newClient, userName, password)); 195var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 199await Assert.ThrowsAnyAsync<XunitException>(() => UserStories.LoginExistingUserAsync(newClient, userName, password)); 219var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 224await UserStories.ConfirmEmailAsync(email, newClient); 226await UserStories.LoginExistingUserAsync(newClient, userName, password); 246var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 250await UserStories.ResendConfirmEmailAsync(server.CreateClient(), userName); 253await UserStories.ConfirmEmailAsync(email, newClient); 274var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 279await UserStories.ConfirmEmailAsync(email, newClient); 281await UserStories.LoginExistingUserAsync(newClient, userName, password); 301await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email); 302await UserStories.LoginWithSocialLoginAsync(newClient, userName); 323await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email); 324await UserStories.LoginWithSocialLoginAsync(newClient, userName); 345await UserStories.RegisterNewUserAsync(client, userName, password); 347await UserStories.ConfirmEmailAsync(registrationEmail, client); 350await UserStories.ForgotPasswordAsync(resetPasswordClient, userName); 353await UserStories.ResetPasswordAsync(resetPasswordClient, email, userName, newPassword); 354await UserStories.LoginExistingUserAsync(newClient, userName, newPassword); 375await UserStories.RegisterNewUserAsync(client, userName, password); 377await UserStories.ConfirmEmailAsync(registrationEmail, client); 380await UserStories.ForgotPasswordAsync(resetPasswordClient, userName); 383await UserStories.ResetPasswordAsync(resetPasswordClient, email, userName, newPassword); 384await UserStories.LoginExistingUserAsync(newClient, userName, newPassword); 404await UserStories.RegisterNewUserAsync(client, userName, password); 406await UserStories.ConfirmEmailAsync(registrationEmail, client); 409await UserStories.LoginFailsWithWrongPasswordAsync(newClient, userName, wrongPassword);
ManagementTests.cs (35)
34var index = await UserStories.RegisterNewUserAsync(client, userName, password); 37Assert.NotNull(await UserStories.EnableTwoFactorAuthentication(index)); 50var index = await UserStories.RegisterNewUserAsync(client, userName, password); 53Assert.Null(await UserStories.EnableTwoFactorAuthentication(index, consent: false)); 71var index = await UserStories.RegisterNewUserAsync(client, userName, password); 72var manageIndex = await UserStories.SendEmailConfirmationLinkAsync(index); 77await UserStories.ConfirmEmailAsync(email, client); 98var index = await UserStories.RegisterNewUserAsync(client, userName, password); 99var email = await UserStories.SendUpdateEmailAsync(index, newEmail); 103await UserStories.ConfirmEmailAsync(emails.SentEmails[1], client); 106await UserStories.LoginExistingUserAsync(newClient, newEmail, password); 107await UserStories.LoginFailsWithWrongPasswordAsync(failedClient, userName, password); 129var index = await UserStories.RegisterNewUserAsync(client, userName, password); 132var changedPassword = await UserStories.ChangePasswordAsync(index, password, newPassword); 139await UserStories.LoginExistingUserAsync(newClient, userName, newPassword); 168var index = await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email); 169index = await UserStories.LoginWithSocialLoginAsync(newClient, userName); 175await UserStories.SetPasswordAsync(index, "[PLACEHOLDER]-1a-updated"); 183await UserStories.LoginExistingUserAsync(loginAfterSetPasswordClient, email, "[PLACEHOLDER]-1a-updated"); 206var index = await UserStories.RegisterNewUserAsync(client, email, "[PLACEHOLDER]-1a"); 207var linkLogin = await UserStories.LinkExternalLoginAsync(index, email); 208await UserStories.RemoveExternalLoginAsync(linkLogin, email); 228var index = await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email); 256var loggedIn = await UserStories.RegisterNewUserAsync(client, userName, password); 257var showRecoveryCodes = await UserStories.EnableTwoFactorAuthentication(loggedIn); 261await UserStories.AcceptCookiePolicy(newClient); 262var index = await UserStories.LoginExistingUser2FaAsync(newClient, userName, password, twoFactorKey); 263await UserStories.ResetAuthenticator(index); 289? await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email) 290: await UserStories.RegisterNewUserAsync(client, email, "[PLACEHOLDER]-1a"); 294await UserStories.EnableTwoFactorAuthentication(index); 298var jsonData = await UserStories.DownloadPersonalData(index, userName); 340await UserStories.RegisterNewUserAsync(client); 359var index = await UserStories.RegisterNewUserAsync(client, userName, password); 362await UserStories.DeleteUser(index, password);
Pages\Account\Manage\Index.cs (1)
46await UserStories.AcceptCookiePolicy(Client);
RegistrationTests.cs (13)
37await UserStories.RegisterNewUserAsync(client, userName, password); 55var register = await UserStories.RegisterNewUserAsyncWithConfirmation(client, userName, password); 58await UserStories.LoginFailsWithWrongPasswordAsync(client, userName, password); 60await UserStories.LoginExistingUserAsync(client, userName, password); 88var register = await UserStories.RegisterNewUserAsyncWithConfirmation(client, userName, password, hasRealEmailSender: true); 91await UserStories.LoginFailsWithWrongPasswordAsync(client, userName, password); 109await UserStories.RegisterNewUserAsync(client, userName, password); 129await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email); 151await UserStories.RegisterNewUserWithSocialLoginWithConfirmationAsync(client, userName, email); 176await UserStories.RegisterNewUserWithSocialLoginWithConfirmationAsync(client, userName, email, hasRealEmailSender: true); 197await UserStories.RegisterNewUserWithSocialLoginAsyncViaRegisterPage(client, userName, email); 218await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email); 242await UserStories.RegisterNewUserWithSocialLoginAsync(client, userName, email);