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