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); }
public EmailVerifier(AccountConfiguration config, AccountRepository repo) { if (config == null) throw new ArgumentNullException("config"); this.config = config; this.repo = new AccountRepositoryWrapper(config.RequireDependency(repo)); }