public void AsynchronousRestriction_AsynchronousHandler()
        {
            PublisherWithAsynchronousRestriction p = new PublisherWithAsynchronousRestriction();
            SubscriberWithAsynchronousHandler async = new SubscriberWithAsynchronousHandler();

            this.testee.Register(p);
            this.testee.Register(async);
        }
        public void AsynchronousRestriction_SynchronousHandler()
        {
            PublisherWithAsynchronousRestriction p = new PublisherWithAsynchronousRestriction();
            SubscriberWithSynchronousHandler sync = new SubscriberWithSynchronousHandler();

            this.testee.Register(p);

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