Ejemplo n.º 1
0
 public void PageAccessPoolLookupModel_Search_ExistingPoolName_ItemsFound()
 {
     var model = new PageAccessPoolLookupModel { ActionId = 3, Name = "cloud", FilterOptions = "%{0}%" };
     model.Search(Repository);
     Assert.IsTrue(model.SearchResults.Any());
 }
Ejemplo n.º 2
0
 public void PageAccessPoolLookupModel_Search_NonExistingPoolName_NoItemsFound()
 {
     var model = new PageAccessPoolLookupModel { ActionId = 3, Name = Guid.NewGuid().ToString(), FilterOptions = "%{0}%" };
     model.Search(Repository);
     Assert.IsFalse(model.SearchResults.Any());
 }
Ejemplo n.º 3
0
 public ActionResult PageAccessPoolLookup(PageAccessPoolLookupModel searchModel)
 {
     searchModel.Search();
     return PartialView("PageAccessPoolLookup", searchModel);
 }
Ejemplo n.º 4
0
 public void PageAccessPoolLookupModel_Search_NoInput_ItemsFound()
 {
     var model = new PageAccessPoolLookupModel { ActionId = 3 };
     model.Search(Repository);
     Assert.IsTrue(model.SearchResults.Any());
 }
Ejemplo n.º 5
0
 public ActionResult PageAccessPoolLookup(int actionId)
 {
     var model = new PageAccessPoolLookupModel(actionIdBeingSearched: actionId);
     return PartialView("PageAccessPoolLookup", model);
 }