/// <summary> /// Creates a link between parent and child work item with a comment. /// </summary> /// <param name="parentId">The parent id.</param> /// <param name="childId">The child id.</param> /// <param name="comment">A comment.</param> public void AddLinkToWorkItem(int parentId, int childId, string comment) { var workItemLink = new InMemoryWorkItemLink { RelatedWorkItemId = childId, Comment = comment }; this.workItems.Single(w => w.Id == parentId).Links.Add(workItemLink); }
/// <summary> /// Creates a link between parent and child work item with a comment. /// </summary> /// <param name="parentId">The parent id.</param> /// <param name="childId">The child id.</param> /// <param name="comment">A comment.</param> public void AddLinkToWorkItem(int parentId, int childId, string comment) { var workItemLink = new InMemoryWorkItemLink { RelatedWorkItemId = childId, Comment = comment }; this.workItems.Single(w => w.Id == parentId).Links.Add(workItemLink); }