public void Only_specific_message_is_allowed()
 {
     var expected = new[] { typeof(SomethingSpecificHappenedEvent) };
     CollectionAssert.AreEquivalent(expected, QueryAllMessageTypes(Map));
 }
 public void Only_single_consumer_is_allowed()
 {
     var expected = new[] { typeof(WhenSomethingSpecificHappened) };
     CollectionAssert.AreEquivalent(expected, QueryDistinctConsumingTypes(Map));
 }