コード例 #1
0
        public void CalculateSingleEmployeeCostNameStartsWithA()
        {
            var calc     = new BenefitsCalculator();
            var employee = new Employee
            {
                BiWeeklyWage = 2000M,
                Dependents   = new List <Dependent>(),
                EmployeeId   = 1,
                FirstName    = "AAron",
                LastName     = "Doe"
            };
            var result = calc.CalculateEmployeeGrossPayAfterBenefitsDeduction(employee);

            Assert.AreEqual(50900, result.Result);
        }
コード例 #2
0
        public ICalculationResult GetBenefitsCalcResult()
        {
            var calc = new BenefitsCalculator();

            return(calc.CalculateEmployeeGrossPayAfterBenefitsDeduction(_employee));
        }