public void TestInitialize() { _ev = new ManualResetEvent(false); const string clientAddress = "amqp://localhost/amq.direct?routingKey=NoSuchRoute"; _binding = new RabbitMQBinding { OneWayOnly = true, ApplicationId = "MyApp", Mandatory = true }; _channelFactory = _binding.BuildChannelFactory<IOutputChannel>(this); _channelFactory.Open(); _outputChannel = _channelFactory.CreateChannel(new EndpointAddress(clientAddress)) as RabbitMQTransportOutputChannel; _outputChannel.Open(); }