This project is read-only.

Cross field date validation

Feb 7, 2012 at 1:49 PM
Edited Feb 8, 2012 at 12:07 AM

Seems like the date validation when using cross field is not working correctly.


.Setup(program => program.BeginDate)

   .Setup(program => program.EndDate)
      .MustBeGreaterThanOrEqualTo(program => program.BeginDate);

 Returns an error on the EndDate property.

I tried using MustBeGreaterThanOrEqualTo(value) instead of cross field and it works correctly, Before I pass in the object to validate, I have verfied that the BeginDate is "2012-01-15" and EndDate is "2012-10-15"




Feb 8, 2012 at 12:19 AM

Sounds like you found a bug...

I have created a new release with the fix (release 2.0.01). Thanks for pointing it out.


Feb 8, 2012 at 12:33 AM

Thanks .. I was going crazy last 2 days trying different things :-) I like your project but I just don't seem to understand the internals of it.

Thanks for fixing the defect.