Exemplo n.º 1
0
 public void Should_be_able_to_consume_warning_messages()
 {
     var consumer = new InformationMessageConsumer(_bus);
     var message = new WarningMessage("some warning");
     _bus.Publish(message);
     waitForAsyncCall();
     consumer.WarningMessageEventWasCalled.ShouldBeTrue();
 }
Exemplo n.º 2
0
 public void Should_be_able_to_consume_error_messages()
 {
     // Remove error message override made in setup function
     _bus.OnErrorMessage -= _bus_OnErrorMessage;
     var consumer = new InformationMessageConsumer(_bus);
     var message = new ErrorMessage("some error");
     _bus.Publish(message);
     waitForAsyncCall();
     consumer.ErrorMessageEventCalled.ShouldBeTrue();
 }
Exemplo n.º 3
0
        public void Should_be_able_to_consume_information_message()
        {
            var consumer = new InformationMessageConsumer(_bus);
            var message = new InformationMessage("");
            _bus.Publish<InformationMessage>(message);
            waitForAsyncCall();
            consumer.InformationMessageEventWasCalled.ShouldBeTrue();

        }