/// <summary> /// Get the necessary services /// </summary> private void GetService() { _workItemSyncService = SyncServiceFactory.GetService <IWorkItemSyncService>(); _configService = SyncServiceFactory.GetService <IConfigurationService>(); _configuration = _configService.GetConfiguration(_wordDocument); _tfsService = SyncServiceFactory.CreateTfsService(_documentModel.TfsServer, _documentModel.TfsProject, _documentModel.Configuration); _source = SyncServiceFactory.CreateTfs2008WorkItemSyncAdapter(_documentModel.TfsServer, _documentModel.TfsProject, null, _configuration); _destination = SyncServiceFactory.CreateWord2007TableWorkItemSyncAdapter(_wordDocument, _configuration); }
public WorkItemTest() { _teamWorkItemService = new TfsTeamWorkItemService(); _workItemManagementService = new WorkItemManagementService(_teamWorkItemService); _userWorkItemQueryService = new WorkItemSyncService(_teamWorkItemService); }
public TaskController(IWorkItemSyncService workItemSyncService) { _workItemSyncService = workItemSyncService; }