Пример #1
0
        public void ActivitySearchModel_Search_ExistingDataFiltered_ItemsFound()
        {
            var model = new ActivitySearchModel
            {
                ModuleName = "cloudcore", 
                ModuleNameFilter = "%{0}%", 
                ProcessName = "test", 
                ProcessNameFilter = "%{0}%",
                SubProcessName = "test",
                SubProcessNameFilter = "%{0}%"
            };

            model.Search(Repository);
            Assert.IsTrue(model.SearchResults.Any());
        }
Пример #2
0
 public void ActivitySearchModel_Search_NoInput_ActivitiesFound()
 {
     var model = new ActivitySearchModel();
     model.Search(Repository);
     Assert.IsTrue(model.SearchResults.Any());
 }
Пример #3
0
 public void ActivitySearchModel_Search_NonExistentName_ResultEmtpy()
 {
     var model = new ActivitySearchModel { ActivityName = Guid.NewGuid().ToString(), ActivityNameFilter = "%{0}%" };
     model.Search(Repository);
     Assert.IsFalse(model.SearchResults.Any());
 }
Пример #4
0
 public ActionResult Search(ActivitySearchModel model)
 {
     model.Search();
     return View(model);
 }