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

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     EndDate == other.EndDate ||
                     EndDate.Equals(other.EndDate)
                 ) &&
                 (
                     LocalArea == other.LocalArea ||
                     LocalArea != null &&
                     LocalArea.Equals(other.LocalArea)
                 ) &&
                 (
                     Equipment == other.Equipment ||
                     Equipment != null &&
                     Equipment.Equals(other.Equipment)
                 ) &&
                 (
                     BlockNumber == other.BlockNumber ||
                     BlockNumber != null &&
                     BlockNumber.Equals(other.BlockNumber)
                 ) &&
                 (
                     Owner == other.Owner ||
                     Owner != null &&
                     Owner.Equals(other.Owner)
                 ) &&
                 (
                     OwnerOrganizationName == other.OwnerOrganizationName ||
                     OwnerOrganizationName != null &&
                     OwnerOrganizationName.Equals(other.OwnerOrganizationName)
                 ) &&
                 (
                     Seniority == other.Seniority ||
                     Seniority != null &&
                     Seniority.Equals(other.Seniority)
                 ) &&
                 (
                     ServiceHoursLastYear == other.ServiceHoursLastYear ||
                     ServiceHoursLastYear != null &&
                     ServiceHoursLastYear.Equals(other.ServiceHoursLastYear)
                 ) &&
                 (
                     ServiceHoursTwoYearsAgo == other.ServiceHoursTwoYearsAgo ||
                     ServiceHoursTwoYearsAgo != null &&
                     ServiceHoursTwoYearsAgo.Equals(other.ServiceHoursTwoYearsAgo)
                 ) &&
                 (
                     ServiceHoursThreeYearsAgo == other.ServiceHoursThreeYearsAgo ||
                     ServiceHoursThreeYearsAgo != null &&
                     ServiceHoursThreeYearsAgo.Equals(other.ServiceHoursThreeYearsAgo)
                 ) &&
                 (
                     IsSeniorityOverridden == other.IsSeniorityOverridden ||
                     IsSeniorityOverridden != null &&
                     IsSeniorityOverridden.Equals(other.IsSeniorityOverridden)
                 ) &&
                 (
                     SeniorityOverrideReason == other.SeniorityOverrideReason ||
                     SeniorityOverrideReason != null &&
                     SeniorityOverrideReason.Equals(other.SeniorityOverrideReason)
                 ));
        }