public void CalculatesFlatRate() { var rule = new TieredDeductionRule("TestRule", new List<DeductionBracket>(), 0.25m); var amountDeducted = rule.Apply(600m); Assert.AreEqual(150m, amountDeducted); }
public void WhenGrossExceedsBrackets_EnsureBracketsAndFinalRateAreApplied() { var amountDeducted = rule.Apply(800m); Assert.AreEqual(250m, amountDeducted); }