public void Define_QuantityDiscountPricingRule_A_5_for_the_Price_of_4() { QuantityDiscountPricingRule rule = new QuantityDiscountPricingRule("A", 5, 4); int discountQty = rule.GetTotalDiscountQuantity(5); decimal expectedDiscountQty = 4; Assert.AreEqual(expectedDiscountQty, discountQty); }
public void QuantityDiscountPricingRule_Quantity_LessThan_DiscountQuantity_Throws_Exception() { QuantityDiscountPricingRule rule = new QuantityDiscountPricingRule("A", 2, 3); }