public void SystemValueCategorySearchModel_Search_NonExistentCategoryName_NoItemsFound()
 {
     var model = new SystemValueCategorySearchModel { CategoryName = Guid.NewGuid().ToString(), FilterOptions = "{0}" };
     model.Search(Repository);
     Assert.IsFalse(model.SearchResults.Any());
 }
 public void SystemValueCategorySearchModel_Search_CategoryNameMatches_license_OneItemFound()
 {
     var model = new SystemValueCategorySearchModel { CategoryName = "licence", FilterOptions = "{0}"};
     model.Search(Repository);
     Assert.IsTrue(model.SearchResults.Count() == 1);
 }
 public ActionResult Search(SystemValueCategorySearchModel model)
 {
     model.Search();
     return View(model);
 }
 public void SystemValueCategorySearchModel_Search_NoInput_ItemsFound()
 {
     var model = new SystemValueCategorySearchModel();
     model.Search(Repository);
     Assert.IsTrue(model.SearchResults.Any());
 }
 public ActionResult Search()
 {
     var model = new SystemValueCategorySearchModel();
     return View(model);
 }