Example #1
0
        public bool Equals(PublishedItem other)
        {
            if (other == null || other.Publisher == null)
            {
                return(false);
            }

            return(SubjectId.Equals(other.SubjectId) &&
                   Identifier.Equals(other.Identifier) &&
                   PublisherTypeName.Equals(GetPublisherTypeName(other)) &&
                   PublisherIdentifier.Equals(other.Publisher.Identifier) &&
                   (PublisherAdditionalInfo?.Equals(other.Publisher.AdditionalInfo) ?? true));
        }
Example #2
0
 public bool Equals(RuleSubject other)
 {
     return
         (SubjectId.Equals(other.SubjectId) &&
          SubjectType == other.SubjectType);
 }