1 write to Client
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\HtmlPage.cs (1)
13
Client
= client;
108 references to Client
Microsoft.AspNetCore.Identity.FunctionalTests (108)
Pages\Account\ExternalLogin.cs (6)
29
var response = await
Client
.SendAsync(_emailForm, new Dictionary<string, string>
34
var indexResponse = await
Client
.GetAsync(redirect);
36
return new Index(
Client
, index, Context.WithAuthenticatedUser());
41
var response = await
Client
.SendAsync(_emailForm, new Dictionary<string, string>
48
var registerResponse = await
Client
.GetAsync(redirect);
51
return new RegisterConfirmation(
Client
, register, hasRealEmail ? Context.WithRealEmailSender() : Context);
Pages\Account\ForgotPassword.cs (3)
20
var response = await
Client
.SendAsync(_forgotPasswordForm, new Dictionary<string, string>
25
var forgotPasswordConfirmationResponse = await
Client
.GetAsync(goToForgotPasswordConfirmation);
28
return new ForgotPasswordConfirmation(
Client
, forgotPasswordConfirmation, Context);
Pages\Account\Login.cs (14)
37
var externalFormResponse = await
Client
.SendAsync(_externalLoginForm, _contosoButton);
39
var contosoLoginResponse = await
Client
.GetAsync(goToContosoLogin);
43
return new Contoso.Login(
Client
, contosoLogin, Context);
48
var response = await
Client
.GetAsync(_forgotPasswordLink.Href);
51
return new ForgotPassword(
Client
, forgotPassword, Context);
56
var response = await
Client
.GetAsync(_reconfirmLink.Href);
59
return new ResendEmailConfirmation(
Client
, forgotPassword, Context);
68
var indexResponse = await
Client
.GetAsync(loggedInLocation);
71
Client
,
92
var lockedOutResponse = await
Client
.GetAsync(lockedOut);
94
return new DefaultUIPage(
Client
, lockout, Context);
99
return await
Client
.SendAsync(_loginForm, _loginButton, new Dictionary<string, string>()
112
var loginWithTwoFactorResponse = await
Client
.GetAsync(loggedInLocation);
115
return new LoginWith2fa(
Client
, loginWithTwoFactor, Context);
Pages\Account\LoginWith2fa.cs (5)
28
var response = await
Client
.SendAsync(_twoFactorForm, new Dictionary<string, string>
35
var indexResponse = await
Client
.GetAsync(goToIndex);
38
return new Index(
Client
, index, Context.WithAuthenticatedUser());
43
var goToLoginWithRecoveryCode = await
Client
.GetAsync(_loginWithRecoveryCodeLink.Href);
46
return new LoginWithRecoveryCode(
Client
, loginWithRecoveryCode, Context);
Pages\Account\LoginWithRecoveryCode.cs (3)
21
var response = await
Client
.SendAsync(_loginWithRecoveryCodeForm, new Dictionary<string, string>
27
var indexPage = await
Client
.GetAsync(goToIndex);
30
return new Index(
Client
, index, Context.WithAuthenticatedUser());
Pages\Account\Manage\ChangePassword.cs (1)
21
await
Client
.SendAsync(_changePasswordForm, new Dictionary<string, string>
Pages\Account\Manage\DeleteUser.cs (3)
25
var indexResponse = await
Client
.GetAsync(deleteLocation);
27
return new FunctionalTests.Index(
Client
, index, Context);
32
return await
Client
.SendAsync(_deleteForm, new Dictionary<string, string>()
Pages\Account\Manage\Email.cs (6)
38
var response = await
Client
.SendAsync(_changeEmailForm, _confirmEmailButton);
40
var manageResponse = await
Client
.GetAsync(goToManage);
43
return new Email(
Client
, manage, Context);
48
var response = await
Client
.SendAsync(_changeEmailForm, _changeEmailButton, new Dictionary<string, string>
53
var manageResponse = await
Client
.GetAsync(goToManage);
56
return new Email(
Client
, manage, Context);
Pages\Account\Manage\EnableAuthenticator.cs (3)
34
var sendCodeResponse = await
Client
.SendAsync(_sendCodeForm, new Dictionary<string, string>
40
var showRecoveryCodesResponse = await
Client
.GetAsync(goToShowRecoveryCodes);
43
return new ShowRecoveryCodes(
Client
, showRecoveryCodes, Context);
Pages\Account\Manage\Index.cs (18)
46
await UserStories.AcceptCookiePolicy(
Client
);
49
var goToTwoFactor = await
Client
.GetAsync(_twoFactorLink.Href);
53
return new TwoFactorAuthentication(
Client
, twoFactor, context);
58
var goToTwoFactor = await
Client
.GetAsync(_twoFactorLink.Href);
62
return new TwoFactorAuthentication(
Client
, twoFactor, Context);
67
var goToChangePassword = await
Client
.GetAsync(_changePasswordLink.Href);
69
return new ChangePassword(
Client
, changePasswordDocument, Context);
76
var response = await
Client
.GetAsync(_changePasswordLink.Href);
78
var setPasswordResponse = await
Client
.GetAsync(goToSetPassword);
80
return new SetPassword(
Client
, setPasswordDocument, Context);
85
var goToPersonalData = await
Client
.GetAsync(_personalDataLink.Href);
87
return new PersonalData(
Client
, personalData, Context);
92
var goToEmail = await
Client
.GetAsync(_emailLink.Href);
94
return new Email(
Client
, email, Context);
99
var goToExternalLogin = await
Client
.GetAsync(_externalLoginLink.Href);
102
return new LinkExternalLogin(
Client
, externalLoginDocument, Context);
107
var goToExternalLogin = await
Client
.GetAsync(_externalLoginLink.Href);
110
return new ExternalLogins(
Client
, externalLoginDocument, Context);
Pages\Account\Manage\LinkExternalLogin.cs (4)
24
var linkExternalLogin = await
Client
.SendAsync(_linkLoginForm, _linkLoginButton);
26
var externalLoginResponse = await
Client
.GetAsync(goToLinkExternalLogin);
30
return new ManageExternalLogin(
Client
, externalLoginDocument, Context);
35
return new RemoveExternalLogin(
Client
, linkedExternalLoginDocument, Context);
Pages\Account\Manage\ManageExternalLogin.cs (4)
21
var linkedExternalLogin = await
Client
.SendAsync(_externalLoginForm, new Dictionary<string, string>
27
var externalLoginResponse = await
Client
.GetAsync(goToLinkedExternalLogin);
29
var manageExternalLoginResponse = await
Client
.GetAsync(goToManageExternalLogin);
32
return new RemoveExternalLogin(
Client
, manageExternalLoginDocument, Context);
Pages\Account\Manage\PersonalData.cs (3)
23
var goToDelete = await
Client
.GetAsync(_deleteLink.Href);
25
return new DeleteUser(
Client
, delete, Context.WithAnonymousUser());
30
return await
Client
.SendAsync(_downloadForm, new Dictionary<string, string>());
Pages\Account\Manage\RemoveExternalLogin.cs (1)
21
await
Client
.SendAsync(_removeLoginForm, new Dictionary<string, string>
Pages\Account\Manage\ResetAuthenticator.cs (1)
27
await
Client
.SendAsync(_resetAuthenticatorForm, _resetAuthenticatorButton);
Pages\Account\Manage\SetPassword.cs (1)
21
await
Client
.SendAsync(_setPasswordForm, new Dictionary<string, string>
Pages\Account\Manage\TwoFactorAuthentication.cs (4)
38
var goToEnableAuthenticator = await
Client
.GetAsync(_enableAuthenticatorLink.Href);
41
return new EnableAuthenticator(
Client
, enableAuthenticator, Context);
46
var goToResetAuthenticator = await
Client
.GetAsync(_resetAuthenticatorLink.Href);
49
return new ResetAuthenticator(
Client
, resetAuthenticator, Context);
Pages\Account\Register.cs (9)
28
var externalFormResponse = await
Client
.SendAsync(_externalLoginForm, _contosoButton);
30
var contosoLoginResponse = await
Client
.GetAsync(goToContosoLogin);
34
return new Contoso.Login(
Client
, contosoLogin, Context);
39
var registered = await
Client
.SendAsync(_registerForm, new Dictionary<string, string>()
48
var indexResponse = await
Client
.GetAsync(registeredLocation);
51
return new Index(
Client
, index, Context.WithAuthenticatedUser());
56
var registered = await
Client
.SendAsync(_registerForm, new Dictionary<string, string>()
65
var registerResponse = await
Client
.GetAsync(registeredLocation);
68
return new RegisterConfirmation(
Client
, register, hasRealEmail ? Context.WithRealEmailSender() : Context);
Pages\Account\ResendEmailConfirmation.cs (1)
19
=>
Client
.SendAsync(_resendForm, new Dictionary<string, string>
Pages\Account\ResetPassword.cs (3)
28
var resetPasswordResponse = await
Client
.SendAsync(_resetPasswordForm, new Dictionary<string, string>
36
var resetPasswordConfirmationResponse = await
Client
.GetAsync(goToResetPasswordConfirmation);
39
return new ResetPasswordConfirmation(
Client
, resetPasswordConfirmation, Context);
Pages\Contoso\Login.cs (5)
24
return new ExternalLogin(
Client
, externalLogin, Context.WithSocialLoginProvider());
31
return new Index(
Client
, externalLogin, Context.WithAuthenticatedUser());
36
var contosoResponse = await
Client
.SendAsync(_loginForm, new Dictionary<string, string>
42
var externalLogInResponse = await
Client
.GetAsync(goToExternalLogin);
46
var indexResponse = await
Client
.GetAsync(goToIndex);
Pages\Index.cs (8)
46
var goToRegister = await
Client
.GetAsync(_registerLink.Href);
49
return new Register(
Client
, register, Context);
56
var goToLogin = await
Client
.GetAsync(_loginLink.Href);
59
return new Login(
Client
, login, Context);
66
var goToManage = await
Client
.GetAsync(_manageLink.Href);
69
return new Account.Manage.Index(
Client
, manage, Context);
76
var goToManage = await
Client
.GetAsync(_manageLink.Href);
79
return new Account.Manage.Index(
Client
, manage, Context
Pages\RegisterConfirmation.cs (2)
33
var goToConfirm = await
Client
.GetAsync(_confirmLink.Href);
36
return await ConfirmEmail.Create(_confirmLink,
Client
, Context);