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));
public ContentResult GetAllOrder() { return(order.GetAllOrder()); }
public virtual ActionResult History() => View(_orderBusiness.GetAllOrder((User as ICurrentUserPrincipal).UserId));
public virtual PartialViewResult GetOrderList(OrderStatus?orderStatus = OrderStatus.WaitForPricing) => PartialView(MVC.OrderOffice.Views.Partials._OrderListView, _orderBusiness.GetAllOrder(officeUserId: (User as ICurrentUserPrincipal).UserId, orderStatus: orderStatus));