Exemple #1
0
        public IHttpActionResult GetOrderProduct(RequestOrder requestOrder)
        {
            DALOrder mord  = new DALOrder();
            var      order = mord.GetOrderProduct(requestOrder.IdOrder, requestOrder.Page);

            return(Ok(order));
        }
Exemple #2
0
        public void OrderProduct()
        {
            long     IdProduct  = 2;
            int      PageNumber = 1;
            DALOrder mprod      = new DALOrder();
            var      order      = mprod.GetOrderProduct(IdProduct, PageNumber);

            Assert.AreEqual(order.Count, 7);
        }