public void SocialTaxShouldReturnCorrectIfEqualToSocialLimit() { var taxCalculatorService = new TaxesCalculatorService(); var salaryToTest = 3000m; var socialTax = 300m; var result = taxCalculatorService.SocialTax(salaryToTest); result .Should() .Be(socialTax); }
public void SocialTaxShouldReturnCorrectIfBelowSocialLimit() { var taxCalculatorService = new TaxesCalculatorService(); var salaryToTest = 1100m; var socialTax = (salaryToTest - SalaryConstants.NO_TAX_LIMIT) * SalaryConstants.Social_TAX; var result = taxCalculatorService.SocialTax(salaryToTest); result .Should() .Be(socialTax); }