public void CreateSurfaceLinePoints_SurfaceLineNull_ReturnsEmptyPointsArray()
        {
            // Call
            Point2D[] points = PipingChartDataPointsFactory.CreateSurfaceLinePoints(null);

            // Assert
            CollectionAssert.IsEmpty(points);
        }
        public void CreateSurfaceLinePoints_GivenSurfaceLine_ReturnsSurfaceLinePointsArray()
        {
            // Setup
            PipingSurfaceLine surfaceLine = GetSurfaceLineWithGeometry();

            // Call
            Point2D[] points = PipingChartDataPointsFactory.CreateSurfaceLinePoints(surfaceLine);

            // Assert
            AssertEqualPointCollections(surfaceLine.LocalGeometry, points);
        }
Пример #3
0
        private void SetChartData()
        {
            PipingInput       pipingInput = data.InputParameters;
            PipingSurfaceLine surfaceLine = data.InputParameters.SurfaceLine;

            PipingChartDataFactory.UpdateSurfaceLineChartDataName(surfaceLineChartData, surfaceLine);

            surfaceLineChartData.Points           = PipingChartDataPointsFactory.CreateSurfaceLinePoints(surfaceLine);
            ditchPolderSideChartData.Points       = PipingChartDataPointsFactory.CreateDitchPolderSidePoint(surfaceLine);
            bottomDitchPolderSideChartData.Points = PipingChartDataPointsFactory.CreateBottomDitchPolderSidePoint(surfaceLine);
            bottomDitchDikeSideChartData.Points   = PipingChartDataPointsFactory.CreateBottomDitchDikeSidePoint(surfaceLine);
            ditchDikeSideChartData.Points         = PipingChartDataPointsFactory.CreateDitchDikeSidePoint(surfaceLine);
            dikeToeAtPolderChartData.Points       = PipingChartDataPointsFactory.CreateDikeToeAtPolderPoint(surfaceLine);
            dikeToeAtRiverChartData.Points        = PipingChartDataPointsFactory.CreateDikeToeAtRiverPoint(surfaceLine);
            exitPointChartData.Points             = PipingChartDataPointsFactory.CreateExitPointPoint(pipingInput);
            entryPointChartData.Points            = PipingChartDataPointsFactory.CreateEntryPointPoint(pipingInput);

            SetSoilProfileChartData();
        }