public void Validate_GivenAllPropertiesAreValid_ExpectValidationSuccess()
        {
            var request = new EnableAccountRequest
            {
                UserId = TestVariables.UserId,
            };
            var validator = new EnableAccountRequest.Validator();
            var result    = validator.Validate(request);

            Assert.True(result.IsValid);
        }
        public void Validate_GivenNameIsEmpty_ExpectValidationFailure()
        {
            var request = new EnableAccountRequest
            {
                UserId = Guid.Empty,
            };
            var validator = new EnableAccountRequest.Validator();
            var result    = validator.Validate(request);

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