コード例 #1
0
 public FacadeBase()
 {
     _airlineDAO  = new AirlineDAOMSSQL();
     _countryDAO  = new CountryDAOMSSQL();
     _customerDAO = new CustomerDAOMSSQL();
     _flightDAO   = new FlightDAOMSSQL();
     _ticketDAO   = new TicketDAOMSSQL();
 }
コード例 #2
0
 public FacadeBase()
 {
     this._airlineDAO  = new AirlineDAOMSSQL();
     this._countryDAO  = new CountryDAOMSQQL();
     this._customerDAO = new CustomerDAOMSSQL();
     this._flightDAO   = new FlightDAOMSSQL();
     this._ticketDAO   = new TIcketDAOMSSQL();
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 protected FacadeBase(bool test)
 {
     _airlineDAO  = new AirlineCompany();
     _countryDAO  = new Country();
     _customerDAO = customerDAO;
     _adminDAO    = adminDAO;
     _user        = user;
     _flightDAO   = flightDAO;
     _ticketDAO   = ticketDAO;
 }
コード例 #5
0
 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();
 }
コード例 #6
0
 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();
 }
コード例 #7
0
 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();
 }
コード例 #8
0
ファイル: FacadeBase.cs プロジェクト: Nohovich/flight-manager
 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();
 }
コード例 #9
0
        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");
        }
コード例 #10
0
        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;
        }
コード例 #11
0
 private void InitializeDAOs()
 {
     _ticketDAO = new TicketDAOEF();
     _flightDAO = new FlightDAOEF();
 }
コード例 #12
0
 public TicketService(ITicketDAO teamsDAO)
 {
     _ticketDAO = teamsDAO;
 }