public void Execute()
        {
            OrderManager manager = new OrderManager();

            Console.Clear();

            string date = GetDate();
            var response = manager.GetOrders(date);

            Console.Clear();

            if (response.Success)
            {
                PrintOrders(response.Data, date);
            }

            else
            {
                Console.Clear();
                Console.WriteLine(response.Message);
            }

            Console.Write("Press any key to continue...");
            Console.ReadKey();
        }
Пример #2
0
        public void GetOrdersTestSuccess()
        {
            var manager  = new OrderManager();

            var response = manager.GetOrders("06012013");
            bool Success = response.Success;

            Assert.AreEqual(true, Success);
        }