public void DeleteGetView()
 {
     var controller = new ItemCategoriesController(new CategoryBLL(new CategoryServiceStub()));
     var actionResult = (ViewResult)controller.Delete(1);
     Assert.AreEqual(actionResult.ViewName, "");
     Assert.IsNotNull(actionResult.Model);
 }
 public void DeleteGetViewBadId()
 {
     var controller = new ItemCategoriesController(new CategoryBLL(new CategoryServiceStub()));
     var actionResult = (HttpStatusCodeResult)controller.Delete(99);
     Assert.AreEqual(actionResult.StatusCode, 404);
 }