Пример #1
0
 public void ProductItemsGetProductItemsByCatagoryTest()
 {
     ProductItemsController pitem = new ProductItemsController(new ProductItemsRepository());
     var result = pitem.GetProductItemsByCatagory(1);
     Assert.IsInstanceOfType(result, typeof(System.Web.Mvc.JsonResult));
 }
Пример #2
0
 public void ProductItemsDetailsTest()
 {
     ProductItemsController pitem = new ProductItemsController(new ProductItemsRepository());
     var result = pitem.Details(1);
     Assert.IsInstanceOfType(result, typeof(System.Web.Mvc.ActionResult));
 }