public void TopicBinding() { var topicExchange = new TopicExchange("t"); var routingKey = "r"; var binding = BindingBuilder.Bind(queue).To(topicExchange).With(routingKey); Assert.NotNull(binding); Assert.Equal(topicExchange.ExchangeName, binding.Exchange); Assert.Equal(Binding.DestinationType.QUEUE, binding.Type); Assert.Equal(queue.QueueName, binding.Destination); Assert.Equal(routingKey, binding.RoutingKey); }
public TopicExchangeRoutingKeyConfigurer To(TopicExchange exchange) { return(new TopicExchangeRoutingKeyConfigurer(this, exchange)); }
public TopicExchangeRoutingKeyConfigurer(DestinationConfigurer destination, TopicExchange exchange) : base(destination, exchange.ExchangeName) { }