public void TestScenarioB() { CalculateOrderValue cal = new CalculateOrderValue(); int a = 5; int b = 5; int c = 1; int check = cal.calculateScenarioB(a, b, c); Assert.AreEqual(370, check); }
public void TestScenarioC() { CalculateOrderValue cal = new CalculateOrderValue(); int a = 3; int b = 5; int c = 1; int d = 1; int check = cal.calculateScenarioCD(a, b, c, d); Assert.AreEqual(280, check); }
public void Init() { Dictionary <char, double> itemsByPrice = new Dictionary <char, double>(); itemsByPrice.Add('A', 50); itemsByPrice.Add('B', 30); itemsByPrice.Add('C', 20); itemsByPrice.Add('D', 15); sku = new SKU(itemsByPrice); promotionEngine = new PromotionEngineStrategyOne(); orderCalculator = new CalculateOrderValue(promotionEngine); }