public EmployeeController(IBranchBusinessService branchService, IEmployeeBusinessService employeeService)
        {
            _serviceBuilder = new ServiceBuilder();
            _serviceBuilder.BuildBranchService(branchService);
            _serviceBuilder.BuildEmployeeService(employeeService);

            _serviceParameter = _serviceBuilder.Parameter;
        }
        public EmployeeService(IEmployeeBusinessService employeeBusinessService)
        {
            if (employeeBusinessService == null)
            {
                throw new ArgumentNullException("employeeBusinessService");
            }

            _employeeBusinessService = employeeBusinessService;
        }
Example #3
0
        public AuthController(
            IOptions <JwtIssuerOptions> jwtOptions,
            JwtCurrentUserFactory jwtCurrentUserFactory,
            JwtFactory jwtFactory,
            IEmployeeRepository employeeRepository,
            IEmployeeBusinessService employeeBusinessService,
            IResidentRepository residentRepository,
            IResidentBusinessService residentBusinessService)
        {
            _jwtOptions = jwtOptions.Value;
            _jwtFactory = jwtFactory;

            _employeeRepository      = employeeRepository;
            _employeeBusinessService = employeeBusinessService;

            _residentRepository      = residentRepository;
            _residentBusinessService = residentBusinessService;
        }
Example #4
0
 public HomeController(IEmployeeBusinessService employeeBusinessService)
 {
     _employeeBusinessService = employeeBusinessService;
 }
Example #5
0
 public void BuildEmployeeService(IEmployeeBusinessService employeeService)
 {
     _parameter.EmployeeService = employeeService;
 }