public void WorkItem_Search_InvalidCriteria_NoItemsFound() { var searchSpec = new WorklistSearchSpec { SubProcessName = "ujwbefibwginweg8y23878345uguef928wkjs9u", SubProcessNameFilter = DefaultSearchFilterOption }; var searchImpl = new WorklistSearchImpl(DataProvider); var workListItems = searchImpl.Execute(searchSpec); Assert.AreEqual(0, workListItems.Count()); }
public void WorkItem_Search_ValidExistingData_ItemsFound() { var searchSpec = new WorklistSearchSpec { KeyValue = 399, ProcessName = "test", ProcessNameFilter = DefaultSearchFilterOption, SubProcessName = "Test", SubProcessNameFilter = DefaultSearchFilterOption, ActivityName = "db", ActivityNameFilter = DefaultSearchFilterOption, UserName = "******", UserNameFilter = DefaultSearchFilterOption, StatusType = WorkItemStatus.Pending, DocWait = false }; var searchImpl = new WorklistSearchImpl(DataProvider); var workListItems = searchImpl.Execute(searchSpec); Assert.AreNotEqual(0, workListItems.Count()); }
public void WorkItem_FlowNavigate_ActivityMovedOn() { var searchSpec = new WorklistSearchSpec { StatusType = WorkItemStatus.Pending, ActivityName = "db stuff", ActivityNameFilter = DefaultSearchFilterOption }; var searchImpl = new WorklistSearchImpl(DataProvider); var nonFlowDecisionActivityWorkItem = searchImpl.Execute(searchSpec).FirstOrDefault(); //var nonFlowDecisionActivityWorkItem = new WorkItemFindAll(DataProvider).Execute().SingleOrDefault(x => x.Id == workItem.Id); Assert.IsNotNull(nonFlowDecisionActivityWorkItem); nonFlowDecisionActivityWorkItem.FlowNavigate(Repository, 0, null); var workItemInDb = (from w in DataProvider.Cloudcore_VwWorklistEx where w.InstanceId == nonFlowDecisionActivityWorkItem.Id.Value select w).Single(); Assert.AreEqual("cloudcoreuser1", workItemInDb.ActivityName.ToLower()); // a user/page activity }