73 references to ResponseAssert
Microsoft.AspNetCore.Identity.FunctionalTests (73)
AuthorizationTests.cs (4)
50var location = ResponseAssert.IsRedirect(response); 89await ResponseAssert.IsHtmlDocumentAsync(response); 122await ResponseAssert.IsHtmlDocumentAsync(response); 150await ResponseAssert.IsHtmlDocumentAsync(response);
Pages\Account\ConfirmEmail.cs (1)
21var confirmEmail = await ResponseAssert.IsHtmlDocumentAsync(response);
Pages\Account\ExternalLogin.cs (4)
33var redirect = ResponseAssert.IsRedirect(response); 35var index = await ResponseAssert.IsHtmlDocumentAsync(indexResponse); 45var redirect = ResponseAssert.IsRedirect(response); 49var register = await ResponseAssert.IsHtmlDocumentAsync(registerResponse);
Pages\Account\ForgotPassword.cs (2)
24var goToForgotPasswordConfirmation = ResponseAssert.IsRedirect(response); 26var forgotPasswordConfirmation = await ResponseAssert.IsHtmlDocumentAsync(forgotPasswordConfirmationResponse);
Pages\Account\Login.cs (11)
38var goToContosoLogin = ResponseAssert.IsRedirect(externalFormResponse); 41var contosoLogin = await ResponseAssert.IsHtmlDocumentAsync(contosoLoginResponse); 49var forgotPassword = await ResponseAssert.IsHtmlDocumentAsync(response); 57var forgotPassword = await ResponseAssert.IsHtmlDocumentAsync(response); 66var loggedInLocation = ResponseAssert.IsRedirect(loggedIn); 69var index = await ResponseAssert.IsHtmlDocumentAsync(indexResponse); 80ResponseAssert.IsOK(failedLogin); 89var lockedOut = ResponseAssert.IsRedirect(loginAttempt); 93var lockout = await ResponseAssert.IsHtmlDocumentAsync(lockedOutResponse); 110var loggedInLocation = ResponseAssert.IsRedirect(loggedIn); 113var loginWithTwoFactor = await ResponseAssert.IsHtmlDocumentAsync(loginWithTwoFactorResponse);
Pages\Account\LoginWith2fa.cs (3)
33var goToIndex = ResponseAssert.IsRedirect(response); 36var index = await ResponseAssert.IsHtmlDocumentAsync(indexResponse); 44var loginWithRecoveryCode = await ResponseAssert.IsHtmlDocumentAsync(goToLoginWithRecoveryCode);
Pages\Account\LoginWithRecoveryCode.cs (2)
26var goToIndex = ResponseAssert.IsRedirect(response); 28var index = await ResponseAssert.IsHtmlDocumentAsync(indexPage);
Pages\Account\Manage\DeleteUser.cs (2)
23var deleteLocation = ResponseAssert.IsRedirect(loggedIn); 26var index = await ResponseAssert.IsHtmlDocumentAsync(indexResponse);
Pages\Account\Manage\Email.cs (4)
39var goToManage = ResponseAssert.IsRedirect(response); 41var manage = await ResponseAssert.IsHtmlDocumentAsync(manageResponse); 52var goToManage = ResponseAssert.IsRedirect(response); 54var manage = await ResponseAssert.IsHtmlDocumentAsync(manageResponse);
Pages\Account\Manage\EnableAuthenticator.cs (2)
39var goToShowRecoveryCodes = ResponseAssert.IsRedirect(sendCodeResponse); 41var showRecoveryCodes = await ResponseAssert.IsHtmlDocumentAsync(showRecoveryCodesResponse);
Pages\Account\Manage\Index.cs (9)
50var twoFactor = await ResponseAssert.IsHtmlDocumentAsync(goToTwoFactor); 59var twoFactor = await ResponseAssert.IsHtmlDocumentAsync(goToTwoFactor); 68var changePasswordDocument = await ResponseAssert.IsHtmlDocumentAsync(goToChangePassword); 77var goToSetPassword = ResponseAssert.IsRedirect(response); 79var setPasswordDocument = await ResponseAssert.IsHtmlDocumentAsync(setPasswordResponse); 86var personalData = await ResponseAssert.IsHtmlDocumentAsync(goToPersonalData); 93var email = await ResponseAssert.IsHtmlDocumentAsync(goToEmail); 100var externalLoginDocument = await ResponseAssert.IsHtmlDocumentAsync(goToExternalLogin); 108var externalLoginDocument = await ResponseAssert.IsHtmlDocumentAsync(goToExternalLogin);
Pages\Account\Manage\LinkExternalLogin.cs (2)
25var goToLinkExternalLogin = ResponseAssert.IsRedirect(linkExternalLogin); 27var externalLoginDocument = await ResponseAssert.IsHtmlDocumentAsync(externalLoginResponse);
Pages\Account\Manage\ManageExternalLogin.cs (3)
26var goToLinkedExternalLogin = ResponseAssert.IsRedirect(linkedExternalLogin); 28var goToManageExternalLogin = ResponseAssert.IsRedirect(externalLoginResponse); 31var manageExternalLoginDocument = await ResponseAssert.IsHtmlDocumentAsync(manageExternalLoginResponse);
Pages\Account\Manage\PersonalData.cs (1)
24var delete = await ResponseAssert.IsHtmlDocumentAsync(goToDelete);
Pages\Account\Manage\TwoFactorAuthentication.cs (2)
39var enableAuthenticator = await ResponseAssert.IsHtmlDocumentAsync(goToEnableAuthenticator); 47var resetAuthenticator = await ResponseAssert.IsHtmlDocumentAsync(goToResetAuthenticator);
Pages\Account\Register.cs (6)
29var goToContosoLogin = ResponseAssert.IsRedirect(externalFormResponse); 32var contosoLogin = await ResponseAssert.IsHtmlDocumentAsync(contosoLoginResponse); 46var registeredLocation = ResponseAssert.IsRedirect(registered); 49var index = await ResponseAssert.IsHtmlDocumentAsync(indexResponse); 63var registeredLocation = ResponseAssert.IsRedirect(registered); 66var register = await ResponseAssert.IsHtmlDocumentAsync(registerResponse);
Pages\Account\ResetPassword.cs (3)
21var resetPassword = await ResponseAssert.IsHtmlDocumentAsync(resetPasswordResponse); 35var goToResetPasswordConfirmation = ResponseAssert.IsRedirect(resetPasswordResponse); 37var resetPasswordConfirmation = await ResponseAssert.IsHtmlDocumentAsync(resetPasswordConfirmationResponse);
Pages\Contoso\Login.cs (4)
41var goToExternalLogin = ResponseAssert.IsRedirect(contosoResponse); 45var goToIndex = ResponseAssert.IsRedirect(externalLogInResponse); 47return await ResponseAssert.IsHtmlDocumentAsync(indexResponse); 51return await ResponseAssert.IsHtmlDocumentAsync(externalLogInResponse);
Pages\Index.cs (5)
37var index = await ResponseAssert.IsHtmlDocumentAsync(goToIndex); 47var register = await ResponseAssert.IsHtmlDocumentAsync(goToRegister); 57var login = await ResponseAssert.IsHtmlDocumentAsync(goToLogin); 67var manage = await ResponseAssert.IsHtmlDocumentAsync(goToManage); 77var manage = await ResponseAssert.IsHtmlDocumentAsync(goToManage);
Pages\RegisterConfirmation.cs (1)
34var confirm = await ResponseAssert.IsHtmlDocumentAsync(goToConfirm);
UserStories.cs (2)
199ResponseAssert.IsOK(response); 270ResponseAssert.IsOK(download);