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

            return
                ((
                     BookingRequestId == other.BookingRequestId ||
                     BookingRequestId != null &&
                     BookingRequestId.Equals(other.BookingRequestId)
                     ) &&
                 (
                     BookingId == other.BookingId ||
                     BookingId != null &&
                     BookingId.Equals(other.BookingId)
                 ) &&
                 (
                     AgencyId == other.AgencyId ||
                     AgencyId != null &&
                     AgencyId.Equals(other.AgencyId)
                 ) &&
                 (
                     Cost == other.Cost ||

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

            return
                ((
                     AgencyId == other.AgencyId ||
                     AgencyId != null &&
                     AgencyId.Equals(other.AgencyId)
                     ) &&
                 (
                     AgencyName == other.AgencyName ||
                     AgencyName != null &&
                     AgencyName.Equals(other.AgencyName)
                 ) &&
                 (
                     Cost == other.Cost ||

                     Cost.Equals(other.Cost)
                 ));
        }
Exemplo n.º 3
0
        public bool Equals(CodeListRef other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Id.Equals(other.Id) &&
                   AgencyId.Equals(other.AgencyId) &&
                   Version.Equals(other.Version) &&
                   Alias.Equals(other.Alias));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Returns true if ProposalDetails instances are equal
        /// </summary>
        /// <param name="other">Instance of ProposalDetails to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ProposalDetails other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     PersonId == other.PersonId ||
                     PersonId != null &&
                     PersonId.Equals(other.PersonId)
                     ) &&
                 (
                     EngagementRoute == other.EngagementRoute ||

                     EngagementRoute.Equals(other.EngagementRoute)
                 ) &&
                 (
                     AgencyId == other.AgencyId ||
                     AgencyId != null &&
                     AgencyId.Equals(other.AgencyId)
                 ) &&
                 (
                     Cost == other.Cost ||

                     Cost.Equals(other.Cost)
                 ) &&
                 (
                     CancellationCosts == other.CancellationCosts ||
                     CancellationCosts != null &&
                     other.CancellationCosts != null &&
                     CancellationCosts.SequenceEqual(other.CancellationCosts)
                 ));
        }
Exemplo n.º 5
0
 public bool Equals(MaintainableArtefact other)
 {
     return(AgencyId.Equals(other.AgencyId) &&
            Id.Equals(other.Id) &&
            Version.Equals(other.Version));
 }