Example #1
0
 public AccountOpenedEvent(AccountDetails accountDetails)
 {
     Data     = accountDetails;
     MetaData = new EventMetaData()
     {
         EventVersion = "1"
     };
 }
Example #2
0
 public AccountDebitedEvent(Transaction transaction)
 {
     Data     = transaction;
     MetaData = new EventMetaData()
     {
         EventVersion = "1"
     };
 }
Example #3
0
 public StatementCreatedEvent(long incomingBalance, DateTime billingDate)
 {
     Data = new StatementDetails()
     {
         BillingDate = billingDate, IncomingBalance = incomingBalance
     };
     MetaData = new EventMetaData()
     {
         EventVersion = "1"
     };
 }