public IWorkItem GetWorkItem(int workItemId) { IWorkItem result; if (!this.loadedWorkItems.TryGetValue(workItemId, out result)) { result = new WorkItemWrapper(this.workItemStore.GetWorkItem(workItemId), this, this.logger); this.loadedWorkItems.Add(workItemId, result); } return result; }
public IWorkItem GetWorkItem(int workItemId) { IWorkItem result; if (!this.loadedWorkItems.TryGetValue(workItemId, out result)) { result = new WorkItemWrapper(this.workItemStore.GetWorkItem(workItemId), this.context); this.loadedWorkItems.Add(workItemId, result); } return(result); }
public IWorkItem MakeNewWorkItem(string projectName, string workItemTypeName) { if (this.workItemStore == null) { this.ConnectToWorkItemStore(); } var targetType = this.workItemStore.Projects[projectName].WorkItemTypes[workItemTypeName]; var target = new WorkItem(targetType); IWorkItem justCreated = new WorkItemWrapper(target, this, this.logger); this.createdWorkItems.Add(justCreated); return(justCreated); }
public IWorkItem GetWorkItem(int workItemId) { if (this.workItemStore == null) { this.ConnectToWorkItemStore(); } IWorkItem result; if (!this.loadedWorkItems.TryGetValue(workItemId, out result)) { result = new WorkItemWrapper(this.workItemStore.GetWorkItem(workItemId), this, this.logger); this.loadedWorkItems.Add(workItemId, result); } return(result); }
public IWorkItem MakeNewWorkItem(string projectName, string workItemTypeName) { if (string.IsNullOrWhiteSpace(projectName)) { throw new ArgumentNullException(nameof(projectName)); } if (string.IsNullOrWhiteSpace(workItemTypeName)) { throw new ArgumentNullException(nameof(workItemTypeName)); } var targetType = this.workItemStore.Projects[projectName].WorkItemTypes[workItemTypeName]; var target = new WorkItem(targetType); IWorkItem justCreated = new WorkItemWrapper(target, this.context); this.createdWorkItems.Add(justCreated); return(justCreated); }
public IWorkItem MakeNewWorkItem(string projectName, string workItemTypeName) { if (this.workItemStore == null) { this.ConnectToWorkItemStore(); } var targetType = this.workItemStore.Projects[projectName].WorkItemTypes[workItemTypeName]; var target = new WorkItem(targetType); IWorkItem justCreated = new WorkItemWrapper(target, this, this.logger); this.createdWorkItems.Add(justCreated); return justCreated; }