コード例 #1
0
ファイル: SystemActionTests.cs プロジェクト: Exclr8/CloudCore
 public void PageWithoutRightsModel_Search_NoInput_ItemsFound()
 {
     var model = new PageWithoutRightsModel();
     model.Search(Repository);
     Assert.IsTrue(model.SearchResults.Any());
 }
コード例 #2
0
ファイル: SystemActionTests.cs プロジェクト: Exclr8/CloudCore
 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
ファイル: PagesController.cs プロジェクト: Exclr8/CloudCore
 public ActionResult ShowWithoutRights()
 {
     var model = new PageWithoutRightsModel();
     model.Search();
     return View(model);
 }