Ejemplo n.º 1
0
        public void On_blocking_message_it_should_consme_withheld_messages()
        {
            var message1 = new BlockingMessage2();
            var message2 = new BlockingMessage2();

            _bus.Publish(message1);
            _bus.Publish(message2);
            Thread.Sleep(200);
            message1.Consumed.ShouldBeTrue();
            message2.Consumed.ShouldBeTrue();
        }
Ejemplo n.º 2
0
        public void Should_remove_block_when_witheld_messages_are_published()
        {
            var message1 = new BlockingMessage2();
            var message2 = new BlockingMessage2();

            _bus.Publish(message1);
            Thread.Sleep(20);
            _bus.Publish(message2);
            waitForAsyncCall();
            message1.Consumed.ShouldBeTrue();
            message2.Consumed.ShouldBeTrue();
        }
Ejemplo n.º 3
0
 public void Should_remove_block_when_witheld_messages_are_published()
 {
     var message1 = new BlockingMessage2();
     var message2 = new BlockingMessage2();
     _bus.Publish(message1);
     Thread.Sleep(20);
     _bus.Publish(message2);
     waitForAsyncCall();
     message1.Consumed.ShouldBeTrue();
     message2.Consumed.ShouldBeTrue();
 }
Ejemplo n.º 4
0
 public void On_blocking_message_it_should_consme_withheld_messages()
 {
     var message1 = new BlockingMessage2();
     var message2 = new BlockingMessage2();
     _bus.Publish(message1);
     _bus.Publish(message2);
     Thread.Sleep(200);
     message1.Consumed.ShouldBeTrue();
     message2.Consumed.ShouldBeTrue();
 }