Exemple #1
0
        public void Reset_Subscriptions_ClearsSubscriptions()
        {
            _inMemorySubscriberStore.AddSubscriber("topic", "sub");
            _inMemorySubscriberStore.Reset();

            Assert.That(_inMemorySubscriberStore.GetSubscribers("topic"), Is.Empty);
        }
 /// <summary>
 /// Gets all destination addresses for the given topic
 /// </summary>
 public async Task <string[]> GetSubscriberAddresses(string topic)
 {
     if (topic == null)
     {
         throw new ArgumentNullException(nameof(topic), "Please remember to specify a topic when getting subscribers for it");
     }
     return(_subscriberStore.GetSubscribers(topic));
 }