public FacadeBase() { _airlineDAO = new AirlineDAOMSSQL(); _countryDAO = new CountryDAOMSSQL(); _customerDAO = new CustomerDAOMSSQL(); _flightDAO = new FlightDAOMSSQL(); _ticketDAO = new TicketDAOMSSQL(); }
public FacadeBase() { this._airlineDAO = new AirlineDAOMSSQL(); this._countryDAO = new CountryDAOMSQQL(); this._customerDAO = new CustomerDAOMSSQL(); this._flightDAO = new FlightDAOMSSQL(); this._ticketDAO = new TIcketDAOMSSQL(); }
public void Execute() { DAOFactory factory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IFlightDAO flightDao = factory.GetFlight(); entList = flightDao.GetByDate(departure, arrival); //throw new System.NotImplementedException(); }
public FacadeBase(IAirlineDAO airlineDAO, ICountryDAO countryDAO, ICustomerDAO customerDAO, IFlightDAO flightDAO, ITicketDAO ticketDAO, IAdministratorDAO administratorDAO) { _airlineDAO = airlineDAO; _countryDAO = countryDAO; _customerDAO = customerDAO; _flightDAO = flightDAO; _ticketDAO = ticketDAO; _administratorDAO = administratorDAO; }
protected FacadeBase(bool test) { _airlineDAO = new AirlineCompany(); _countryDAO = new Country(); _customerDAO = customerDAO; _adminDAO = adminDAO; _user = user; _flightDAO = flightDAO; _ticketDAO = ticketDAO; }
public FacadeBase() { _airlineDAO = new AirlineDAO(); _countryDAO = new CountryDAO(); _customerDAO = new CustomerDAO(); _flightDAO = new FlightDAO(); _ticketDAO = new TicketDAO(); _userRoleDAO = new UserRoleDAO(); _userRepositoryDAO = new UserRepositoryDAO(); _adminDAO = new AdminDAO(); }
public FacadeBase() { _adminDAO = new AdministratorDAOMSSQL(); _airlineDAO = new AirlineDAOMSSQL(); _customerDAO = new CustomerDAOMSSQL(); _userDAO = new UserDAOMSSQL(); _flightDAO = new FlightDAOMSSQL(); _ticketDAO = new TicketDAOMSSQL(); _countryDAO = new CountryDAOMSSQL(); _backgroundDAO = new MaintenanceDAOMSSQL(); }
public FacadeBase(bool testMode) { GlobalConfig.GetConfiguration(testMode); _airlineDAO = new AirlineDAOPGSQL(); _countryDAO = new CountryDAOPGSQL(); _customerDAO = new CustomerDAOPGSQL(); _adminDAO = new AdminDAOPGSQL(); _userDAO = new UserDAOPGSQL(); _flightDAO = new FlightDAOPGSQL(); _ticketDAO = new TicketDAOPGSQL(); }
protected FacadeBase() { _airlineDAO = new AirlineDAOPGSQL(); _countryDAO = new CountryDAOPGSQL(); _customerDAO = new CustomerDAOPGSQL(); _adminDAO = new AdminDAOPGSQL(); _userDAO = new UserDAOPGSQL(); _flightDAO = new FlightDAOPGSQL(); _ticketDAO = new TicketDAOPGSQL(); _flightsTicketsHistoryDAO = new FlightsTicketsHistoryDAOPGSQL(); }
public FacadeBase(bool testMode = false) { _ticketDAO = new TicketDAOMSSQL(testMode); _customerDAO = new CustomerDAOMSSQL(testMode); _flightDAO = new FlightDAOMSSQL(testMode); _countryDAO = new CountryDAOMSSQL(testMode); log.Debug($"creating airlineDAO from type AirlineDAOMSSQL, testMode = {testMode}"); _airlineDAO = new AirlineDAOMSSQL(testMode); log.Debug("AirlineDAOMSSQL created successfully"); }
public void Execute() { try { DAOFactory factory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IFlightDAO flightDao = factory.GetFlight(); i = flightDao.FindIdEntity(_id); } catch (Exception e) { Console.WriteLine(e.ToString()); } }
public void Execute() { try { DAOFactory factory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IFlightDAO flightDao = factory.GetFlight(); flightDao.Update(_flight); } catch (Exception e) { Console.WriteLine(e.ToString()); } }
public void Execute() { try { Console.WriteLine("id=" + _id); DAOFactory factory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IFlightDAO flightDao = factory.GetFlight(); _id = flightDao.Add(_flight); Console.WriteLine("id=" + _id); } catch (Exception e) { Console.WriteLine(e.ToString()); } }
public FacadeBase() { __airLineDAO = new AirLineDAOMSSQL(); _airLineDAO = __airLineDAO; __countryDAO = new CountryDAOMSSQL(); _countryDAO = __countryDAO; __customerDAO = new CustomerDAOMSSQL(); _customerDAO = __customerDAO; __flightDAO = new FlightDAOMSSQL(); _flightDAO = __flightDAO; __ticketDAO = new TicketDAOMSSQL(); _ticketDAO = __ticketDAO; __flightStatusDAO = new FlightStatusDAOMSSQL(); _flightStatusDAO = __flightStatusDAO; }
/// <summary> /// Parameterized Constructor /// </summary> /// <param name="flightDAO"></param> public FlightManager(IFlightDAO flightDAO) { this.flightDAO = flightDAO; }
/// <summary> /// Default Constructor /// </summary> public FlightManager() { flightDAO = (IFlightDAO)AirTravelDAOFactory.GetInstance().Create("Flight"); }
private void InitializeDAOs() { _ticketDAO = new TicketDAOEF(); _flightDAO = new FlightDAOEF(); }
public Flights() { flightDAO = AirTravelDAOFactory.GetInstance().CreateFlightDAO(); }