public void Get_1_Subscribers_WithFakeProvider()
 {
     var pubsub = new PublishSubscribeChannel<User>(new StubIStoreProvider<User>())
      .AddSubscriberType(typeof(TestSubscriberZZZ<User>)).WithTimeToExpire(new TimeSpan(0, 1, 0));
     var Subscribers = pubsub.GetSubscriptions();
     Assert.IsInstanceOfType(Subscribers[0], typeof(TestSubscriberZZZ<User>));
     Assert.AreEqual(Subscribers[0].Name, "TestSubscriberZZZ`1");
     Assert.AreEqual(Subscribers[0].TimeToExpire, new TimeSpan(0, 1, 0));
     Assert.IsTrue(Subscribers.Count == 1);
 }
 public void PublishSubscribeChannelConstructor_WithFakeProvider()
 {
     var pubsub = new PublishSubscribeChannel<User>(new StubIStoreProvider<User>())
         .AddSubscriberType(typeof(TestSubscriberZZZ<User>)).WithTimeToExpire(new TimeSpan(0, 1, 0));
     Assert.IsInstanceOfType(pubsub, typeof(PublishSubscribeChannel<User>));
     Assert.IsInstanceOfType(pubsub.GetSubscriptions()[0], typeof(ISubscriber<User>));
 }