public PasswordValidationService( IHashingProvider hashingProvider, ISaltStrategy saltStrategy, IPasswordRule passwordRule) { _hashProvider = hashingProvider; _saltStrategy = saltStrategy; _passwordRule = passwordRule; }
public void AddRule(IPasswordRule rule) { this.passwordRules.Add(rule); }
public PasswordWithRule(IPasswordRule rule, string pass) => (Rule, Password) = (rule, pass);