public void Setup() { selectClient = new SelectClient(); selectServices = new SelectServices(); selectReservation = new SelectReservation(); addClient = new DBInsertClient(selectClient); addServices = new DBInsertServices(selectServices); addReservation = new DBInsertReservation(selectReservation); }
//---------------------------------------------- public FasadeInsertDB(IInsertToDB <Client> insertClient, IInsertToDB <Services> insertServices, IInsertToDB <Reservation> insertReservation, IInsertToDB <Employee> insertEmployee, ISelectTableObject <Client> selectClient, ISelectTableObject <Services> selectServices, ISelectTableObject <Reservation> selectReservation, ISelectTableObject <Employee> selectEmployee) { this.insertClient = insertClient; this.insertServices = insertServices; this.insertReservation = insertReservation; this.insertEmployee = insertEmployee; this.selectClient = selectClient; this.selectServices = selectServices; this.selectReservation = selectReservation; this.selectEmployee = selectEmployee; }
public ServicesAndClientFunctions(IInsertToDB <Client> addClient, IInsertToDB <Services> addServices, IInsertToDB <Reservation> addReservation) { this.addClient = addClient; this.addServices = addServices; this.addReservation = addReservation; }