public void GetTax_ShouldReturnValue_WhenAboveLimit(double value, double expectedTax) { // Arrange var config = new ConfigEntity() { MinTaxAmount = 100, SocialPercentage = 0.1, MaxSocialAmount = 2000 }; var sut = new SocialRule(config); // Act var tax = sut.GetTax(value); // Assert Assert.AreEqual(expectedTax, tax); }
public void GetTax_ShouldReturn0_WhenUnderLimit(double value) { // Arrange var config = new ConfigEntity() { MinTaxAmount = 100 }; var sut = new SocialRule(config); // Act var tax = sut.GetTax(value); // Assert Assert.AreEqual(0, tax); }