public EmailVerifier(AccountConfiguration config, AccountRepository repo) { if (config == null) throw new ArgumentNullException("config"); this.config = config; this.repo = new AccountRepositoryWrapper(config.RequireDependency(repo)); }
public PasswordChanger(AccountConfiguration config, IAccountContext context, AccountRepository repo, PasswordService passServ) { if (config == null) throw new ArgumentNullException("config"); if (context == null) throw new ArgumentNullException("context"); this.context = context; this.repo = new AccountRepositoryWrapper(config.RequireDependency(repo)); this.passServ = config.RequireDependency(passServ); }
public EmailChanger(AccountConfiguration config, IAccountContext context, AccountRepository repo, PasswordService passwordService, FormsAuthenticationService formsAuthService) { if (config == null) throw new ArgumentNullException("config"); if (context == null) throw new ArgumentNullException("context"); this.config = config; this.context = context; this.repo = new AccountRepositoryWrapper(config.RequireDependency(repo)); this.passServ = config.RequireDependency(passwordService); this.formsAuthService = config.RequireDependency(formsAuthService); }
/// <summary> /// Initializes a new instance of the <see cref="ChangeController"/> class, /// with the provided <paramref name="repo"/> and <paramref name="passwordService"/>. /// </summary> /// <param name="repo">The account repository.</param> /// <param name="passwordService">The password service.</param> public ChangeController(AccountRepository repo, PasswordService passwordService) : this() { this.repo = new AccountRepositoryWrapper(repo); this.passServ = passwordService; }
/// <summary> /// Initializes data that might not be available when the constructor is called. /// </summary> /// <param name="requestContext">The HTTP context and route data.</param> protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); this.repo = this.Configuration.RequireDependency(this.repo); this.passServ = this.Configuration.RequireDependency(this.passServ); }
/// <summary> /// Initializes a new instance of the <see cref="VerifyController"/> class, /// with the provided <paramref name="repo"/>. /// </summary> /// <param name="repo">The account repository.</param> public VerifyController(AccountRepository repo) : this() { this.repo = new AccountRepositoryWrapper(repo); }
/// <summary> /// Initializes a new instance of the <see cref="AuthenticationController"/> class, /// with the provided <paramref name="repo"/> and <paramref name="passwordService"/>. /// </summary> /// <param name="repo">The account repository.</param> /// <param name="passwordService">The password service.</param> public AuthenticationController(AccountRepository repo, PasswordService passwordService) : this() { this.repo = new AccountRepositoryWrapper(repo); this.passServ = passwordService; }