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

            return
                ((
                     BoletoBancarioRequiredness == other.BoletoBancarioRequiredness ||
                     BoletoBancarioRequiredness != null &&
                     BoletoBancarioRequiredness.Equals(other.BoletoBancarioRequiredness)
                     ) &&
                 (
                     EmailAddress == other.EmailAddress ||
                     EmailAddress != null &&
                     EmailAddress.Equals(other.EmailAddress)
                 ) &&
                 (
                     ExpirationDate == other.ExpirationDate ||
                     ExpirationDate != null &&
                     ExpirationDate.Equals(other.ExpirationDate)
                 ) &&
                 (
                     FixedList == other.FixedList ||
                     FixedList != null &&
                     FixedList.Equals(other.FixedList)
                 ) &&
                 (
                     Iban == other.Iban ||
                     Iban != null &&
                     Iban.Equals(other.Iban)
                 ) &&
                 (
                     Length == other.Length ||
                     Length != null &&
                     Length.Equals(other.Length)
                 ) &&
                 (
                     Luhn == other.Luhn ||
                     Luhn != null &&
                     Luhn.Equals(other.Luhn)
                 ) &&
                 (
                     Range == other.Range ||
                     Range != null &&
                     Range.Equals(other.Range)
                 ) &&
                 (
                     RegularExpression == other.RegularExpression ||
                     RegularExpression != null &&
                     RegularExpression.Equals(other.RegularExpression)
                 ) &&
                 (
                     TermsAndConditions == other.TermsAndConditions ||
                     TermsAndConditions != null &&
                     TermsAndConditions.Equals(other.TermsAndConditions)
                 ));
        }