public void WhenMoreThanMin_ReturnsSuccess(string password)
        {
            var validator = new MinUniqueCharactersNewPasswordValidator();

            validator.Configure(3);

            var context = new NewPasswordValidationContext()
            {
                Password = password
            };

            var result = validator.Validate(context);

            result.Should().BeNull();
        }
        public void WhenLessThanMin_ReturnsError(string password)
        {
            var validator = new MinUniqueCharactersNewPasswordValidator();

            validator.Configure(3);

            var context = new NewPasswordValidationContext()
            {
                Password = password
            };

            var result = validator.Validate(context);

            result.Should().NotBeNull();
            result.ErrorCode.Should().Be(PasswordPolicyValidationErrors.MinUniqueCharacters.ErrorCode);
        }