Example #1
0
        public void PublicationsOnInterfaceAreRecognized()
        {
            IPublisher p = new PublisherImplementingInterface();
            SubscriberWithEventSubscription s = new SubscriberWithEventSubscription();

            this.eventbroker.Register(p);
            this.eventbroker.Register(s);

            p.FireEvent();

            Assert.IsTrue(s.Called);
        }
        public void PublicationsOnInterfaceAreRecognized()
        {
            IPublisher p = new PublisherImplementingInterface();
            SubscriberWithEventSubscription s = new SubscriberWithEventSubscription();

            this.eventbroker.Register(p);
            this.eventbroker.Register(s);

            p.FireEvent();

            Assert.IsTrue(s.Called);
        }