Inheritance: IWorkItemCollectorStrategy
Ejemplo n.º 1
0
        public void Review(int workItemId, IReviewItemFilter filter)
        {
            if (workItemId <= 0)
            {
                ItemsToReview = new ReviewItemModel[0];
            }

            var workItemCollector = new WorkItemCollector(workItemStore);
            var collectorStrategy = new ReviewItemCollectorStrategy(workItemStore, versionControlServer, teamProjectCollectionProvider, filter);

            workItemCollector.CollectItems(workItemId, collectorStrategy);

            ItemsToReview = collectorStrategy.Items;

            var workItem = workItemStore.GetWorkItem(workItemId);

            Title = string.Format("Review - {0} {1} - {2}", workItem.Type.Name, workItem.Id, workItem.Title);
        }
Ejemplo n.º 2
0
        public void Review(int workItemId, IReviewItemFilter filter)
        {
            if (workItemId <= 0)
            {
                ItemsToReview = new ReviewItemModel[0];
            }

            var workItemCollector = new WorkItemCollector(workItemStore);
            var collectorStrategy = new ReviewItemCollectorStrategy(workItemStore, versionControlServer, teamProjectCollectionProvider, filter);

            workItemCollector.CollectItems(workItemId, collectorStrategy);

            ItemsToReview = collectorStrategy.Items;

            var workItem = workItemStore.GetWorkItem(workItemId);

            Title = string.Format("Review - {0} {1} - {2}", workItem.Type.Name, workItem.Id, workItem.Title);
        }