Example #1
0
 public void OnAuditingTransaction(BankTransaction bankTransaction)
 {
     if (AuditingTransaction != null)
     {
         var auditEventArgs = new AuditEventArgs(bankTransaction);
         AuditingTransaction(this, auditEventArgs);
     }
 }
Example #2
0
        public void RecordTransaction(object sender, AuditEventArgs eventData)
        {
            BankTransaction bankTransaction = eventData.GetTransaction();

            _auditFile.WriteLine(bankTransaction.Amount + "---" + bankTransaction.Date);
        }