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

            return
                ((
                     AccountName == other.AccountName ||
                     AccountName != null &&
                     AccountName.Equals(other.AccountName)
                     ) &&
                 (
                     Bsb == other.Bsb ||
                     Bsb != null &&
                     Bsb.Equals(other.Bsb)
                 ) &&
                 (
                     AccountNumber == other.AccountNumber ||
                     AccountNumber != null &&
                     AccountNumber.Equals(other.AccountNumber)
                 ));
        }
        /// <summary>
        /// Returns true if BankingAccountDetail instances are equal
        /// </summary>
        /// <param name="other">Instance of BankingAccountDetail to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BankingAccountDetail other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Bsb == other.Bsb ||
                     Bsb != null &&
                     Bsb.Equals(other.Bsb)
                     ) &&
                 (
                     AccountNumber == other.AccountNumber ||
                     AccountNumber != null &&
                     AccountNumber.Equals(other.AccountNumber)
                 ) &&
                 (
                     BundleName == other.BundleName ||
                     BundleName != null &&
                     BundleName.Equals(other.BundleName)
                 ) &&
                 (
                     SpecificAccountUType == other.SpecificAccountUType ||
                     SpecificAccountUType != null &&
                     SpecificAccountUType.Equals(other.SpecificAccountUType)
                 ) &&
                 (
                     TermDeposit == other.TermDeposit ||
                     TermDeposit != null &&
                     TermDeposit.Equals(other.TermDeposit)
                 ) &&
                 (
                     CreditCard == other.CreditCard ||
                     CreditCard != null &&
                     CreditCard.Equals(other.CreditCard)
                 ) &&
                 (
                     Loan == other.Loan ||
                     Loan != null &&
                     Loan.Equals(other.Loan)
                 ) &&
                 (
                     Features == other.Features ||
                     Features != null &&
                     Features.SequenceEqual(other.Features)
                 ) &&
                 (
                     Fees == other.Fees ||
                     Fees != null &&
                     Fees.SequenceEqual(other.Fees)
                 ) &&
                 (
                     DepositRates == other.DepositRates ||
                     DepositRates != null &&
                     DepositRates.SequenceEqual(other.DepositRates)
                 ) &&
                 (
                     LendingRates == other.LendingRates ||
                     LendingRates != null &&
                     LendingRates.SequenceEqual(other.LendingRates)
                 ) &&
                 (
                     Address == other.Address ||
                     Address != null &&
                     Address.Equals(other.Address)
                 ));
        }