public void RecievingBuildMessage(BuildRunMessage runMessage) { var buildReport = runMessage.Results; var project = buildReport.Project; if (buildReport.ErrorCount > 0 || buildReport.WarningCount > 0) { if (buildReport.ErrorCount > 0) { string.Format( "Building {0} finished with {1} errors and {2} warningns", Path.GetFileName(project), buildReport.ErrorCount, buildReport.WarningCount); } else { _logger.InfoFormat( "Building {0} succeeded with {1} warnings", Path.GetFileName(project), buildReport.WarningCount); } foreach (var error in buildReport.Errors) _logger.InfoFormat("Error: {0}({1},{2}) {3}", error.File, error.LineNumber, error.LinePosition, error.ErrorMessage); foreach (var warning in buildReport.Warnings) _logger.InfoFormat("Warning: {0}({1},{2}) {3}", warning.File, warning.LineNumber, warning.LinePosition, warning.ErrorMessage); } }
public void Should_subscribe_to_build_messages() { var message = new BuildRunMessage(new BuildRunResults("")); _bus.Publish<BuildRunMessage>(message); waitForAsyncCall(); _resultMerger.HasMergedBuildResults.ShouldBeTrue(); _view.BuildRunMessage.ShouldBeTheSameAs(message); }
public void RecievingBuildMessage(BuildRunMessage message) { _syncContext.Post(m => relistFromCache(), null); }
public void RecievingBuildMessage(BuildRunMessage message) { _onCacheUpdate.Invoke(_resultsCache); }
public BuildMessageEventArgs(BuildRunMessage runMessage) { Message = runMessage; }
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(); }
public void RecievingBuildMessage(BuildRunMessage runMessage) { _buildRunMessage = runMessage; }