/// <summary> /// Returns true if BankingLendingBalance instances are equal /// </summary> /// <param name="other">Instance of BankingLendingBalance to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingLendingBalance other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountBalance == other.AccountBalance || AccountBalance != null && AccountBalance.Equals(other.AccountBalance) ) && ( AvailableBalance == other.AvailableBalance || AvailableBalance != null && AvailableBalance.Equals(other.AvailableBalance) ) && ( CreditLimit == other.CreditLimit || CreditLimit != null && CreditLimit.Equals(other.CreditLimit) ) && ( AmortisedLimit == other.AmortisedLimit || AmortisedLimit != null && AmortisedLimit.Equals(other.AmortisedLimit) )); }
/// <summary> /// Returns true if AccountViewModel instances are equal /// </summary> /// <param name="input">Instance of AccountViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(AccountViewModel input) { if (input == null) { return(false); } return (( AccountName == input.AccountName || AccountName != null && AccountName.Equals(input.AccountName) ) && ( AccountNumber == input.AccountNumber || AccountNumber != null && AccountNumber.Equals(input.AccountNumber) ) && ( SortCode == input.SortCode || SortCode != null && SortCode.Equals(input.SortCode) ) && ( Balance == input.Balance || Balance != null && Balance.Equals(input.Balance) ) && ( AvailableBalance == input.AvailableBalance || AvailableBalance != null && AvailableBalance.Equals(input.AvailableBalance) ) && ( Overdraft == input.Overdraft || Overdraft != null && Overdraft.Equals(input.Overdraft) )); }