public void TestScenario_A() { //Arrange Dictionary <char, int> orders = new Dictionary <char, int>(); orders.Add('A', 1); orders.Add('B', 1); orders.Add('C', 1); decimal expectedTotal = 100; //Act decimal actualTotal = _calculator.CalculatePromotionPrice(orders); //Assert Assert.AreEqual(expectedTotal, actualTotal); }
static void Main(string[] args) { Console.WriteLine("Set SKU unit price"); Dictionary <char, int> orders = new Dictionary <char, int>(); orders.Add('A', 1); orders.Add('B', 1); orders.Add('C', 1); Console.WriteLine("Calculate Promotion price"); PromotionCalculator _calculator = new PromotionCalculator(); decimal totalPrice = _calculator.CalculatePromotionPrice(orders); Console.WriteLine(string.Format("The total price is: {0}", totalPrice)); }