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

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     InventoryVariantName == other.InventoryVariantName ||
                     InventoryVariantName != null &&
                     InventoryVariantName.Equals(other.InventoryVariantName)
                 ) &&
                 (
                     Created == other.Created ||
                     Created != null &&
                     Created.Equals(other.Created)
                 ) &&
                 (
                     ReportDate == other.ReportDate ||
                     ReportDate != null &&
                     ReportDate.Equals(other.ReportDate)
                 ) &&
                 (
                     Creator == other.Creator ||
                     Creator != null &&
                     Creator.Equals(other.Creator)
                 ) &&
                 (
                     Assignees == other.Assignees ||
                     Assignees != null &&
                     Assignees.SequenceEqual(other.Assignees)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ) &&
                 (
                     HasOnlyUntaggedAssets == other.HasOnlyUntaggedAssets ||
                     HasOnlyUntaggedAssets != null &&
                     HasOnlyUntaggedAssets.Equals(other.HasOnlyUntaggedAssets)
                 ));
        }
Ejemplo n.º 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)
                 ));
        }