public void It_should_have_declared_queues_with_name() { _queuesDeclared.Should().Contain() .One(frame => frame.Message.Queue.Equals(QueueName.From("queue0"))); _queuesDeclared.Should().Contain() .One(frame => frame.Message.Queue.Equals(QueueName.From("queue1"))); }
public void It_should_have_bound_queues_to_exchanges() { _queuesBound.Should().Contain() .One(frame => frame.Message.Queue.Equals(QueueName.From("queue0")) && frame.Message.Exchange.Equals(ExchangeName.From("myExchange0")) && frame.Message.RoutingKey.Equals(Shortstr.From("routing0"))); _queuesBound.Should().Contain() .One(frame => frame.Message.Queue.Equals(QueueName.From("queue1")) && frame.Message.Exchange.Equals(ExchangeName.From("myExchange1")) && frame.Message.RoutingKey.Equals(Shortstr.From("routing1"))); }
public void It_should_have_starting_consuming_messages_from_queues() { _basicConsumes.Should().Contain.One(frame => frame.Message.Queue.Equals(QueueName.From("queue0"))); _basicConsumes.Should().Contain.One(frame => frame.Message.Queue.Equals(QueueName.From("queue1"))); }