Skip to content

Commit

Permalink
Add CreateRelatedLink back to the Soap Workitem
Browse files Browse the repository at this point in the history
Removed with commit 0e97912. Added back with 9aec4af
  • Loading branch information
rjmurillo committed Mar 27, 2019
1 parent 83be19e commit 3a29475
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Qwiq.Core.Soap/WorkItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ public override IHyperlink CreateHyperlink(string location)
return ExceptionHandlingDynamicProxyFactory.Create<IHyperlink>(new Hyperlink(new Tfs.Hyperlink(location)));
}

public override IRelatedLink CreateRelatedLink(int relatedWorkItemId, IWorkItemLinkTypeEnd linkTypeEnd = null)
{
var rawLinkTypeEnd = LinkTypeEndMapper.Map(_item.Store, linkTypeEnd);
return ExceptionHandlingDynamicProxyFactory.Create<IRelatedLink>(new RelatedLink(new Tfs.RelatedLink(rawLinkTypeEnd, relatedWorkItemId)));
}

/// <summary>
/// Validates the fields of this work item.
/// </summary>
Expand Down

0 comments on commit 3a29475

Please sign in to comment.