public InventoryCommandHandler(E05.Test.Infrastructure.Bus bus, EventStore eventStore)
 {
     _eventStore = eventStore;
     _bus        = bus;
     _bus.RegisterQueue <CreateInventoryItem>(Handle);
     _bus.RegisterQueue <ModifyItemName>(Handle);
 }
Exemple #2
0
 public EventStore(E05.Test.Infrastructure.Bus bus, EventsSerializer eventsSerializer, SnapshotStore snapshotStore)
 {
     Events            = new List <EventDescriptor>();
     _bus              = bus;
     _eventsSerializer = eventsSerializer;
     _snapshotStore    = snapshotStore;
 }
Exemple #3
0
 public EventStore(E05.Test.Infrastructure.Bus bus, EventsSerializer eventsSerializer)
 {
     Events            = new List <EventDescriptor>();
     _bus              = bus;
     _eventsSerializer = eventsSerializer;
 }
Exemple #4
0
 public EventStore(E05.Test.Infrastructure.Bus bus)
 {
     Events = new List <EventDescriptor>();
     _bus   = bus;
 }