public void SynchronousRestriction_SynchronousHandler()
        {
            PublisherWithSynchronousRestriction p = new PublisherWithSynchronousRestriction();
            SubscriberWithSynchronousHandler sync = new SubscriberWithSynchronousHandler();

            this.testee.Register(p);
            this.testee.Register(sync);
        }
示例#2
0
        public void SynchronousRestriction_SynchronousHandler()
        {
            PublisherWithSynchronousRestriction p    = new PublisherWithSynchronousRestriction();
            SubscriberWithSynchronousHandler    sync = new SubscriberWithSynchronousHandler();

            this.testee.Register(p);
            this.testee.Register(sync);
        }
 public void NoRestriction()
 {
     PublisherWithoutRestriction p = new PublisherWithoutRestriction();
     SubscriberWithSynchronousHandler sync = new SubscriberWithSynchronousHandler();
     SubscriberWithAsynchronousHandler asyncHandler = new SubscriberWithAsynchronousHandler();
     
     this.testee.Register(p);
     this.testee.Register(sync);
     this.testee.Register(asyncHandler);
 }
示例#4
0
        public void NoRestriction()
        {
            PublisherWithoutRestriction       p            = new PublisherWithoutRestriction();
            SubscriberWithSynchronousHandler  sync         = new SubscriberWithSynchronousHandler();
            SubscriberWithAsynchronousHandler asyncHandler = new SubscriberWithAsynchronousHandler();

            this.testee.Register(p);
            this.testee.Register(sync);
            this.testee.Register(asyncHandler);
        }
示例#5
0
        public void AsynchronousRestriction_SynchronousHandler()
        {
            PublisherWithAsynchronousRestriction p    = new PublisherWithAsynchronousRestriction();
            SubscriberWithSynchronousHandler     sync = new SubscriberWithSynchronousHandler();

            this.testee.Register(p);

            Assert.Throws <EventTopicException>(
                () => this.testee.Register(sync));
        }
        public void AsynchronousRestriction_SynchronousHandler()
        {
            PublisherWithAsynchronousRestriction p = new PublisherWithAsynchronousRestriction();
            SubscriberWithSynchronousHandler sync = new SubscriberWithSynchronousHandler();

            this.testee.Register(p);

            Assert.Throws<EventTopicException>(
                () => this.testee.Register(sync));
        }