Beispiel #1
0
        public BenefitCalculator(IBenefitRepository benefitRepository)
        {
            if (benefitRepository == null)
            {
                throw new Exception("BenefitRepository dependency is null");
            }

            _salary = benefitRepository.GetSalary();
            _payPeriods = benefitRepository.GetPayPeriods();

            _benefitBase = new BenefitBase(benefitRepository);
        }