Cross field date validation

Feb 7, 2012 at 12:49 PM
Edited Feb 7, 2012 at 11:07 PM

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 7, 2012 at 11:19 PM

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 7, 2012 at 11:33 PM

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.