示例#1
0
        public void TestLazyConsumerCount()
        {
            var container = new TestSimpleMessageListenerContainer(new SingleConnectionFactory());

            container.Start();
            var concurrentConsumersField = typeof(SimpleMessageListenerContainer).GetField("concurrentConsumers", BindingFlags.NonPublic | BindingFlags.Instance);

            Assert.AreEqual(1, concurrentConsumersField.GetValue(container));
        }
 public void TestLazyConsumerCount()
 {
     var container = new TestSimpleMessageListenerContainer(new SingleConnectionFactory());
     container.Start();
     var concurrentConsumersField = typeof(SimpleMessageListenerContainer).GetField("concurrentConsumers", BindingFlags.NonPublic | BindingFlags.Instance);
     Assert.AreEqual(1, concurrentConsumersField.GetValue(container));
 }