public void RemoveWorkItemLink(IWorkItemLinkExposed link) { // HACK: should use the code in wrapper... var relationship = new WorkItemLinkMock(link.LinkTypeEndImmutableName, link.TargetId, this.Store); if (this.workItemLinks.Contains(relationship)) { this.workItemLinks.Remove(relationship); this.IsDirty = true; } }
public void AddWorkItemLink(IWorkItemExposed destination, string linkTypeName) { // HACK: should use the code in wrapper... var relationship = new WorkItemLinkMock(linkTypeName, destination.Id, this.Store); // check it does not exist already if (!this.workItemLinks.Contains(relationship)) { this.workItemLinks.Add(relationship); this.IsDirty = true; } }
internal void Remove(WorkItemLinkMock relationship) { throw new NotImplementedException(); }
protected bool Equals(WorkItemLinkMock other) { return(string.Equals(this.relationship, other.relationship) && this.id == other.id); }
public void AddWorkItemLink(IWorkItemExposed destination, string linkTypeName) { // HACK: should use the code in wrapper... var relationship = new WorkItemLinkMock(linkTypeName, destination.Id, this.Store); // check it does not exist already if (!this.workItemLinks.Contains(relationship)) { this.workItemLinks.Add(relationship); this.IsDirty = true; } }
protected bool Equals(WorkItemLinkMock other) { return string.Equals(this.relationship, other.relationship) && this.id == other.id; }