Exemplo n.º 1
0
 public void DisposeUnmanaged()
 {
     tmpBooking               = null;
     OutsideHoursException    = null;
     NoCreditCardException    = null;
     NotEnoughPeopleException = null;
 }
Exemplo n.º 2
0
 public void GivenTheTheCustomerHasCreatedABookingFor(int numOfPeople)
 {
     try
     {
         tmpBooking = new Booking(DateTime.Now.Date.AddHours(10), numOfPeople);
     }
     catch (NotEnoughPeopleException ex)
     {
         NotEnoughPeopleException = ex;
     }
 }