void EmployeesShouldMake2000PerPaycheckBeforeDeductions() { var payrollCalculator = new PayrollCalculator(GetMockBenefitsCalculator(0)); var grossPay = payrollCalculator.GrossPayPerPeriod(GetEmployee()); Assert.Equal(2000, grossPay); }
void GrossPayShouldIncludeCostOfBenefitsDeductions() { const int numPaychecksPerYear = 26; const decimal expectedPay = 2000M - 1000M / (decimal) numPaychecksPerYear; var payrollCalculator = new PayrollCalculator(GetMockBenefitsCalculator(1000)); var grossPay = payrollCalculator.GrossPayPerPeriod(GetEmployee()); Assert.Equal(expectedPay, grossPay); }