public void CheckingServiceFeeTransaction(double TransactionAmount, DateTime TransactionDateTime, string BankName) { TransactionDateTime = DateTime.Now; var chargeFee = new Transaction(TransactionAmount, TransactionDateTime, BankName); BankTransaction.Enqueue(chargeFee); }
public void SavingsInterestTransaction(double savingsInterest, DateTime transactionDateTime, string BankName) { transactionDateTime = DateTime.Now; var interestTransaction = AccountTotal * savingsInterest; var chargeInterest = new Transaction(interestTransaction, transactionDateTime, BankName); BankTransaction.Enqueue(chargeInterest); }