public void PageAccessPoolLookupModel_Search_ExistingPoolName_ItemsFound() { var model = new PageAccessPoolLookupModel { ActionId = 3, Name = "cloud", FilterOptions = "%{0}%" }; model.Search(Repository); Assert.IsTrue(model.SearchResults.Any()); }
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()); }
public ActionResult PageAccessPoolLookup(PageAccessPoolLookupModel searchModel) { searchModel.Search(); return PartialView("PageAccessPoolLookup", searchModel); }
public void PageAccessPoolLookupModel_Search_NoInput_ItemsFound() { var model = new PageAccessPoolLookupModel { ActionId = 3 }; model.Search(Repository); Assert.IsTrue(model.SearchResults.Any()); }
public ActionResult PageAccessPoolLookup(int actionId) { var model = new PageAccessPoolLookupModel(actionIdBeingSearched: actionId); return PartialView("PageAccessPoolLookup", model); }