Esempio n. 1
0
 public void DisposeUnmanaged()
 {
     tmpBooking               = null;
     OutsideHoursException    = null;
     NoCreditCardException    = null;
     NotEnoughPeopleException = null;
 }
Esempio n. 2
0
 public void GivenTheTheCustomerHasCreatedABookingForPeopleOutsideWorkHours()
 {
     try
     {
         tmpBooking = new Booking(DateTime.Now.Date.AddHours(7), 2);
     }
     catch (BookingOutsideHoursException ex)
     {
         OutsideHoursException = ex;
     }
 }