public void AddSubscriberTest() { PubSubService ps = new PubSubService(); NewsSubscriber ns = new NewsSubscriber(); ps.AddSubscriber("Topic", ns); Assert.IsTrue(ps.subscribersTopicMap["Topic"].Contains(ns)); }
public void AddSubscriberTest() { PubSubService ps = new PubSubService(); NewsSubscriber ns = new NewsSubscriber(); ps.AddSubscriber("Topic", ns); Assert.IsTrue(ps.subscribersTopicMap["Topic"].Contains(ns)); }