public void TestInitialize() { var employeeRepositoryMock = new Mock <IEmployeeRepository>(); var employeeSebastian = new Employee(); employeeSebastian.Id = 2; employeeSebastian.Name = "Sebastian"; employeeSebastian.ContractTypeName = "MonthlySalaryEmployee"; employeeSebastian.RoleId = 2; employeeSebastian.RoleName = "Contractor"; employeeSebastian.RoleDescription = null; employeeSebastian.HourlySalary = 60000; employeeSebastian.MonthlySalary = 80000; var employeeJuan = new Employee(); employeeJuan.Id = 1; employeeJuan.Name = "Juan"; employeeJuan.ContractTypeName = "HourlySalaryEmployee"; employeeJuan.RoleId = 1; employeeJuan.RoleName = "Administrator"; employeeJuan.RoleDescription = null; employeeJuan.HourlySalary = 60000; employeeJuan.MonthlySalary = 80000; employeeRepositoryMock.Setup(x => x.GetEmployeeById(2)).Returns(Task.FromResult(employeeSebastian)); employeeRepositoryMock.Setup(x => x.GetEmployeeById(1)).Returns(Task.FromResult(employeeJuan)); _employeeBusinessLogic = new EmployeeBusinesslogic(employeeRepositoryMock.Object); }
public EmployeeController(IContractsBusinessLogic contractsBusinessLogic, IMapper mapper, IEmployeeBusinessLogic employeeBusinessLogic, IDepartamentBusinessLogic departamentBusinessLogic) { _contractsBusinessLogic = contractsBusinessLogic; _mapper = mapper; _employeeBusinessLogic = employeeBusinessLogic; _departamentBusinessLogic = departamentBusinessLogic; }
public SearchController(IDepartamentRepository depRepository, IDepartamentBusinessLogic depBusinessLogic, ICompanyBusinessLogic companyBusinessLogic, IEmployeeBusinessLogic employeeBusinessLogic, UserManager <IdentityUser> userManager) { _depBusinessLogic = depBusinessLogic; _companyBusinessLogic = companyBusinessLogic; _employeeBusinessLogic = employeeBusinessLogic; _userManager = userManager; }
public ContractsController(IContractsRepository repository, IDepartamentBusinessLogic departamentBusinessLogic, IContractsBusinessLogic contractsBusinessLogic, IEmployeeBusinessLogic employeeBusinessLogic, ICompanyBusinessLogic companyBusinessLogic, IMapper mapper) { _departamentBusinessLogic = departamentBusinessLogic; _contractsBusinessLogic = contractsBusinessLogic; _employeeBusinessLogic = employeeBusinessLogic; _companyBusinessLogic = companyBusinessLogic; _mapper = mapper; }
public SearchController(IEmployeeBusinessLogic employeeBusinessLogic, UserManager <IdentityUser> userManager, IProductBusinessLogic productBusinessLogic, IProductTypeBusinessLogic productTypeBusinessLogic, IProductMetalBusinessLogic productMetalBusinessLogic, IProductColorBusinessLogic productColorBusinessLogic, IGenderBusinessLogic genderBusinessLogic) { _employeeBusinessLogic = employeeBusinessLogic; _userManager = userManager; _productBusinessLogic = productBusinessLogic; _productTypeBusinessLogic = productTypeBusinessLogic; _productMetalBusinessLogic = productMetalBusinessLogic; _productColorBusinessLogic = productColorBusinessLogic; _genderBusinessLogic = genderBusinessLogic; }
public EmployeesController(IUnitOfWork unitOfWork, IMapper mapper, IEmployeeBusinessLogic employeeBusinessLogic) { _unitOfWork = unitOfWork; _mapper = mapper; _employeeBusinessLogic = employeeBusinessLogic; }
public EmployeesController(ILogger <EmployeesController> logger, IEmployeeBusinessLogic businessLogic) { _logger = logger; _businessLogic = businessLogic; }
public EmployeeController(IEmployeeBusinessLogic employeeBusinessLogic, IMapper mapper) { _employeeBusinessLogic = employeeBusinessLogic; _mapper = mapper; }
public ResponsibleResolverReverse(IEmployeeBusinessLogic employeeBusinessLogic) { _employeeBusinessLogic = employeeBusinessLogic; }
public EmployeeController() { EmployeeBusinessLogic = new EmployeeBusinessLogic(); }
public EmployeeController(IEmployeeBusinessLogic employeeBusinessLogic) { _employeeBusinessLogic = employeeBusinessLogic; }
public EmployeeController(IMapper mapper, IEmployeeBusinessLogic employeeBusinessLogic) { _mapper = mapper; _employeeBusinessLogic = employeeBusinessLogic; }