Example #1
0
 public void MatchesPublishingTopic(string subscriptionAsString, string publishingAsString, bool isMatched)
 {
     SubscriptionTopic.From(subscriptionAsString)
     .Matches(PublishingTopic.From(publishingAsString))
     .Should()
     .Be(isMatched);
 }
 public void CanCreateTopicFromValidString(string topicAsString)
 {
     PublishingTopic.From(topicAsString);
 }
        public void CannotCreateInvalidTopic(string topicAsString)
        {
            var ex = Assert.Throws <InvalidTopicException>(() => PublishingTopic.From(topicAsString));

            Assert.NotNull(ex);
        }