コード例 #1
0
 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")));
 }
コード例 #2
0
            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")));
            }
コード例 #3
0
 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")));
 }