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