public void Initialize() { //Arrange var databaseFactory = new DatabaseFactory(); _unitOfWork = new UnitOfWork(databaseFactory); _settingRepository = new SettingRepository(databaseFactory); _employeeInfoRepository = new EmployeeInfoRepository(databaseFactory); _employeeDeductionRepository = new EmployeeDeductionRepository(databaseFactory); _deductionRepository = new DeductionRepository(databaseFactory); _employeePayrollRepository = new EmployeePayrollRepository(databaseFactory); _employeePayrollDeductionRepository = new EmployeePayrollDeductionRepository(databaseFactory); _taxRepository = new TaxRepository(databaseFactory); _totalEmployeeHoursRepository = new TotalEmployeeHoursRepository(databaseFactory); _settingService = new SettingService(_settingRepository); _employeeSalaryService = new EmployeeSalaryService(); _employeeInfoService = new EmployeeInfoService(_employeeInfoRepository); _employeeDeductionService = new EmployeeDeductionService(_employeeDeductionRepository); _deductionService = new DeductionService(_deductionRepository); _totalEmployeeHoursService = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, null, _settingService); _taxService = new TaxService(_taxRepository); _employeePayrollDeductionService = new EmployeePayrollDeductionService(_unitOfWork, _settingService, _employeeSalaryService, _employeeInfoService, _employeeDeductionService, _deductionService, _employeePayrollDeductionRepository, _taxService); }
public void Initialize() { //Arrange var databaseFactory = new DatabaseFactory(); _unitOfWork = new UnitOfWork(databaseFactory); _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(databaseFactory); _employeeDailyPayrollRepository = new EmployeeDailyPayrollRepository(databaseFactory); _totalEmployeeHoursRepository = new TotalEmployeeHoursRepository(databaseFactory); _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(databaseFactory); _holidayRepository = new HolidayRepository(databaseFactory); _employeeInfoRepository = new EmployeeInfoRepository(databaseFactory); _employeeHoursRepository = new EmployeeHoursRepository(databaseFactory); _settingRepository = new SettingRepository(databaseFactory); _totalEmployeeHoursService = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, null, _settingService); _employeeWorkScheduleService = new EmployeeWorkScheduleService(_employeeWorkScheduleRepository); _holidayService = new HolidayService(_holidayRepository, _settingRepository, _unitOfWork); _settingService = new SettingService(_settingRepository); _employeeInfoService = new EmployeeInfoService(_employeeInfoRepository); _employeeSalaryService = new EmployeeSalaryService(); _employeeDailyPayrollService = new EmployeeDailyPayrollService(_unitOfWork, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService, _settingService, _employeeDailyPayrollRepository, _employeeInfoService, _employeeSalaryService); }
public PaymentFileExportJob( IEmployeeSalaryService employeeSalaryService, IConfigurationProvider configurationProvider, IDirectoryHandler directoryHandler) { _employeeSalaryService = employeeSalaryService; _directoryHandler = directoryHandler; _configurationProvider = configurationProvider; }
public EmployeeDailyPayrollService(IUnitOfWork unitOfWork, ITotalEmployeeHoursService totalEmployeeHoursService, IEmployeeWorkScheduleService employeeWorkScheduleService, IHolidayService holidayService, ISettingService settingService, IEmployeeDailyPayrollRepository employeeDailyPayrollRepository, IEmployeeInfoService employeeInfoService, IEmployeeSalaryService employeeSalaryService) { _unitOfWork = unitOfWork; _totalEmployeeHoursService = totalEmployeeHoursService; _employeeWorkScheduleService = employeeWorkScheduleService; _holidayService = holidayService; _settingService = settingService; _employeeInfoService = employeeInfoService; _employeeDailyPayrollRepository = employeeDailyPayrollRepository; _employeeSalaryService = employeeSalaryService; }
public EmployeePayrollDeductionService(IUnitOfWork unitOfWork, ISettingService settingService, IEmployeeSalaryService employeeSalaryService, IEmployeeInfoService employeeInfoService, IEmployeeDeductionService employeeDeductionService, IDeductionService deductionService, IEmployeePayrollDeductionRepository employeePayrollDeductionRepository, ITaxService taxService) { _unitOfWork = unitOfWork; _settingService = settingService; _employeeSalaryService = employeeSalaryService; _employeeInfoService = employeeInfoService; _employeeDeductionService = employeeDeductionService; _deductionService = deductionService; _employeePayrollDeductionRepository = employeePayrollDeductionRepository; _taxService = taxService; }
public EmployeePayrollItemPerCompanyService(IUnitOfWork unitOfWork, IEmployeePayrollItemPerCompanyRepository employeePayrollItemPerCompanyRepository, ITotalEmployeeHoursPerCompanyService totalEmployeeHoursPerCompanyService, IEmployeeWorkScheduleService employeeWorkScheduleService, IHolidayService holidayService, ISettingService settingService, IEmployeeInfoService employeeInfoService, IEmployeeSalaryService employeeSalaryService, IEmployeePayrollPerCompanyRepository employeePayrollRepository, IEmployeeLeaveRepository employeeLeaveRepository) : base(employeePayrollItemPerCompanyRepository) { _employeePayrollItemPerCompanyRepository = employeePayrollItemPerCompanyRepository; _unitOfWork = unitOfWork; _totalEmployeeHoursPerCompanyService = totalEmployeeHoursPerCompanyService; _employeeWorkScheduleService = employeeWorkScheduleService; _holidayService = holidayService; _settingService = settingService; _employeeInfoService = employeeInfoService; _employeeSalaryService = employeeSalaryService; _employeePayrollRepository = employeePayrollRepository; _employeeLeaveRepository = employeeLeaveRepository; }
public EmployeePayrollSchedule() { _employeeDepartmentRepository = new EmployeeDepartmentRepository(_databaseFactory); _employeeRepository = new EmployeeRepository(_databaseFactory, _employeeDepartmentRepository); _attendanceRepository = new AttendanceRepository(_databaseFactory); _attendanceLogRepository = new AttendanceLogRepository(_databaseFactory, _employeeRepository); _settingRepository = new SettingRepository(_databaseFactory); _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(_databaseFactory); _employeeInfoRepository = new EmployeeInfoRepository(_databaseFactory); _frequencyRepository = new FrequencyRepository(_databaseFactory); _paymentFrequencyRepository = new PaymentFrequencyRepository(_databaseFactory); _employeePayrollRepository = new EmployeePayrollRepository(_databaseFactory); _employeePayrollDeductionRepository = new EmployeePayrollDeductionRepository(_databaseFactory); _employeeDailyPayrollRepository = new EmployeeDailyPayrollRepository(_databaseFactory); _employeeHoursRepository = new EmployeeHoursRepository(_databaseFactory); _totalEmployeeHoursRepository = new TotalEmployeeHoursRepository(_databaseFactory); _holidayRepository = new HolidayRepository(_databaseFactory); _employeeDeductionRepository = new EmployeeDeductionRepository(_databaseFactory); _deductionRepository = new DeductionRepository(_databaseFactory); _employeePayrollItemRepository = new EmployeePayrollItemRepository(_databaseFactory); _employeeAdjustmentRepository = new EmployeeAdjustmentRepository(_databaseFactory); _adjustmentRepository = new AdjustmentRepository(_databaseFactory); _employeeService = new EmployeeService(_employeeRepository); _employeeInfoService = new EmployeeInfoService(_employeeInfoRepository); _attendanceLogService = new AttendanceLogService(_attendanceLogRepository); _attendanceService = new AttendanceService(_unitOfWork, _attendanceRepository, _attendanceLogService, _employeeHoursRepository); _settingService = new SettingService(_settingRepository); _employeeWorkScheduleService = new EmployeeWorkScheduleService(_employeeWorkScheduleRepository); _employeeSalaryService = new EmployeeSalaryService(); _employeeHoursService = new EmployeeHoursService(_unitOfWork, _employeeHoursRepository, _attendanceService, _settingService, _employeeWorkScheduleService, _employeeInfoService); _totalEmployeeHoursService = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, _employeeHoursService, _settingService); _holidayService = new HolidayService(_holidayRepository, _settingRepository, _unitOfWork); _employeeDailyPayrollService = new EmployeeDailyPayrollService(_unitOfWork, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService, _settingService, _employeeDailyPayrollRepository, _employeeInfoService, _employeeSalaryService); _deductionService = new DeductionService(_deductionRepository); _taxService = new TaxService(_taxRepository); _employeePayrollDeductionService = new EmployeePayrollDeductionService(_unitOfWork, _settingService, _employeeSalaryService, _employeeInfoService, _employeeDeductionService, _deductionService, _employeePayrollDeductionRepository, _taxService); _employeePayrollItemService = new EmployeePayrollItemService(_unitOfWork, _employeePayrollItemRepository, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService, _settingService, _employeeInfoService, _employeeSalaryService, _employeePayrollRepository, _employeePayrollDeductionRepository, _employeeAdjustmentRepository, _adjustmentRepository); _employeeAdjusmentService = new EmployeeAdjustmentService(_employeeAdjustmentRepository, _employeeRepository); _employeePayrollService = new EmployeePayrollService(_unitOfWork, _employeePayrollRepository, _settingService, null, _employeeInfoService, null, _employeeService, _totalEmployeeHoursService, _employeePayrollItemService, _employeeAdjusmentService); }
public EmployeePayrollItemService(IUnitOfWork unitOfWork, IEmployeePayrollItemRepository employeePayrollItemRepository, ITotalEmployeeHoursService totalEmployeeHoursService, IEmployeeWorkScheduleService employeeWorkScheduleService, IHolidayService holidayService, ISettingService settingService, IEmployeeInfoService employeeInfoService, IEmployeeSalaryService employeeSalaryService, IEmployeePayrollRepository employeePayrollRepository, IEmployeePayrollDeductionRepository employeePayrollDeductionRepository, IEmployeeAdjustmentRepository employeeAdjustmentRepository, IAdjustmentRepository adjustmentRepository, IEmployeeLeaveRepository employeeLeaveRepository) : base(employeePayrollItemRepository) { _employeePayrollItemRepository = employeePayrollItemRepository; _unitOfWork = unitOfWork; _totalEmployeeHoursService = totalEmployeeHoursService; _employeeWorkScheduleService = employeeWorkScheduleService; _holidayService = holidayService; _settingService = settingService; _employeeInfoService = employeeInfoService; _employeeSalaryService = employeeSalaryService; _employeePayrollRepository = employeePayrollRepository; _employeePayrollDeductionRepository = employeePayrollDeductionRepository; _employeeAdjustmentRepository = employeeAdjustmentRepository; _adjustmentRepository = adjustmentRepository; _employeeLeaveRepository = employeeLeaveRepository; }
public EmployeeController(IEmployeeSalaryService employeeSalaryService, IEmployeeDataService employeeDataService) { _employeeSalaryService = employeeSalaryService; _employeeDataService = employeeDataService; }
public EmployeeSalaryController(IEmployeeSalaryService employeeSalaryService, IDistrictService districtService, IRoleSubModuleItemService roleSubModuleItemService) { this.employeeSalaryService = employeeSalaryService; this.districtService = districtService; this.roleSubModuleItemService = roleSubModuleItemService; }
public void Setup() { var salaryServiceMock = new Mock <IEmployeeSalaryService>(); salaryServiceMock.Setup(x => x.SetSalaryAsync(It.IsAny <Employee>())) .Callback <Employee>(x => x.Salary = 10000) .Returns(Task.CompletedTask); salaryService = salaryServiceMock.Object; var repositoryMock = new Mock <IEmployeeRepository>(); repositoryMock.Setup(x => x.GetAll()) .Returns(new List <Employee> { new Employee { Name = "Василий Васильевич Кузнецов", Inn = "1650121210" }, new Employee { Name = "Демьян Сергеевич Коротченко", Inn = "1650121211" }, new Employee { Name = "Михаил Андреевич Суслов", Inn = "1650121212" }, new Employee { Department = "HR", Name = "Фрол Романович Козлов", Inn = "1650121213" }, new Employee { Department = "HR", Name = "Дмитрий Степанович Полянски", Inn = "1650121214" }, new Employee { Department = "HR", Name = "Андрей Павлович Кириленко", Inn = "1650121215" }, new Employee { Department = "PR", Name = "Арвид Янович Пельше", Inn = "1650121216" }, new Employee { Department = "PR", Name = "Алексей Иванович Рыков", Inn = "1650121217" }, }); repository = repositoryMock.Object; employeeReportDataProvider = new EmployeeReportDataProvider(repository, salaryService); Departments = new List <Department> { new Department { Name = "DEP1", EmployeeList = new List <Employee> { new Employee { Salary = 1 }, new Employee { Salary = 2 }, new Employee { Salary = 3 } } }, new Department { Name = "DEP2", EmployeeList = new List <Employee> { new Employee { Salary = 4 }, new Employee { Salary = 5 }, } } }; }
public EmployeeSalaryController(IEmployeeSalaryService _service) { service = _service; }
public EmployeeSalaryController(ApplicationDbContext context, IEmployeeSalaryService EmployeeSalaryService) { _context = context; _EmployeeSalaryService = EmployeeSalaryService; }
public EmployeeReportDataProvider(IEmployeeRepository employeeRepository, IEmployeeSalaryService employeeSalaryService) { _employeeRepository = employeeRepository; _employeeSalaryService = employeeSalaryService; }