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