Exemplo n.º 1
0
        public List<BankTransaction> GetTransactions(BankTransaction bankTransaction)
        {
             if(bankTransaction != null)
            transactions.Add(bankTransaction);

            if (transactions.Count == 2 )
            {
                return transactions;
            }

            return null;
        }
Exemplo n.º 2
0
        public List <BankTransaction> GetTransactions(BankTransaction bankTransaction)
        {
            if (bankTransaction != null)
            {
                transactions.Add(bankTransaction);
            }

            if (transactions.Count == 2)
            {
                return(transactions);
            }

            return(null);
        }