public void Validate_GivenAllPropertiesAreValid_ExpectValidationSuccess()
            {
                var model = new ValidateAppMfaCode.Model {
                    Code = "code"
                };
                var validator = new ValidateAppMfaCode.Validator();
                var result    = validator.Validate(model);

                Assert.True(result.IsValid);
            }
            public void Validate_GivenCodeIsNull_ExpectValidationFailure()
            {
                var model = new ValidateAppMfaCode.Model {
                    Code = null
                };
                var validator = new ValidateAppMfaCode.Validator();
                var result    = validator.Validate(model);

                Assert.False(result.IsValid);
                Assert.Contains(result.Errors, x => x.PropertyName == "Code");
            }