Пример #1
0
        public void TearDown()
        {
            try
            {
                LineItemList items = LineItemList.GetByOrderId(LineItemOrderID);
                items.Clear();
                items = items.Save();
            }
            catch (Exception) { }

            try
            {
                Order.DeleteOrder(LineItemOrderID);
            }
            catch (Exception) { }

            try
            {
                LineItemList items = LineItemList.GetByOrderId(LineItemOrderID2);
                items.Clear();
                items = items.Save();
            }
            catch (Exception) { }

            try
            {
                Order.DeleteOrder(LineItemOrderID2);
            }
            catch (Exception) { }
        }
Пример #2
0
        public void Step_03_SelectAll()
        {
            Console.WriteLine("3. Selecting all LineItems by calling GetByOrderId(\"{0}\").", LineItemOrderID);
            Stopwatch watch = Stopwatch.StartNew();

            LineItemList list = LineItemList.GetByOrderId(LineItemOrderID);

            Assert.IsTrue(list.Count == 1);

            Console.WriteLine("Time: {0} ms", watch.ElapsedMilliseconds);
        }