public ExternalEventSourceCatchUp(IReadRepository readRepository, IAsyncEventQueueDispatcher asyncEventQueueDispatcher, IEventSerializer eventSerializer) { this.readRepository = readRepository; this.asyncEventQueueDispatcher = asyncEventQueueDispatcher; this.eventSerializer = eventSerializer; }
public AsyncEventQueueDispatchListenerTests() { asyncEventQueueDispatcher = Substitute.For <IAsyncEventQueueDispatcher>(); asyncEventProcessor = Substitute.For <IAsyncEventProcessor>(); sut = new AsyncEventQueueDispatchListener(asyncEventQueueDispatcher, asyncEventProcessor); messages = new List <IEventMessage <IEvent> >() { new EventMessage <Event1>(new Event1(), new Dictionary <string, string>()), new EventMessage <Event1>(new Event1(), new Dictionary <string, string>()) }; unitOfWork = Substitute.For <IUnitOfWork>(); }
public AsyncEventQueueDispatchListener(IAsyncEventQueueDispatcher asyncEventQueueDispatcher, IAsyncEventProcessor asyncEventProcessor) { this.asyncEventQueueDispatcher = asyncEventQueueDispatcher; this.asyncEventProcessor = asyncEventProcessor; }