예제 #1
0
 public BookingController(PaymentController paymentController, CustomerController customerController)
 {
     dataAccessFacade = DataAccessFacade.GetInstance();
     bookingCollection = new BookingCollection(dataAccessFacade);
     this.paymentController = paymentController;
     this.customerController = customerController;
 }
예제 #2
0
 /// <summary>
 /// For testing against a specified DataAccessFacade
 /// </summary>
 /// <param name="dataAccessFacade"></param>
 public BookingController(PaymentController paymentController, CustomerController customerController,
     IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     bookingCollection = new BookingCollection(dataAccessFacade);
     this.paymentController = paymentController;
     this.customerController = customerController;
 }