public void PageWithoutRightsModel_Search_NoInput_ItemsFound() { var model = new PageWithoutRightsModel(); model.Search(Repository); Assert.IsTrue(model.SearchResults.Any()); }
public void PageWithoutRightsModel_Search_SystemActionGuidsNotEmpty() { var model = new PageWithoutRightsModel(); model.Search(Repository); Assert.IsFalse(model.SearchResults.Any(a => a.ActionGuid == Guid.Empty && a.ActionId != 0)); }
public ActionResult ShowWithoutRights() { var model = new PageWithoutRightsModel(); model.Search(); return View(model); }