public void TestQueueService_DeclareQueue_ServiceChannelClosed() { Assert.That(() => { var exchange = new QueueService(ClosedChannel); var addr = new QueueAddressModel() { Name = "Test.Exchange", ExchangeName = "TEST" }; exchange.Declare(addr); }, Throws.TypeOf <ServiceException>()); }