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();
        }
        public void Should_be_able_to_consume_testrun_messages()
        {
            var consumer = new RunMessageConsumer(_bus);
            var message  = new TestRunMessage(new TestRunResults("", "", false, TestRunner.NUnit, new TestResult[] { }));

            _bus.Publish <TestRunMessage>(message);
            waitForAsyncCall();
            consumer.TestRunMessageEventWasCalled.ShouldBeTrue();
        }
        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();
        }
        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();
        }