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