public void GivenNoExperienceWhenCalculatingMinimumWageThenExceptionIsThrown() { var contractType = ContractType.Developer; var experience = 0; ISalaryPolicy policy = new DefaultSalaryPolicy(); policy.GetMinimumWage(contractType, experience); }
public void GivenDeveloperContractAndThirdExperienceThresholdWhenCalculatingMinimumWageThenThirdThresholdIsReturned() { var contractType = ContractType.Developer; var experience = 6; ISalaryPolicy policy = new DefaultSalaryPolicy(); var expected = 5500; var actual = policy.GetMinimumWage(contractType, experience); Assert.AreEqual(expected, actual); }
public void GivenTesterContractAndFirstExperienceThresholdWhenCalculatingMinimumWageThenFirstThresholdIsReturned() { var contractType = ContractType.Tester; var experience = 1; ISalaryPolicy policy = new DefaultSalaryPolicy(); var expected = 2000; var actual = policy.GetMinimumWage(contractType, experience); Assert.AreEqual(expected, actual); }