Esempio n. 1
0
        private void RaiseWarningAddedEvent(long lineNumber, string line, string fullText)
        {
            var args = BuildWarningAddedEventArgs(lineNumber, line, fullText);
            var timestampAddedEvent = new WarningAdded(args);

            TokenEvents.Raise(timestampAddedEvent);
        }
Esempio n. 2
0
        private void AddWarningToWarningByProjectSummaryReport(WarningAdded warningAddedEvent)
        {
            var report     = WarningByProjectSummaryReport;
            var reportArgs = GenerateWarningByProjectSummaryReportArgs(warningAddedEvent);

            report.AddDataRow(reportArgs);
        }
Esempio n. 3
0
        private WarningSummaryReportArgs GenerateWarningSummaryReportArgs(WarningAdded warningAddedEvent)
        {
            var reportArgs = new WarningSummaryReportArgs
            {
                WarningName = warningAddedEvent.WarningName
            };

            return(reportArgs);
        }
Esempio n. 4
0
        public void Handle(WarningAdded tokenEvent)
        {
            var newEventInfo = new TestEventInformation
            {
                EventName  = "WarningAdded",
                TokenEvent = tokenEvent
            };

            _Events.Add(newEventInfo);
        }
Esempio n. 5
0
        private WarningByProjectSummaryReportArgs GenerateWarningByProjectSummaryReportArgs(WarningAdded warningAddedEvent)
        {
            var reportArgs = new WarningByProjectSummaryReportArgs
            {
                ProjectName = CurrentProject,
                WarningName = warningAddedEvent.WarningName
            };

            return(reportArgs);
        }
Esempio n. 6
0
 public void Handle(WarningAdded tokenEvent)
 {
     AddWarningToWarningSummaryReport(tokenEvent);
     AddWarningToWarningByProjectSummaryReport(tokenEvent);
 }