/// <summary>
        /// Creates a basic rule set.
        /// </summary>
        /// <returns>New instance of PasswordRules</returns>
        public static PasswordRules CreateBasic()
        {
            var bl = new List <string>
            {
                "password",
                "pa$$word",
                "pa$$w0rd",
                "p@ssword",
                "password1*",
                "pass@word1"
            };

            var result = new PasswordRules
            {
                Validators = ValidatorTypes.Basic,
                Blacklist  = bl.ToArray()
            };

            return(result);
        }
        public void SetupRules(PasswordRules ruleSet)
        {
            RuleSet = ruleSet;

            validationSet = validatorFactory.CreateValidationSet(ruleSet).ToList();
        }
        public PasswordService(IValidatorFactory validatorFactory)
        {
            this.validatorFactory = validatorFactory;

            SetupRules(PasswordRules.CreateBasic());
        }