public void CalculateWhenEmployee() { var calculator = new InitialCostCalculator(); var employee = new Employee { InitialCostOfBenefits = 2323 }; var actual = calculator.Calculate(employee); Assert.AreEqual(employee.InitialCostOfBenefits, actual); }
public void CalculateWhenDependent() { var calculator = new InitialCostCalculator(); var dependent = new Dependent { InitialCostOfBenefits = 2323 }; var actual = calculator.Calculate(dependent); Assert.AreEqual(dependent.InitialCostOfBenefits, actual); }