// End Stub Helpers public IRabbitQueue DeclareQueue(string name, QueueOptions options) { EnsureNotDisposed(); var queue = new StubRabbitQueue(name, options); _queuesDeclared.Add(queue); return queue; }
IRabbitQueueBinding IRabbitChannelInternal.BindInternal(bool nowait, string queue, string exchange, string routingKeyOrFilter) { EnsureNotDisposed(); var ex = new StubRabbitExchange(exchange, new ExchangeOptions()); var q = new StubRabbitQueue(queue, new QueueOptions()); return nowait ? this.BindNoWait(ex, q, routingKeyOrFilter) : this.Bind(ex, q, routingKeyOrFilter); }