Beispiel #1
0
        public void EmployeeSalaryService_GetEmployeeSalary_ObjectCount_Test()
        {
            EmployeeSalaryService employeeSalaryService = new EmployeeSalaryService();
            var empSalary = employeeSalaryService.GetEmployeeSalary();

            Assert.IsTrue(empSalary.Count() == 2);
        }
Beispiel #2
0
        public void EmployeeSalaryService_GetEmployeeSalary_ObjectNotNull_Test()
        {
            EmployeeSalaryService employeeSalaryService = new EmployeeSalaryService();
            var empSalary = employeeSalaryService.GetEmployeeSalary();

            Assert.IsNotNull(empSalary);
        }
Beispiel #3
0
        public void SalaryCalculationService_GetSalaryCalculationTest()
        {
            EmployeeSalaryService test  = new EmployeeSalaryService();
            IncomeTaxService      test2 = new IncomeTaxService();
            var emp = test.GetEmployeeSalary();

            foreach (var item in emp)
            {
                var taxincome = test2.CalculateTax(item.AnualSalary, 2017);
                var payslip   = test.GetPaySlip(item, taxincome, new SalarySlipPeriod(1, 3));
            }

            System.Diagnostics.Debug.WriteLine("Test");
        }
Beispiel #4
0
        public void EmployeeSalaryService_GetPaySlipTest()
        {
            EmployeeSalaryService employeeSalaryService = new EmployeeSalaryService();
            var     empSalary = employeeSalaryService.GetEmployeeSalary();
            PaySlip paySlip   = null;

            foreach (var item in empSalary)
            {
                paySlip = employeeSalaryService.GetPaySlip(item, new Model.IncomeTax()
                {
                    Tax = (922 * 12), Year = 2017
                }, new Model.SalarySlipPeriod(1, 3));
                break;
            }
            Assert.IsNotNull(paySlip);
        }
Beispiel #5
0
 private void GetEmployeeDetails()
 {
     EmployeesSalary = employeeSalaryService.GetEmployeeSalary();
 }