public void Process(InvalidReportReceived @event)
        {
            var invalidCaseReport = new InvalidCaseReport(@event.CaseReportId);

            invalidCaseReport.DataCollectorId     = @event.DataCollectorId;
            invalidCaseReport.Message             = @event.Message;
            invalidCaseReport.ParsingErrorMessage = @event.ErrorMessages;
            _invalidCaseReports.Save(invalidCaseReport);
        }
        public async Task Process(InvalidReportReceived @event)
        {
            var invalidCaseReport = new InvalidCaseReport(@event.CaseReportId);

            invalidCaseReport.DataCollectorId     = @event.DataCollectorId;
            invalidCaseReport.Message             = @event.Message;
            invalidCaseReport.ParsingErrorMessage = @event.ErrorMessages;
            invalidCaseReport.Timestamp           = @event.Timestamp;
            await _invalidCaseReports.Save(invalidCaseReport);
        }
        public void Process(InvalidReportReceived @event)
        {
            // Send the invalid report to the DB
            var invalidCaseReport = new InvalidCaseReport(@event.CaseReportId);

            //invalidCaseReport.TextMessageId = @event.tex
            invalidCaseReport.DataCollectorId     = @event.DataCollectorId;
            invalidCaseReport.Origin              = @event.Origin;
            invalidCaseReport.Message             = @event.Message;
            invalidCaseReport.ParsingErrorMessage = @event.ErrorMessages;
            invalidCaseReport.Timestamp           = @event.Timestamp;
            _invalidCaseReports.Save(invalidCaseReport);
        }