Esempio n. 1
0
        public EmployeeRelationManager(Employee employee, IEmployeeRelationDao employeeRelationDao, IEmployeeDao employeeDao, IEmployeeContractService contractservice)
        {
            if (employeeRelationDao == null)
            {
                throw new ArgumentNullException("employeeRelationDao");
            }
            _employeeRelationsDao = employeeRelationDao;
            if (employeeDao == null)
            {
                throw new ArgumentNullException("employeeDao");
            }
            _employeeDao = employeeDao;
            if (employee == null)
            {
                throw new ArgumentNullException("employee");
            }

            _contractservice = contractservice;
            if (_contractservice == null)
            {
                throw new ArgumentNullException("EmployeeContractService");
            }

            _employee = employee;
            //
            LoadRelations();
        }
        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);
        }
Esempio n. 3
0
        public async Task <IEmployeeDao> Get(int matricule)
        {
            var command = new GetEmployeeByMatriculeCommand {
                Matricule = matricule
            };
            IEmployeeDao employee = await _employeeHandler.HandleAsync(command).ConfigureAwait(false);

            return(employee);
        }
Esempio n. 4
0
 public EmployeeLogic(IEmployeeDao employeeDao,
                      IResponseDao responseDao,
                      ICityLogic cityLogic,
                      ISkillLogic skillLogic)
 {
     _employeeDao = employeeDao;
     _responseDao = responseDao;
     _cityLogic   = cityLogic;
     _skillLogic  = skillLogic;
 }
Esempio n. 5
0
        /// <summary>
        /// Gets an employee by the matricule
        /// </summary>
        /// <param name="matricule">The employee's matricule</param>
        /// <returns></returns>
        public async Task <IEmployeeDao> GetEmployeeByMatriculeAsync(EmployeeDto matricule)
        {
            IEmployeeDao employee = null;

            using (var connection = _connectionProvider())
            {
                employee = await connection.QueryFirstOrDefaultAsync <EmployeeDao>(
                    EmployeesQueries.GetEmployeeByMatricule,
                    new { matricule.Matricule },
                    commandType : CommandType.StoredProcedure
                    ).ConfigureAwait(false);
            }

            return(employee);
        }
Esempio n. 6
0
 private EmployeeService()
 {
     _daoManager  = ServiceConfig.GetInstance().DaoManager;
     _employeeDao = _daoManager.GetDao(typeof(IEmployeeDao)) as IEmployeeDao;
 }
Esempio n. 7
0
 private EmployeeService()
 {
     _employeeDao = new EmployeeSqlMapDao();
 }
Esempio n. 8
0
 public CommonLogic(IAdminDao adminDao, IEmployerDao employerDao, IEmployeeDao employeeDao)
 {
     _adminDao    = adminDao;
     _employerDao = employerDao;
     _employeeDao = employeeDao;
 }
Esempio n. 9
0
 public EmployeeBaseMgr(IEmployeeDao entityDao)
 {
     this.entityDao = entityDao;
 }
Esempio n. 10
0
 public EmployeeMgr(IEmployeeDao entityDao, ICriteriaMgr criteriaMgr)
     : base(entityDao)
 {
     this.criteriaMgr = criteriaMgr;
 }
 public AccountController(SqlEmployee empRepository)
 {
     this._empRepository = empRepository;
 }
 public EmployeeCalculateSalaryService(IEmployeeDao employeeDao)
 {
     _employeeDao = employeeDao;
 }
Esempio n. 13
0
 public EmployeeManager(IEmployeeDao employeeDao)
 {
     _employeeDao = employeeDao;
 }
Esempio n. 14
0
 public EmployeeLogic()
 {
     this.employeeDao = new EmployeeDao();
 }
Esempio n. 15
0
 public EmployeeController(IEmployeeDao employeeDao)
 {
     this.employeeDao = employeeDao;
 }
Esempio n. 16
0
 public ShopDataBaseService(ISession nhSession)
 {
     this.employeeDao = new EmployeeDao(nhSession);
     this.employeeService = new EmployeeService(nhSession, employeeDao);
 }
Esempio n. 17
0
 public EmployeeService()
 {
     //this.employeeDao = ServiceFactory.CreateEmployeeDao();
     this.employeeDao = new EmployeeDao();
 }
Esempio n. 18
0
 public EmployeeBaseMgr(IEmployeeDao entityDao)
 {
     this.entityDao = entityDao;
 }
Esempio n. 19
0
 public EmployeeFakeService()
 {
     this.employeeDao = DaoFactory.CreateEmployeeDao();
     //this.employeeDao = new EmployeeDao();
 }
Esempio n. 20
0
 private EmployeeService()
 {
     _daoManager = ServiceConfig.GetInstance().DaoManager;
     _employeeDao = _daoManager.GetDao(typeof(IEmployeeDao)) as IEmployeeDao;
 }
Esempio n. 21
0
 public EmployeeLookupService(IEmployeeDao employeeDao)
 {
     _employeeDao = employeeDao;
 }
Esempio n. 22
0
 public EmployeeBLL()
 {
     _dao = new EmployeeDao();
 }
Esempio n. 23
0
 public EmployeeService(IEmployeeDao employeeDao)
 {
     _employeeDao = employeeDao;
 }
Esempio n. 24
0
 public EmployeeMgr(IEmployeeDao entityDao, ICriteriaMgr criteriaMgr)
     : base(entityDao)
 {
     this.criteriaMgr = criteriaMgr;
 }