public void ProcessTransaction(Transaction transaction) { Task.Factory.StartNew(() => { Logging.WriteLine("Processing a transaction of $" + transaction.CalculateTotalTransaction()); _accountRepository.ProcessTransaction(transaction); }); }
public virtual void ProcessTransaction(Transaction transaction) { _transactions.Add(transaction); }
public virtual void ProcessTransaction(Transaction transaction) { if (transaction.CalculateTotalTransaction() == 0) return; _transactions.Add(transaction); }