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