Example #1
0
 public GiftcardContext(IReadStore readStore)
 {
     this.cardNumberQuery                 = new InMemoryCardNumberQuery(readStore);
     this.cardNumberEventHandler          = new InMemoryCardNumberEventHandler(readStore);
     this.giftcardOverviewEventHandler    = new InMemoryGiftcardOverviewEventHandler(readStore);
     this.giftcardTransactionEventHandler = new InMemoryGiftcardTransactionEventHandler(readStore);
 }
Example #2
0
 public GiftcardCommandHandler(IEventSourcedRepository repository, ICardNumberQuery cardNumberQuery)
 {
     this.repository      = repository;
     this.cardNumberQuery = cardNumberQuery;
 }