private void AppendMappedMeasurements(Channel channel, FieldVisitInfo fieldVisitInfo) { var config = new ConfigLoader(Appender).Load(); var dischargeActivityMapper = new DischargeActivityMapper(config, fieldVisitInfo); Appender.AddDischargeActivity(fieldVisitInfo, dischargeActivityMapper.Map(channel)); }
private void AppendMappedMeasurements(DischargeMeasurementSummary summary, FieldVisitInfo fieldVisitInfo) { var dischargeActivityMapper = new DischargeActivityMapper(Config, fieldVisitInfo); Appender.AddDischargeActivity(fieldVisitInfo, dischargeActivityMapper.Map(summary)); var calibrationsMapper = new CalibrationsMapper(fieldVisitInfo); foreach (var calibration in calibrationsMapper.Map(summary)) { Appender.AddCalibration(fieldVisitInfo, calibration); } }
private void AppendMappedMeasurements(XmlRootSummary xmlRootSummary, FieldVisitInfo fieldVisitInfo) { var dischargeActivityMapper = new DischargeActivityMapper(fieldVisitInfo); _appender.AddDischargeActivity(fieldVisitInfo, dischargeActivityMapper.Map(xmlRootSummary)); var readingsMapper = new ReadingsMapper(fieldVisitInfo); foreach (var reading in readingsMapper.Map(xmlRootSummary, dischargeActivityMapper.IsMetric)) { _appender.AddReading(fieldVisitInfo, reading); } }
public StageDischargeReadingsPlugin(IDataParser <StageDischargeReadingRecord> parser) { _parser = parser; _dischargeActivityMapper = new DischargeActivityMapper(); }