public Publisher(IPublisherBehavior publisher, params IBehavior <IPublisherMessageBatching>[] behaviors) { _behavior = AggregateBehavior <IPublisherMessageBatching> .Create(new PublisherBehaviorWrapper(publisher), behaviors); _observers = new HashSet <IObserver <IPublisherMessageBatching> >(); }
public RabbitMqPublisherTests(ConnectionFixture connectionFixture) { _publisher = new RabbitMqPublisher(connectionFixture.GetConnectionFactory(out _connectionMock, out _channelMock)); }
public PublisherBehaviorWrapper(IPublisherBehavior publisher) { _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher)); }