public OutboxToMessageBusPublisher(IEventToPublishRepository eventToPublishRepository,
                                    IBusControl busControl,
                                    IEventToPublishSerializer eventToPublishSerializer)
 {
     _eventToPublishRepository = eventToPublishRepository;
     _busControl = busControl;
     _eventToPublishSerializer = eventToPublishSerializer;
 }
Example #2
0
 private void SetupEventToPublishSerializer()
 {
     _eventToPublishSerializer = Substitute.For <IEventToPublishSerializer>();
     _eventToPublishSerializer.Deserialize(_eventToPublish).Returns(_event);
 }