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

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

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     RentalAgreement == other.RentalAgreement ||
                     RentalAgreement != null &&
                     RentalAgreement.Equals(other.RentalAgreement)
                 ) &&
                 (
                     ComponentName == other.ComponentName ||
                     ComponentName != null &&
                     ComponentName.Equals(other.ComponentName)
                 ) &&
                 (
                     IsAttachment == other.IsAttachment ||
                     IsAttachment != null &&
                     IsAttachment.Equals(other.IsAttachment)
                 ) &&
                 (
                     Rate == other.Rate ||
                     Rate != null &&
                     Rate.Equals(other.Rate)
                 ) &&
                 (
                     PercentOfEquipmentRate == other.PercentOfEquipmentRate ||
                     PercentOfEquipmentRate != null &&
                     PercentOfEquipmentRate.Equals(other.PercentOfEquipmentRate)
                 ) &&
                 (
                     RatePeriod == other.RatePeriod ||
                     RatePeriod != null &&
                     RatePeriod.Equals(other.RatePeriod)
                 ) &&
                 (
                     Comment == other.Comment ||
                     Comment != null &&
                     Comment.Equals(other.Comment)
                 ) &&
                 (
                     TimeRecords == other.TimeRecords ||
                     TimeRecords != null &&
                     TimeRecords.SequenceEqual(other.TimeRecords)
                 ));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if TimeRecord instances are equal
        /// </summary>
        /// <param name="other">Instance of TimeRecord to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(TimeRecord other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     RentalAgreement == other.RentalAgreement ||
                     RentalAgreement != null &&
                     RentalAgreement.Equals(other.RentalAgreement)
                 ) &&
                 (
                     WorkedDate == other.WorkedDate ||
                     WorkedDate.Equals(other.WorkedDate)
                 ) &&
                 (
                     Hours == other.Hours ||
                     Hours != null &&
                     Hours.Equals(other.Hours)
                 ) &&
                 (
                     RentalAgreementRate == other.RentalAgreementRate ||
                     RentalAgreementRate != null &&
                     RentalAgreementRate.Equals(other.RentalAgreementRate)
                 ) &&
                 (
                     EnteredDate == other.EnteredDate ||
                     EnteredDate != null &&
                     EnteredDate.Equals(other.EnteredDate)
                 ) &&
                 (
                     TimePeriod == other.TimePeriod ||
                     TimePeriod != null &&
                     TimePeriod.Equals(other.TimePeriod)
                 ));
        }
        /// <summary>
        /// Returns true if RentalRequestRotationList instances are equal
        /// </summary>
        /// <param name="other">Instance of RentalRequestRotationList to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(RentalRequestRotationList other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     RotationListSortOrder == other.RotationListSortOrder ||
                     RotationListSortOrder.Equals(other.RotationListSortOrder)
                 ) &&
                 (
                     Equipment == other.Equipment ||
                     Equipment != null &&
                     Equipment.Equals(other.Equipment)
                 ) &&
                 (
                     RentalAgreement == other.RentalAgreement ||
                     RentalAgreement != null &&
                     RentalAgreement.Equals(other.RentalAgreement)
                 ) &&
                 (
                     IsForceHire == other.IsForceHire ||
                     IsForceHire != null &&
                     IsForceHire.Equals(other.IsForceHire)
                 ) &&
                 (
                     WasAsked == other.WasAsked ||
                     WasAsked != null &&
                     WasAsked.Equals(other.WasAsked)
                 ) &&
                 (
                     AskedDateTime == other.AskedDateTime ||
                     AskedDateTime != null &&
                     AskedDateTime.Equals(other.AskedDateTime)
                 ) &&
                 (
                     OfferResponse == other.OfferResponse ||
                     OfferResponse != null &&
                     OfferResponse.Equals(other.OfferResponse)
                 ) &&
                 (
                     OfferRefusalReason == other.OfferRefusalReason ||
                     OfferRefusalReason != null &&
                     OfferRefusalReason.Equals(other.OfferRefusalReason)
                 ) &&
                 (
                     OfferResponseDatetime == other.OfferResponseDatetime ||
                     OfferResponseDatetime != null &&
                     OfferResponseDatetime.Equals(other.OfferResponseDatetime)
                 ) &&
                 (
                     OfferResponseNote == other.OfferResponseNote ||
                     OfferResponseNote != null &&
                     OfferResponseNote.Equals(other.OfferResponseNote)
                 ) &&
                 (
                     Note == other.Note ||
                     Note != null &&
                     Note.Equals(other.Note)
                 ));
        }