Example #1
0
        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();
        }
Example #2
0
 public EventHandlerCache(IPublishPipelineMember publisher) : base()
 {
     this.publisher = publisher;
 }
Example #3
0
 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();
 }
Example #5
0
 public void Add(IPublishPipelineMember publishPipelineMember)
 {
     _pipelineMembers.Add(publishPipelineMember);
 }
Example #6
0
 public BusSetup UsePublisher(IPublishPipelineMember publisher)
 {
     this.AddService(publisher);
     return(this);
 }
Example #7
0
File: Bus.cs Project: xamele0n/Mbus
 public EventRef(IPublishPipelineMember publisher)
 {
     this.publisher = publisher;
 }