Exemplo n.º 1
0
        public void BonusAllocationPercentageCalculation_CalculateBonusAllocationPercentage_ReturnBonusAllocationPercentage()
        {
            var allocation = new Allocation();
            var employee   = new HrEmployee();
            var payroll    = new Payroll();

            employee.Salary            = 20000;
            payroll.TotalCostToCompany = 1000000;

            var result = (decimal)allocation.BonusAllocationPercentageCalculation(employee, payroll);

            Assert.AreEqual(result, (decimal)0.02);
        }