Example #1
0
 public void Should_HaveError_WhenRoomIdHasInvalidValue(int roomId)
 {
     _validator.ShouldHaveValidationErrorFor(x => x.RoomId, roomId);
 }
Example #2
0
 public void Should_HaveError_WhenNrOfOccupantsHasInvalidValue(int nrOfOccupants)
 {
     _validator.ShouldHaveValidationErrorFor(x => x.NrOfOccupants, nrOfOccupants);
 }