コード例 #1
0
 public ExternalEventSourceCatchUp(IReadRepository readRepository,
                                   IAsyncEventQueueDispatcher asyncEventQueueDispatcher,
                                   IEventSerializer eventSerializer)
 {
     this.readRepository            = readRepository;
     this.asyncEventQueueDispatcher = asyncEventQueueDispatcher;
     this.eventSerializer           = eventSerializer;
 }
コード例 #2
0
        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>();
        }
コード例 #3
0
 public AsyncEventQueueDispatchListener(IAsyncEventQueueDispatcher asyncEventQueueDispatcher,
                                        IAsyncEventProcessor asyncEventProcessor)
 {
     this.asyncEventQueueDispatcher = asyncEventQueueDispatcher;
     this.asyncEventProcessor       = asyncEventProcessor;
 }