private void AddMeanGageHeight(DischargeActivity dischargeActivity, decimal stage, UnitSystem unitSystem)
        {
            var measurement           = new Measurement(stage.AsDouble(), unitSystem.DistanceUnitId);
            var gageHeightMeasurement = new GageHeightMeasurement(measurement, _fieldVisitInfo.StartDate);

            dischargeActivity.GageHeightMeasurements.Add(gageHeightMeasurement);
        }
Example #2
0
        private void AddMeanGageHeight(DischargeActivity dischargeActivity, double?stage, DateTimeOffset time, UnitSystem unitSystem)
        {
            if (!stage.HasValue)
            {
                return;
            }

            var measurement           = new Measurement(stage.Value, unitSystem.DistanceUnitId);
            var gageHeightMeasurement = new GageHeightMeasurement(measurement, time);

            dischargeActivity.GageHeightMeasurements.Add(gageHeightMeasurement);
        }