示例#1
0
 public void PageWithoutRightsModel_Search_NoInput_ItemsFound()
 {
     var model = new PageWithoutRightsModel();
     model.Search(Repository);
     Assert.IsTrue(model.SearchResults.Any());
 }
示例#2
0
 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));
 }
示例#3
0
 public ActionResult ShowWithoutRights()
 {
     var model = new PageWithoutRightsModel();
     model.Search();
     return View(model);
 }