Ejemplo n.º 1
0
        /// <summary>
        /// Writes out with task, all the skis, that have promotion.
        /// </summary>
        /// <param name="shopLogic">Logic for Orders repository and SkiEqupments repository.</param>
        public static void PromotionOver170Async(ShopLogic shopLogic)
        {
            var task = shopLogic?.PromotionOver170Async();

            task.Wait();
            foreach (var item in task.Result)
            {
                Console.WriteLine(item);
                Thread.Sleep(500);
            }

            Console.ReadLine();
        }