public ManageExternalLogin(HttpClient client, IHtmlDocument externalLoginDocument, DefaultUIContext context) : base(client, externalLoginDocument, context) { _externalLoginForm = HtmlAssert.HasForm("#external-login", externalLoginDocument); }
public ExternalLogins(HttpClient client, IHtmlDocument externalLoginDocument, DefaultUIContext context) : base(client, externalLoginDocument, context) { if (context.SocialLoginProvider != null && context.PasswordLoginEnabled) { RemoveExternalLogin = HtmlAssert.HasForm("#remove-login-Contoso", Document); } if (context.SocialLoginProvider != null) { ExternalLoginDisplayName = HtmlAssert.HasElement("#login-provider-Contoso", Document); } }
public static async Task <ConfirmEmail> Create(IHtmlAnchorElement link, HttpClient client, DefaultUIContext context) { var response = await client.GetAsync(link.Href); var confirmEmail = await ResponseAssert.IsHtmlDocumentAsync(response); return(new ConfirmEmail(client, confirmEmail, context)); }
public DefaultUIContext(DefaultUIContext currentContext) : base(currentContext) { }
public LinkExternalLogin(HttpClient client, IHtmlDocument externalLoginsDocument, DefaultUIContext context) : base(client, externalLoginsDocument, context) { _linkLoginForm = HtmlAssert.HasForm($"#link-login-form", externalLoginsDocument); _linkLoginButton = HtmlAssert.HasElement($"#link-login-button-Contoso", externalLoginsDocument); }
public ResendEmailConfirmation(HttpClient client, IHtmlDocument document, DefaultUIContext context) : base(client, document, context) { _resendForm = HtmlAssert.HasForm(document); }
public ShowRecoveryCodes(HttpClient client, IHtmlDocument showRecoveryCodes, DefaultUIContext context) : base(client, showRecoveryCodes, context) { _recoveryCodeElements = HtmlAssert.HasElements(".recovery-code", showRecoveryCodes); Context.RecoveryCodes = Codes.ToArray(); }
public DeleteUser(HttpClient client, IHtmlDocument deleteUser, DefaultUIContext context) : base(client, deleteUser, context) { _deleteForm = HtmlAssert.HasForm("#delete-user", deleteUser); }
public ForgotPasswordConfirmation(HttpClient client, IHtmlDocument document, DefaultUIContext context) : base(client, document, context) { }
public Login(HttpClient client, IHtmlDocument login, DefaultUIContext context) : base(client, login, context) { _loginForm = HtmlAssert.HasForm(login); }
public ExternalLogins(HttpClient client, IHtmlDocument externalLoginDocument, DefaultUIContext context) : base(client, externalLoginDocument, context) { }
public SetPassword(HttpClient client, IHtmlDocument setPassword, DefaultUIContext context) : base(client, setPassword, context) { _setPasswordForm = HtmlAssert.HasForm("#set-password-form", setPassword); }
public ResetPasswordConfirmation(HttpClient client, IHtmlDocument resetPasswordConfirmation, DefaultUIContext context) : base(client, resetPasswordConfirmation, context) { }
public ResetPassword(HttpClient client, IHtmlDocument resetPassword, DefaultUIContext context) : base(client, resetPassword, context) { _resetPasswordForm = HtmlAssert.HasForm(resetPassword); }
public Register(HttpClient client, IHtmlDocument register, DefaultUIContext context) : base(client, register, context) { _registerForm = HtmlAssert.HasForm(register); }
internal static async Task <ResetPassword> CreateAsync(IHtmlAnchorElement link, HttpClient client, DefaultUIContext context) { var resetPasswordResponse = await client.GetAsync(link.Href); var resetPassword = await ResponseAssert.IsHtmlDocumentAsync(resetPasswordResponse); return(new ResetPassword(client, resetPassword, context)); }
public ChangePassword(HttpClient client, IHtmlDocument changePassword, DefaultUIContext context) : base(client, changePassword, context) { _changePasswordForm = HtmlAssert.HasForm("#change-password-form", changePassword); }
public RemoveExternalLogin(HttpClient client, IHtmlDocument externalLogin, DefaultUIContext context) : base(client, externalLogin, context) { _removeLoginForm = HtmlAssert.HasForm($"#remove-login-Contoso", externalLogin); }
public LoginWith2fa(HttpClient client, IHtmlDocument loginWithTwoFactor, DefaultUIContext context) : base(client, loginWithTwoFactor, context) { _twoFactorForm = HtmlAssert.HasForm(loginWithTwoFactor); _loginWithRecoveryCodeLink = HtmlAssert.HasLink("#recovery-code-login", loginWithTwoFactor); }
public PersonalData(HttpClient client, IHtmlDocument personalData, DefaultUIContext context) : base(client, personalData, context) { _deleteLink = HtmlAssert.HasLink("#delete", personalData); _downloadForm = HtmlAssert.HasForm("#download-data", personalData); }
public ForgotPassword(HttpClient client, IHtmlDocument document, DefaultUIContext context) : base(client, document, context) { _forgotPasswordForm = HtmlAssert.HasForm(document); }
public LoginWithRecoveryCode(HttpClient client, IHtmlDocument loginWithRecoveryCode, DefaultUIContext context) : base(client, loginWithRecoveryCode, context) { _loginWithRecoveryCodeForm = HtmlAssert.HasForm(loginWithRecoveryCode); }
public ConfirmEmail( HttpClient client, IHtmlDocument document, DefaultUIContext context) : base(client, document, context) { }