public OutboxToMessageBusPublisher(IEventToPublishRepository eventToPublishRepository,
                                    IBusControl busControl,
                                    IEventToPublishSerializer eventToPublishSerializer)
 {
     _eventToPublishRepository = eventToPublishRepository;
     _busControl = busControl;
     _eventToPublishSerializer = eventToPublishSerializer;
 }
Esempio n. 2
0
 private void AssumingThereIsOneEventToPublish()
 {
     _eventToPublishRepository = Substitute.For <IEventToPublishRepository>();
     _eventToPublishRepository
     .GetEventsAwaitingPublishing()
     .Returns(new List <EventToPublish> {
         _eventToPublish
     });
 }