private static void PublisherCheck(IPublishPipelineMember p) { var token = new PublishToken(new MessageA(), new[] { new MockSubscription <MessageA>(), new MockSubscription <MessageA>() }); p.LookAt(token); token.Subscriptions.OfType <MockSubscription <MessageA> >().All(s => s.Received == 1).ShouldBeTrue(); }
public EventHandlerCache(IPublishPipelineMember publisher) : base() { this.publisher = publisher; }
public void Add(IPublishPipelineMember publishPipelineMember) { _pipelineMembers.Add(publishPipelineMember); }
private static void publisherCheck(IPublishPipelineMember p) { var token = new PublishToken(new MessageA(), new[] { new MockSubscription<MessageA>(), new MockSubscription<MessageA>() }); p.LookAt(token); token.Subscriptions.OfType<MockSubscription<MessageA>>().All(s=>s.Received == 1).ShouldBeTrue(); }
public BusSetup UsePublisher(IPublishPipelineMember publisher) { this.AddService(publisher); return(this); }
public EventRef(IPublishPipelineMember publisher) { this.publisher = publisher; }