public void CheckValidator_ShouldFailIfEndDateTimeIsGreaterThenStartDateTime() { var checkBooking = new CheckValidator(); var bookingDetails = new CheckBookingDto { StartDateTime = new DateTime(2018, 08, 22, 12, 00, 00), EndDateTime = new DateTime(2018, 08, 22, 11, 00, 00) }; checkBooking.ShouldHaveValidationErrorFor(e => e.EndDateTime, bookingDetails); }
public void BookingValidator_ShouldFailIfEndDateTimeIsEmpty() { var checkBooking = new CheckValidator(); checkBooking.ShouldHaveValidationErrorFor(e => e.EndDateTime, default(DateTime)); }