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