public void cancellation_reason_is_longer_than_1000_characters() { var request = new CancelAppointment { Reason = new string('x', 1001) }; var sut = new CancelAppointmentValidator(); sut.ShouldHaveValidationErrorFor(p => p.Reason, request); }
public void cancellation_reason_is_empty() { var request = new CancelAppointment { Reason = string.Empty }; var sut = new CancelAppointmentValidator(); sut.ShouldHaveValidationErrorFor(p => p.Reason, request); }