public void Validate_GivenAllPropertiesAreValid_ExpectValidationSuccess()
        {
            var cmd       = new EnableAccountCommand(TestVariables.UserId);
            var validator = new EnableAccountCommandValidator();
            var result    = validator.Validate(cmd);

            Assert.True(result.IsValid);
        }
        public void Validate_GivenDeviceIdIsEmpty_ExpectValidationFailure()
        {
            var cmd       = new EnableAccountCommand(Guid.Empty);
            var validator = new EnableAccountCommandValidator();
            var result    = validator.Validate(cmd);

            Assert.False(result.IsValid);
            Assert.Contains(
                result.Errors,
                failure => failure.ErrorCode.Equals(ValidationCodes.FieldIsRequired) &&
                failure.PropertyName == "UserId");
        }