public void GetVerticals_AddCommentsIfCosineVerticalFactorIsNot1()
        {
            _parsedData.VerticalObservations[1].ObservationPoints[0].CosineVerticalFactor = 0.85;
            var verticals = new VerticalMapper(_parsedData, _visitInterval.Start).GetVerticals().ToList();

            Assert.That(verticals[1].Comments, Contains.Substring(CommonMapper.CosVfEquals));
        }
        public void GetVerticals_AddCommentsOnWallOrBottomMeasurements(string indicator, string expectedComment)
        {
            _parsedData.VerticalObservations[1].ObservationPoints[0].ObsLocationIndicator = indicator;
            var verticals = new VerticalMapper(_parsedData, _visitInterval.Start).GetVerticals().ToList();

            Assert.That(verticals[1].Comments, Contains.Substring(expectedComment));
        }
        private static DischargeActivityMapper CreateDischargeActivityMapper()
        {
            var meterCalibrationMapper = new MeterCalibrationMapper();
            var verticalMapper         = new VerticalMapper(meterCalibrationMapper);
            var pointVelocityMapper    = new PointVelocityMapper(verticalMapper);

            return(new DischargeActivityMapper(pointVelocityMapper));
        }
        public void SetUp()
        {
            SetupAutoFixture();
            SetUpMeterCalibrationMapper();

            _gaugingSummaryItem = _fixture.Create <GaugingSummaryItem>();
            _deploymentMethod   = _fixture.Create <DeploymentMethodType>();

            _verticalMapper = new VerticalMapper(_meterCalibrationMapper);
        }
        public void GetVerticals_SetsEquationsToCalibration(double c1, double c2, double c3, double c4,
                                                            int expectedEquationCount)
        {
            _parsedData.MeterConst1 = c1;
            _parsedData.MeterConst2 = c2;
            _parsedData.MeterConst3 = c3;
            _parsedData.MeterConst4 = c4;

            var verticals = new VerticalMapper(_parsedData, _visitInterval.Start).GetVerticals().ToList();

            var equations = verticals.First().VelocityObservation.MeterCalibration.Equations;

            Assert.That(equations.Count, Is.EqualTo(expectedEquationCount));
            Assert.That(equations.First().Slope, Is.EqualTo(c1));
            Assert.That(equations.First().Intercept, Is.EqualTo(c2));
            Assert.That(equations.First().InterceptUnitId, Is.EqualTo("ft/s"));
        }