Esempio n. 1
0
        public void CreateDikeProfileMapData_ReturnsEmptyMapLineDataWithExpectedStyling()
        {
            // Call
            MapLineData data = RiskeerMapDataFactory.CreateDikeProfileMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Dijkprofielen", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.SaddleBrown, 2, LineDashStyle.Solid);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
        /// <summary>
        /// Creates the map data.
        /// </summary>
        protected virtual void CreateMapData()
        {
            hydraulicBoundaryLocationsMapLayer = new HydraulicBoundaryLocationsMapLayer(AssessmentSection);

            MapDataCollection        = new MapDataCollection(GrassCoverErosionInwardsDataResources.GrassCoverErosionInwardsFailureMechanism_DisplayName);
            referenceLineMapData     = RiskeerMapDataFactory.CreateReferenceLineMapData();
            dikeProfilesMapData      = RiskeerMapDataFactory.CreateDikeProfileMapData();
            foreshoreProfilesMapData = RiskeerMapDataFactory.CreateForeshoreProfileMapData();
            calculationsMapData      = RiskeerMapDataFactory.CreateCalculationsMapData();

            MapDataCollection.Add(referenceLineMapData);
            MapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData);
            MapDataCollection.Add(dikeProfilesMapData);
            MapDataCollection.Add(foreshoreProfilesMapData);
            MapDataCollection.Add(calculationsMapData);
        }