Пример #1
0
        /// <summary>
        /// Returns true if BankingAuthorisedEntity instances are equal
        /// </summary>
        /// <param name="other">Instance of BankingAuthorisedEntity to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BankingAuthorisedEntity other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     FinancialInstitution == other.FinancialInstitution ||
                     FinancialInstitution != null &&
                     FinancialInstitution.Equals(other.FinancialInstitution)
                 ) &&
                 (
                     Abn == other.Abn ||
                     Abn != null &&
                     Abn.Equals(other.Abn)
                 ) &&
                 (
                     Acn == other.Acn ||
                     Acn != null &&
                     Acn.Equals(other.Acn)
                 ) &&
                 (
                     Arbn == other.Arbn ||
                     Arbn != null &&
                     Arbn.Equals(other.Arbn)
                 ));
        }
        /// <summary>
        /// Returns true if CommonOrganisation instances are equal
        /// </summary>
        /// <param name="other">Instance of CommonOrganisation to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CommonOrganisation other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     LastUpdateTime == other.LastUpdateTime ||
                     LastUpdateTime != null &&
                     LastUpdateTime.Equals(other.LastUpdateTime)
                     ) &&
                 (
                     AgentFirstName == other.AgentFirstName ||
                     AgentFirstName != null &&
                     AgentFirstName.Equals(other.AgentFirstName)
                 ) &&
                 (
                     AgentLastName == other.AgentLastName ||
                     AgentLastName != null &&
                     AgentLastName.Equals(other.AgentLastName)
                 ) &&
                 (
                     AgentRole == other.AgentRole ||
                     AgentRole != null &&
                     AgentRole.Equals(other.AgentRole)
                 ) &&
                 (
                     BusinessName == other.BusinessName ||
                     BusinessName != null &&
                     BusinessName.Equals(other.BusinessName)
                 ) &&
                 (
                     LegalName == other.LegalName ||
                     LegalName != null &&
                     LegalName.Equals(other.LegalName)
                 ) &&
                 (
                     ShortName == other.ShortName ||
                     ShortName != null &&
                     ShortName.Equals(other.ShortName)
                 ) &&
                 (
                     Abn == other.Abn ||
                     Abn != null &&
                     Abn.Equals(other.Abn)
                 ) &&
                 (
                     Acn == other.Acn ||
                     Acn != null &&
                     Acn.Equals(other.Acn)
                 ) &&
                 (
                     IsACNCRegistered == other.IsACNCRegistered ||
                     IsACNCRegistered != null &&
                     IsACNCRegistered.Equals(other.IsACNCRegistered)
                 ) &&
                 (
                     IndustryCode == other.IndustryCode ||
                     IndustryCode != null &&
                     IndustryCode.Equals(other.IndustryCode)
                 ) &&
                 (
                     OrganisationType == other.OrganisationType ||
                     OrganisationType != null &&
                     OrganisationType.Equals(other.OrganisationType)
                 ) &&
                 (
                     RegisteredCountry == other.RegisteredCountry ||
                     RegisteredCountry != null &&
                     RegisteredCountry.Equals(other.RegisteredCountry)
                 ) &&
                 (
                     EstablishmentDate == other.EstablishmentDate ||
                     EstablishmentDate != null &&
                     EstablishmentDate.Equals(other.EstablishmentDate)
                 ));
        }