public void DeleteNotValidId()
 {
     var SessionMock = new TestControllerBuilder();
     var controller = new ItemCategoriesController(new CategoryBLL(new CategoryServiceStub()));
     SessionMock.InitializeController(controller);
     var actionResult = (RedirectToRouteResult)controller.DeleteConfirmed(99);
     Assert.AreEqual(actionResult.RouteName, "");
 }
 public void DeletePassingId()
 {
     var controller = new ItemCategoriesController(new CategoryBLL(new CategoryServiceStub()));
     var actionResult = (RedirectToRouteResult)controller.DeleteConfirmed(1);
     Assert.AreEqual(actionResult.RouteValues.Values.First(), "Index");
 }