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

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

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

            return
                ((
                     Bundles == other.Bundles ||
                     Bundles != null &&
                     Bundles.SequenceEqual(other.Bundles)
                     ) &&
                 (
                     Features == other.Features ||
                     Features != null &&
                     Features.SequenceEqual(other.Features)
                 ) &&
                 (
                     Constraints == other.Constraints ||
                     Constraints != null &&
                     Constraints.SequenceEqual(other.Constraints)
                 ) &&
                 (
                     Eligibility == other.Eligibility ||
                     Eligibility != null &&
                     Eligibility.SequenceEqual(other.Eligibility)
                 ) &&
                 (
                     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)
                 ));
        }
        /// <summary>
        /// Returns true if UnarrangedAccountOverdraftRate instances are equal
        /// </summary>
        /// <param name="other">Instance of UnarrangedAccountOverdraftRate to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(UnarrangedAccountOverdraftRate other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Fees == other.Fees ||
                     Fees != null &&
                     Fees.SequenceEqual(other.Fees)
                     ) &&
                 (
                     Applications == other.Applications ||
                     Applications != null &&
                     Applications.SequenceEqual(other.Applications)
                 ) &&
                 (
                     MinimumRate == other.MinimumRate ||
                     MinimumRate != null &&
                     MinimumRate.Equals(other.MinimumRate)
                 ) &&
                 (
                     MaximumRate == other.MaximumRate ||
                     MaximumRate != null &&
                     MaximumRate.Equals(other.MaximumRate)
                 ) &&
                 (
                     Customers == other.Customers ||
                     Customers != null &&
                     Customers.SequenceEqual(other.Customers)
                 ));
        }
        /// <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)
                 ));
        }