public bool Equals(JiraIssue other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } bool eq = true; eq &= other.Server.GUID.Equals(Server.GUID); eq &= other.IssueType.Equals(IssueType); eq &= other.IssueTypeId.Equals(IssueTypeId); eq &= other.IssueTypeIconUrl.Equals(IssueTypeIconUrl); eq &= string.Equals(other.Description, Description); eq &= other.Id == Id; eq &= other.Key.Equals(Key); eq &= string.Equals(other.Summary, Summary); eq &= other.Status.Equals(Status); eq &= other.StatusIconUrl.Equals(StatusIconUrl); eq &= Equals(other.Priority, Priority); eq &= string.Equals(other.Resolution, Resolution); eq &= other.Reporter.Equals(Reporter); eq &= string.Equals(other.Assignee, Assignee); eq &= other.CreationDate.Equals(CreationDate); eq &= other.UpdateDate.Equals(UpdateDate); eq &= other.ProjectKey.Equals(ProjectKey); eq &= string.Equals(other.Environment, Environment); eq &= string.Equals(other.OriginalEstimate, OriginalEstimate); eq &= string.Equals(other.RemainingEstimate, RemainingEstimate); eq &= string.Equals(other.TimeSpent, TimeSpent); eq &= string.Equals(other.ParentKey, ParentKey); eq &= Equals(other.PriorityIconUrl, PriorityIconUrl); eq &= other.StatusId == StatusId; eq &= other.PriorityId == PriorityId; eq &= PlvsUtils.compareLists(other.comments, comments); eq &= PlvsUtils.compareLists(other.versions, versions); eq &= PlvsUtils.compareLists(other.fixVersions, fixVersions); eq &= PlvsUtils.compareLists(other.components, components); eq &= PlvsUtils.compareLists(other.SubtaskKeys, SubtaskKeys); eq &= PlvsUtils.compareLists(other.Attachments, Attachments); eq &= PlvsUtils.compareLists(other.IssueLinks, IssueLinks); return(eq); }
public bool Equals(IssueLinkType other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.Id == Id && Equals(other.Name, Name) && Equals(other.OutwardLinksName, OutwardLinksName) && Equals(other.InwardLinksName, InwardLinksName) && PlvsUtils.compareLists(other.OutwardLinks, OutwardLinks) && PlvsUtils.compareLists(other.InwardLinks, InwardLinks)); }