Пример #1
0
        public async Task TestGetOrderStatic_Get_Single_Order()
        {
            OrderDataContext orderDataContext = new OrderDataContext(_connectionString);

            var orders = await orderDataContext.GetSingleOrder(2);

            Assert.AreEqual(2, orders.Items.Count);
        }
Пример #2
0
 public Task <Order> GetSingleOrder(int orderId)
 {
     return(_dbContext.GetSingleOrder(orderId));
 }