Esempio n. 1
0
 private Booking()
 {
     context = new EventSourceContext()
               .Given <BookingOpened>(e => Id = e.Id)
               .Given <FlightRequested>((ctx, e) =>
     {
         Flight = new Flight(ctx.Then);
         Flight.Given(e);
     })
               .Given <FlightConfirmed>(e => Flight.Given(e));
 }
Esempio n. 2
0
 public EventStore(EventSourceContext eventSourceContext)
 {
     _eventSourceContext = eventSourceContext;
 }