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

            return
                ((
                     RequestorId == other.RequestorId ||
                     RequestorId != null &&
                     RequestorId.Equals(other.RequestorId)
                     ) &&
                 (
                     Demand == other.Demand ||
                     Demand != null &&
                     Demand.Equals(other.Demand)
                 ) &&
                 (
                     ProviderId == other.ProviderId ||
                     ProviderId != null &&
                     ProviderId.Equals(other.ProviderId)
                 ) &&
                 (
                     Offer == other.Offer ||
                     Offer != null &&
                     Offer.Equals(other.Offer)
                 ));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if AgreementProposal instances are equal
        /// </summary>
        /// <param name="other">Instance of AgreementProposal to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AgreementProposal other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Demand == other.Demand ||
                     Demand != null &&
                     Demand.Equals(other.Demand)
                 ) &&
                 (
                     Offer == other.Offer ||
                     Offer != null &&
                     Offer.Equals(other.Offer)
                 ));
        }