public void TestMethod6()
        {
            IRepository _operationRepository = new Repository();

            InfoEmployee obj = new InfoEmployee(_operationRepository);
            EmployeeDTO  emp = obj.GetEmployees(2).ToList().FirstOrDefault();

            AnnualSalaryCalculator AnnualSalaryCalculator = new AnnualSalaryCalculator();
            var result = AnnualSalaryCalculator.CalculateAnnualSalary(emp.ContractTypeName, emp.HourlySalary, emp.MonthlySalary);

            Assert.AreEqual(960000, result);
        }
Ejemplo n.º 2
0
        public List <EmployeeDTO> GetEmployeesById(string id)
        {
            InfoEmployee obj = new InfoEmployee(this._operationRepository);

            return(obj.GetEmployees(int.Parse(id)));
        }
Ejemplo n.º 3
0
        public List <EmployeeDTO> GetEmployees([FromBody] EmployeeDTO emp)
        {
            InfoEmployee obj = new InfoEmployee(this._operationRepository);

            return(obj.GetEmployees(emp.Id));
        }