public void PasswordGreaterThanMaxLengthFailsValidation()
        {
            var password = "******".ConvertToSecureString();

            _lengthConstraint = new PasswordLengthConstraint(1, 5);
            Assert.That(_lengthConstraint.Validate(password), Is.False);
        }
        public void PasswordThatEqualsMaxLengthPassesValidation()
        {
            var password = "******".ConvertToSecureString();

            _lengthConstraint = new PasswordLengthConstraint(1, 5);
            Assert.That(_lengthConstraint.Validate(password), Is.True);
        }
        public void PasswordLessThanMinimumLengthFailsValidation()
        {
            var password = "******".ConvertToSecureString();

            _lengthConstraint = new PasswordLengthConstraint(10);
            Assert.That(_lengthConstraint.Validate(password), Is.False);
        }