/// <summary>
        /// Returns true if DuplicateEquipmentViewModel instances are equal
        /// </summary>
        /// <param name="other">Instance of DuplicateEquipmentViewModel to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DuplicateEquipmentViewModel other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     DistrictName == other.DistrictName ||
                     DistrictName != null &&
                     DistrictName.Equals(other.DistrictName)
                 ) &&
                 (
                     SerialNumber == other.SerialNumber ||
                     SerialNumber != null &&
                     SerialNumber.Equals(other.SerialNumber)
                 ) &&
                 (
                     DuplicateEquipment == other.DuplicateEquipment ||
                     DuplicateEquipment != null &&
                     DuplicateEquipment.Equals(other.DuplicateEquipment)
                 ));
        }
Beispiel #2
0
        /// <summary>
        /// Returns true if OwnerVerificationPdfViewModel instances are equal
        /// </summary>
        /// <param name="other">Instance of OwnerVerificationPdfViewModel to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OwnerVerificationPdfViewModel other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ReportDate == other.ReportDate ||
                     ReportDate.Equals(other.ReportDate)
                     ) && (
                     Title == other.Title ||
                     Title.Equals(other.Title)
                     ) &&
                 (
                     DistrictId == other.DistrictId ||
                     DistrictId.Equals(other.DistrictId)
                 ) &&
                 (
                     MinistryDistrictId == other.MinistryDistrictId ||
                     MinistryDistrictId.Equals(other.MinistryDistrictId)
                 ) &&
                 (
                     DistrictName == other.DistrictName ||
                     DistrictName.Equals(other.DistrictName)
                 ) &&
                 (
                     DistrictAddress == other.DistrictAddress ||
                     DistrictAddress.Equals(other.DistrictAddress)
                 ) &&
                 (
                     DistrictContact == other.DistrictContact ||
                     DistrictContact.Equals(other.DistrictContact)
                 ) &&
                 (
                     Owners == other.Owners ||
                     Owners.Equals(other.Owners)
                 ));
        }
        /// <summary>
        /// Returns true if SharedAutomatedTellerMachinesPostalAddress instances are equal
        /// </summary>
        /// <param name="other">Instance of SharedAutomatedTellerMachinesPostalAddress to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SharedAutomatedTellerMachinesPostalAddress other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Address == other.Address ||
                     Address != null &&
                     Address.Equals(other.Address)
                     ) &&
                 (
                     AdditionalInfo == other.AdditionalInfo ||
                     AdditionalInfo != null &&
                     AdditionalInfo.Equals(other.AdditionalInfo)
                 ) &&
                 (
                     DistrictName == other.DistrictName ||
                     DistrictName != null &&
                     DistrictName.Equals(other.DistrictName)
                 ) &&
                 (
                     TownName == other.TownName ||
                     TownName != null &&
                     TownName.Equals(other.TownName)
                 ) &&
                 (
                     IbgeCode == other.IbgeCode ||
                     IbgeCode != null &&
                     IbgeCode.Equals(other.IbgeCode)
                 ) &&
                 (
                     CountrySubDivision == other.CountrySubDivision ||
                     CountrySubDivision != null &&
                     CountrySubDivision.Equals(other.CountrySubDivision)
                 ) &&
                 (
                     PostCode == other.PostCode ||
                     PostCode != null &&
                     PostCode.Equals(other.PostCode)
                 ) &&
                 (
                     Country == other.Country ||
                     Country != null &&
                     Country.Equals(other.Country)
                 ) &&
                 (
                     CountryCode == other.CountryCode ||
                     CountryCode != null &&
                     CountryCode.Equals(other.CountryCode)
                 ) &&
                 (
                     GeographicCoordinates == other.GeographicCoordinates ||
                     GeographicCoordinates != null &&
                     GeographicCoordinates.Equals(other.GeographicCoordinates)
                 ));
        }