public void HeaderBinding() { var headersExchange = new HeadersExchange("h"); var headerKey = "headerKey"; var binding = BindingBuilder.Bind(queue).To(headersExchange).Where(headerKey).Exists(); Assert.NotNull(binding); Assert.Equal(headersExchange.ExchangeName, binding.Exchange); Assert.Equal(Binding.DestinationType.QUEUE, binding.Type); Assert.Equal(queue.QueueName, binding.Destination); Assert.Equal(string.Empty, binding.RoutingKey); }
public HeadersExchangeMapConfigurer(DestinationConfigurer destination, HeadersExchange exchange) { Destination = destination; Exchange = exchange; }
public HeadersExchangeMapConfigurer To(HeadersExchange exchange) { return(new HeadersExchangeMapConfigurer(this, exchange)); }