private void RaiseWarningAddedEvent(long lineNumber, string line, string fullText) { var args = BuildWarningAddedEventArgs(lineNumber, line, fullText); var timestampAddedEvent = new WarningAdded(args); TokenEvents.Raise(timestampAddedEvent); }
private void AddWarningToWarningByProjectSummaryReport(WarningAdded warningAddedEvent) { var report = WarningByProjectSummaryReport; var reportArgs = GenerateWarningByProjectSummaryReportArgs(warningAddedEvent); report.AddDataRow(reportArgs); }
private WarningSummaryReportArgs GenerateWarningSummaryReportArgs(WarningAdded warningAddedEvent) { var reportArgs = new WarningSummaryReportArgs { WarningName = warningAddedEvent.WarningName }; return(reportArgs); }
public void Handle(WarningAdded tokenEvent) { var newEventInfo = new TestEventInformation { EventName = "WarningAdded", TokenEvent = tokenEvent }; _Events.Add(newEventInfo); }
private WarningByProjectSummaryReportArgs GenerateWarningByProjectSummaryReportArgs(WarningAdded warningAddedEvent) { var reportArgs = new WarningByProjectSummaryReportArgs { ProjectName = CurrentProject, WarningName = warningAddedEvent.WarningName }; return(reportArgs); }
public void Handle(WarningAdded tokenEvent) { AddWarningToWarningSummaryReport(tokenEvent); AddWarningToWarningByProjectSummaryReport(tokenEvent); }