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