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); }
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)); }