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

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

            return
                ((
                     ProposalId == other.ProposalId ||
                     ProposalId != null &&
                     ProposalId.Equals(other.ProposalId)
                     ) &&
                 (
                     Times == other.Times ||
                     Times != null &&
                     Times.Equals(other.Times)
                 ) &&
                 (
                     Break == other.Break ||

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

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

            return
                ((
                     ProposalId == other.ProposalId ||
                     ProposalId != null &&
                     ProposalId.Equals(other.ProposalId)
                     ) &&
                 (
                     ExpirationDate == other.ExpirationDate ||
                     ExpirationDate != null &&
                     ExpirationDate.Equals(other.ExpirationDate)
                 ));
        }
Exemplo n.º 5
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
                ((
                     ProposalId == other.ProposalId ||
                     ProposalId != null &&
                     ProposalId.Equals(other.ProposalId)
                     ) &&
                 (
                     ValidTo == other.ValidTo ||
                     ValidTo != null &&
                     ValidTo.Equals(other.ValidTo)
                 ));
        }