Beispiel #1
0
        static void Main(string[] args)
        {
            var  logic = new BL.PromotionEngineLogic();
            var  items = new List <string>();
            bool flag  = true;

            while (flag)
            {
                Console.Write("Enter SKU Id : ");
                string id = Console.ReadLine();
                items.Add(id);

                Console.WriteLine("================================");

                if (Console.ReadKey().Key == ConsoleKey.Escape)
                {
                    flag = false;
                }
            }
            //Call logic
            int result = logic.DoCalculation(items);

            //Show result
            Console.WriteLine("Total : " + result);

            Console.ReadKey();
        }
Beispiel #2
0
 public void TestMethod1()
 {
     //First
     var items = new System.Collections.Generic.List <string>()
     {
         "A", "B", "C"
     };
     int r = new PromotionEngine.BL.PromotionEngineLogic().DoCalculation(items);
 }