Example #1
0
        public Tuple <bool, string> VerifyPassword(string password, IPasswordValidator validator,
                                                   IRepository repository)
        {
            IsNull(password);
            var result = validator.IsRequired(password);

            if (result.Item1)
            {
                repository.Create(password);
            }

            return(result);
        }