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