public exchange_queue_binding_model_setup_and_teardown_smoke_tests() { theTransport.ConnectionFactory.HostName = "localhost"; theTransport.DeclareExchange("direct1", exchange => { exchange.IsDurable = true; exchange.ExchangeType = ExchangeType.Direct; }); theTransport.DeclareExchange("fan1", exchange => { exchange.ExchangeType = ExchangeType.Fanout; }); theTransport.DeclareQueue("queue1"); theTransport.DeclareQueue("queue2"); theTransport.DeclareBinding(new Binding { ExchangeName = "direct1", QueueName = "queue1", BindingKey = "key1" }); theTransport.DeclareBinding(new Binding { ExchangeName = "fan1", QueueName = "queue2", BindingKey = "key2" }); }