public void PaginacionTest() { IProducManager mprod = new IProducManager(); var paginas = mprod.Pagination(); Assert.AreEqual(paginas, 4); }
public IHttpActionResult GetAll(int page) { IProducManager mprod = new IProducManager(); DALProduct dalProduct = new DALProduct(); var responseProducs = new ResponseProduct(); responseProducs.totalPaginas = mprod.Pagination(); responseProducs.products = dalProduct.GetProducts(page); return(Ok(responseProducs)); }