Пример #1
0
        public void TestGetAllOrderExpectTrue()
        {
            var orders      = orderService.GetAllOrder();
            var result      = JsonConvert.DeserializeObject <List <Order> >(orders.Content);
            var orderResult = result.Where(x => x.OrderId != Guid.Empty);

            Assert.True(orderResult != null);
        }
 public virtual PartialViewResult GetOrderList(OrderStatus?orderStatus = OrderStatus.WaitForPricing) => PartialView(MVC.OrderAdmin.Views.Partials._OrderListView, _orderBusiness.GetAllOrder(orderStatus: orderStatus));
Пример #3
0
 public ContentResult GetAllOrder()
 {
     return(order.GetAllOrder());
 }
Пример #4
0
 public virtual ActionResult History() => View(_orderBusiness.GetAllOrder((User as ICurrentUserPrincipal).UserId));
Пример #5
0
 public virtual PartialViewResult GetOrderList(OrderStatus?orderStatus = OrderStatus.WaitForPricing) => PartialView(MVC.OrderOffice.Views.Partials._OrderListView, _orderBusiness.GetAllOrder(officeUserId: (User as ICurrentUserPrincipal).UserId, orderStatus: orderStatus));