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

            return
                ((
                     VisitId == other.VisitId ||
                     VisitId != null &&
                     VisitId.Equals(other.VisitId)
                     ) &&
                 (
                     Date == other.Date ||
                     Date != null &&
                     Date.Equals(other.Date)
                 ) &&
                 (
                     Price == other.Price ||
                     Price != null &&
                     Price.Equals(other.Price)
                 ) &&
                 (
                     RequiredActions == other.RequiredActions ||
                     RequiredActions != null &&
                     RequiredActions.SequenceEqual(other.RequiredActions)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ) &&
                 (
                     AssignedEmployees == other.AssignedEmployees ||
                     AssignedEmployees != null &&
                     AssignedEmployees.SequenceEqual(other.AssignedEmployees)
                 ));
        }
Beispiel #2
0
        /// <summary>
        /// Returns true if Body3 instances are equal
        /// </summary>
        /// <param name="other">Instance of Body3 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Body3 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Date == other.Date ||
                     Date != null &&
                     Date.Equals(other.Date)
                     ) &&
                 (
                     RequiredActions == other.RequiredActions ||
                     RequiredActions != null &&
                     RequiredActions.SequenceEqual(other.RequiredActions)
                 ));
        }