Exemplo n.º 1
0
        public void Index()
        {
            ProductInput model = new ProductInput();

            model.lstProduct = TblProduct.GetAllProduct();
            //Checks for count of records
            Assert.AreNotEqual(model.lstProduct.Count, 0);
        }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     try
     {
         ProductInput model = new ProductInput();
         model.lstProduct = TblProduct.GetAllProduct();
         return(View(model.lstProduct));
     }
     catch (Exception)
     {
         throw new Exception();
     }
 }