16 instantiations of DefaultUIContext
Microsoft.AspNetCore.Identity.FunctionalTests (16)
Infrastructure\DefaultUIContext.cs (9)
13
new
DefaultUIContext
(this) { UserAuthenticated = true };
16
new
DefaultUIContext
(this) { UserAuthenticated = false };
19
new
DefaultUIContext
(this) { ContosoLoginEnabled = true };
22
new
DefaultUIContext
(this) { ExistingUser = true };
25
new
DefaultUIContext
(this) { EmailConfirmed = true };
28
new
DefaultUIContext
(this) { SocialLoginProvider = "contoso" };
31
new
DefaultUIContext
(this) { PasswordLoginEnabled = true };
34
new
DefaultUIContext
(this) { CookiePolicyAccepted = true };
37
new
DefaultUIContext
(this) { HasRealEmailSender = true };
Pages\Index.cs (1)
39
return new Index(client, index, context ?? new
DefaultUIContext
());
UserStories.cs (6)
68
var index = await Index.CreateAsync(client, new
DefaultUIContext
().WithSocialLoginEnabled());
81
var index = await Index.CreateAsync(client, new
DefaultUIContext
().WithSocialLoginEnabled());
94
var index = await Index.CreateAsync(client, new
DefaultUIContext
().WithSocialLoginEnabled());
123
new
DefaultUIContext
()
187
return await ConfirmEmail.Create(link, client, new
DefaultUIContext
()
220
var resetPassword = await ResetPassword.CreateAsync(link, client, new
DefaultUIContext
().WithExistingUser());
44 references to DefaultUIContext
Microsoft.AspNetCore.Identity.FunctionalTests (44)
Infrastructure\DefaultUIContext.cs (10)
10
public DefaultUIContext(
DefaultUIContext
currentContext) : base(currentContext) { }
12
public
DefaultUIContext
WithAuthenticatedUser() =>
15
public
DefaultUIContext
WithAnonymousUser() =>
18
public
DefaultUIContext
WithSocialLoginEnabled() =>
21
public
DefaultUIContext
WithExistingUser() =>
24
public
DefaultUIContext
WithConfirmedEmail() =>
27
internal
DefaultUIContext
WithSocialLoginProvider() =>
30
internal
DefaultUIContext
WithPasswordLogin() =>
33
internal
DefaultUIContext
WithCookieConsent() =>
36
internal
DefaultUIContext
WithRealEmailSender() =>
Infrastructure\DefaultUIPage.cs (2)
9
public class DefaultUIPage : HtmlPage<
DefaultUIContext
>
11
public DefaultUIPage(HttpClient client, IHtmlDocument document,
DefaultUIContext
context)
Pages\Account\ConfirmEmail.cs (2)
14
DefaultUIContext
context) : base(client, document, context)
18
public static async Task<ConfirmEmail> Create(IHtmlAnchorElement link, HttpClient client,
DefaultUIContext
context)
Pages\Account\ExternalLogin.cs (1)
16
DefaultUIContext
context)
Pages\Account\ForgotPassword.cs (1)
13
public ForgotPassword(HttpClient client, IHtmlDocument document,
DefaultUIContext
context) : base(client, document, context)
Pages\Account\ForgotPasswordConfirmation.cs (1)
11
public ForgotPasswordConfirmation(HttpClient client, IHtmlDocument document,
DefaultUIContext
context) : base(client, document, context)
Pages\Account\Login.cs (1)
21
DefaultUIContext
context)
Pages\Account\LoginWith2fa.cs (1)
17
public LoginWith2fa(HttpClient client, IHtmlDocument loginWithTwoFactor,
DefaultUIContext
context)
Pages\Account\LoginWithRecoveryCode.cs (1)
13
public LoginWithRecoveryCode(HttpClient client, IHtmlDocument loginWithRecoveryCode,
DefaultUIContext
context)
Pages\Account\Manage\ChangePassword.cs (1)
13
public ChangePassword(HttpClient client, IHtmlDocument changePassword,
DefaultUIContext
context)
Pages\Account\Manage\DeleteUser.cs (1)
13
public DeleteUser(HttpClient client, IHtmlDocument deleteUser,
DefaultUIContext
context)
Pages\Account\Manage\Email.cs (1)
19
public Email(HttpClient client, IHtmlDocument manage,
DefaultUIContext
context)
Pages\Account\Manage\EnableAuthenticator.cs (1)
20
DefaultUIContext
context)
Pages\Account\Manage\ExternalLogins.cs (1)
11
public ExternalLogins(HttpClient client, IHtmlDocument externalLoginDocument,
DefaultUIContext
context)
Pages\Account\Manage\Index.cs (2)
22
public Index(HttpClient client, IHtmlDocument manage,
DefaultUIContext
context)
52
var
context = consent ? Context.WithCookieConsent() : Context;
Pages\Account\Manage\LinkExternalLogin.cs (1)
14
public LinkExternalLogin(HttpClient client, IHtmlDocument externalLoginsDocument,
DefaultUIContext
context)
Pages\Account\Manage\ManageExternalLogin.cs (1)
13
public ManageExternalLogin(HttpClient client, IHtmlDocument externalLoginDocument,
DefaultUIContext
context)
Pages\Account\Manage\PersonalData.cs (1)
14
public PersonalData(HttpClient client, IHtmlDocument personalData,
DefaultUIContext
context)
Pages\Account\Manage\RemoveExternalLogin.cs (1)
13
public RemoveExternalLogin(HttpClient client, IHtmlDocument externalLogin,
DefaultUIContext
context)
Pages\Account\Manage\ResetAuthenticator.cs (1)
17
DefaultUIContext
context)
Pages\Account\Manage\SetPassword.cs (1)
13
public SetPassword(HttpClient client, IHtmlDocument setPassword,
DefaultUIContext
context)
Pages\Account\Manage\ShowRecoveryCodes.cs (1)
13
public ShowRecoveryCodes(HttpClient client, IHtmlDocument showRecoveryCodes,
DefaultUIContext
context)
Pages\Account\Manage\TwoFactorAuthentication.cs (1)
14
public TwoFactorAuthentication(HttpClient client, IHtmlDocument twoFactor,
DefaultUIContext
context)
Pages\Account\Register.cs (1)
15
public Register(HttpClient client, IHtmlDocument register,
DefaultUIContext
context)
Pages\Account\ResendEmailConfirmation.cs (1)
13
public ResendEmailConfirmation(HttpClient client, IHtmlDocument document,
DefaultUIContext
context) : base(client, document, context)
Pages\Account\ResetPassword.cs (2)
13
public ResetPassword(HttpClient client, IHtmlDocument resetPassword,
DefaultUIContext
context) : base(client, resetPassword, context)
18
internal static async Task<ResetPassword> CreateAsync(IHtmlAnchorElement link, HttpClient client,
DefaultUIContext
context)
Pages\Account\ResetPasswordConfirmation.cs (1)
11
public ResetPasswordConfirmation(HttpClient client, IHtmlDocument resetPasswordConfirmation,
DefaultUIContext
context)
Pages\Contoso\Login.cs (1)
14
public Login(HttpClient client, IHtmlDocument login,
DefaultUIContext
context)
Pages\Index.cs (2)
20
DefaultUIContext
context)
34
public static async Task<Index> CreateAsync(HttpClient client,
DefaultUIContext
context = null)
Pages\RegisterConfirmation.cs (1)
18
DefaultUIContext
context)