private DependencyManager()
        {
            _adminDao   = new AdminDao();
            _adminLogic = new AdminLogic(_adminDao);

            _cityDao   = new CityDao();
            _cityLogic = new CityLogic(_cityDao);

            _skillDao   = new SkillDao();
            _skillLogic = new SkillLogic(_skillDao);

            _responseDao = new ResponseDao();

            _employeeDao   = new EmployeeDao();
            _employeeLogic = new EmployeeLogic(_employeeDao, _responseDao, _cityLogic, _skillLogic);

            _vacancyDao   = new VacancyDao();
            _vacancyLogic = new VacancyLogic(_vacancyDao, _skillLogic, _responseDao);

            _employerDao   = new EmployerDao();
            _employerLogic = new EmployerLogic(_employerDao, _cityLogic, _vacancyLogic);

            _hiringLogic = new HiringLogic(_vacancyLogic, _employeeLogic);

            _commonLogic = new CommonLogic(_adminDao, _employerDao, _employeeDao);
        }
 public EmployerLogic(IEmployerDao employerDao, ICityLogic cityLogic, IVacancyLogic vacancyLogic)
 {
     _employerDao  = employerDao;
     _cityLogic    = cityLogic;
     _vacancyLogic = vacancyLogic;
 }
示例#3
0
 public CommonLogic(IAdminDao adminDao, IEmployerDao employerDao, IEmployeeDao employeeDao)
 {
     _adminDao    = adminDao;
     _employerDao = employerDao;
     _employeeDao = employeeDao;
 }
 public EmployerProcessDb()
 {
     employerDao = DaoFactory.GetEmployerDao();
 }