Example #1
0
        private void SetDiscounts(Employee employee)
        {
            employee.BenefitDiscount = _payrollService.EvaluateEmployeeDiscountEligibility(employee);

            foreach (var dependent in employee.Dependents)
            {
                dependent.BenefitDiscount = _payrollService.EvaluateDependentDiscountEligibility(dependent);
            }
        }