public void WhenNotSequential_ReturnsSuccess(string password)
        {
            var validator = new NotSequentialNewPasswordValidator();
            var context   = new NewPasswordValidationContext()
            {
                Password = password
            };

            var result = validator.Validate(context);

            result.Should().BeNull();
        }
        public void WhenSequential_ReturnsError(string password)
        {
            var validator = new NotSequentialNewPasswordValidator();
            var context   = new NewPasswordValidationContext()
            {
                Password = password
            };

            var result = validator.Validate(context);

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