public BookingController(PaymentController paymentController, CustomerController customerController) { dataAccessFacade = DataAccessFacade.GetInstance(); bookingCollection = new BookingCollection(dataAccessFacade); this.paymentController = paymentController; this.customerController = customerController; }
/// <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; }