public void IsValid_ShouldBeFalse_WhenRequiredFieldsAreNotSet()
        {
            var command = new UpdateEmailLogCommand();

            var validator = new UpdateEmailLogCommandValidator(Context);

            var result = validator.Validate(command);

            result.IsValid.ShouldBe(false);
        }
        public void IsValid_ShouldBeTrue_WhenRequiredFieldsAreSet()
        {
            var command = new UpdateEmailLogCommand
            {
                Id       = 1,
                EmailId  = 1,
                SentDate = DateTime.Now,
                SentBy   = "UnitTest"
            };

            var validator = new UpdateEmailLogCommandValidator(Context);

            var result = validator.Validate(command);

            result.IsValid.ShouldBe(true);
        }