Пример #1
0
        public void routing_with_topic_routed_by_topic_name_rule(string topicName, string uriString)
        {
            using (var host = JasperHost.For <TopicSendingApp>())
            {
                var router = host.Get <IEnvelopeRouter>();

                var message = new NumberMessage
                {
                    Topic = topicName
                };

                router.RouteOutgoingByMessage(message)
                .Single()
                .Destination
                .ShouldBe(uriString.ToUri());
            }
        }
Пример #2
0
 public void Handle(NumberMessage message)
 {
 }