Exemplo n.º 1
0
        public void TestGetAllProducts()
        {
            //Arrange
            DataProduct dataProduct = new DataProduct();

            //Act
            List <ServiceProduct> products = (List <ServiceProduct>)dataProduct.GetAllProducts();

            //Assert
            Assert.IsTrue(products.Count >= 1, "Number of products in list: " + products.Count);
        }
Exemplo n.º 2
0
        public IEnumerable <ServiceProduct> GetAllProducts()
        {
            IEnumerable <ServiceProduct> products = dataProduct.GetAllProducts();

            return(products);
        }
        public List <Product> GetAllProducts()
        {
            DataProduct dp = new DataProduct();

            return(dp.GetAllProducts());
        }
Exemplo n.º 4
0
        public ActionResult AlleProducten()
        {
            List <Product> alleproducten = DataProduct.GetAllProducts();

            return(View(alleproducten));
        }