public void UpdateDikeGeometryChartDataName_DikeProfileNull_NameSetToDefaultName()
        {
            // Setup
            var chartData = new ChartLineData("test name");

            // Call
            GrassCoverErosionInwardsChartDataFactory.UpdateDikeGeometryChartDataName(chartData, null);

            // Assert
            Assert.AreEqual("Dijkprofiel", chartData.Name);
        }
        private void SetChartData()
        {
            GrassCoverErosionInwardsInput input = data.InputParameters;
            DikeProfile dikeProfile             = input.DikeProfile;

            GrassCoverErosionInwardsChartDataFactory.UpdateForeshoreGeometryChartDataName(foreshoreChartData, input);
            GrassCoverErosionInwardsChartDataFactory.UpdateDikeGeometryChartDataName(dikeGeometryChartData, dikeProfile);

            foreshoreChartData.Points    = GrassCoverErosionInwardsChartDataPointsFactory.CreateForeshoreGeometryPoints(input);
            dikeGeometryChartData.Points = GrassCoverErosionInwardsChartDataPointsFactory.CreateDikeGeometryPoints(dikeProfile);
            dikeHeightChartData.Points   = GrassCoverErosionInwardsChartDataPointsFactory.CreateDikeHeightPoints(input);
        }
        public void UpdateDikeGeometryChartDataName_DikeProfile_NameSetToDikeProfileName()
        {
            // Setup
            var         chartData   = new ChartLineData("test name");
            DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile("dike profile name");

            // Call
            GrassCoverErosionInwardsChartDataFactory.UpdateDikeGeometryChartDataName(chartData, dikeProfile);

            // Assert
            string expectedName = $"{dikeProfile.Name} - Dijkprofiel";

            Assert.AreEqual(expectedName, chartData.Name);
        }