public void Should_get_all_bindings_for_which_the_exchange_is_the_source() { var exchange = managementClient.GetExchanges().SingleOrDefault(x => x.Name == testExchange); if (exchange == null) { throw new ApplicationException( string.Format("Test exchange '{0}' hasn't been created", testExchange)); } var bindings = managementClient.GetBindingsWithSource(exchange); foreach (var binding in bindings) { Console.Out.WriteLine("binding.RoutingKey = {0}", binding.RoutingKey); } }