Пример #1
0
 public void Should_be_able_to_consume_run_information_messages()
 {
     var consumer = new RunMessageConsumer(_bus);
     var message = new RunInformationMessage(InformationType.Build, "", "", "".GetType());
     _bus.Publish(message);
     waitForAsyncCall();
     consumer.RunInformationMessageEventCalled.ShouldBeTrue();
 }
Пример #2
0
 public void Should_be_able_to_consume_testrun_messages()
 {
     var consumer = new RunMessageConsumer(_bus);
     var message = new TestRunMessage(new TestRunResults("", "", false, new TestResult[] {}));
     _bus.Publish<TestRunMessage>(message);
     waitForAsyncCall();
     consumer.TestRunMessageEventWasCalled.ShouldBeTrue();
 }
Пример #3
0
 public void Should_be_able_to_consume_run_finished_messages()
 {
     var consumer = new RunMessageConsumer(_bus);
     var message = new RunFinishedMessage(null);
     _bus.Publish(message);
     waitForAsyncCall();
     consumer.RunFinishedMessageEventWasCalled.ShouldBeTrue();
 }
Пример #4
0
 public void Should_be_able_to_consume_build_messages()
 {
     var consumer = new RunMessageConsumer(_bus);
     var message = new BuildRunMessage(new BuildRunResults(""));
     _bus.Publish<BuildRunMessage>(message);
     waitForAsyncCall();
     consumer.BuildMessageEventWasCalled.ShouldBeTrue();
 }