Example #1
0
 public void ShouldNot_Create_With_Invalid_ClientId(int clientId)
 {
     Assert.Throws <DomainException>(() =>
                                     OccupationBuilder.New().WithClientId(clientId).Build());
 }
Example #2
0
 public void ShouldNot_Create_With_Invalid_RoomId(int roomId)
 {
     Assert.Throws <DomainException>(() =>
                                     OccupationBuilder.New().WithRoomId(roomId).Build());
 }
Example #3
0
 public void ShouldNot_Create_With_Invalid_DailyAmount(int dailyAmount)
 {
     Assert.Throws <DomainException>(() =>
                                     OccupationBuilder.New().WithDailyAmount(dailyAmount).Build());
 }