public void CreateForeshoreProfileMapData_ReturnsEmptyMapLineDataWithExpectedStyling() { // Call MapLineData data = RiskeerMapDataFactory.CreateForeshoreProfileMapData(); // Assert CollectionAssert.IsEmpty(data.Features); Assert.AreEqual("Voorlandprofielen", data.Name); RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.DarkOrange, 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(WaveImpactAsphaltCoverDataResources.WaveImpactAsphaltCoverFailureMechanism_DisplayName); referenceLineMapData = RiskeerMapDataFactory.CreateReferenceLineMapData(); foreshoreProfilesMapData = RiskeerMapDataFactory.CreateForeshoreProfileMapData(); calculationsMapData = RiskeerMapDataFactory.CreateCalculationsMapData(); MapDataCollection.Add(referenceLineMapData); MapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData); MapDataCollection.Add(foreshoreProfilesMapData); MapDataCollection.Add(calculationsMapData); }
protected virtual void CreateMapData() { hydraulicBoundaryLocationsMapLayer = new HydraulicBoundaryLocationsMapLayer(AssessmentSection); MapDataCollection = new MapDataCollection(StabilityPointStructuresDataResources.StabilityPointStructuresFailureMechanism_DisplayName); referenceLineMapData = RiskeerMapDataFactory.CreateReferenceLineMapData(); foreshoreProfilesMapData = RiskeerMapDataFactory.CreateForeshoreProfileMapData(); calculationsMapData = RiskeerMapDataFactory.CreateCalculationsMapData(); structuresMapData = RiskeerMapDataFactory.CreateStructuresMapData(); MapDataCollection.Add(referenceLineMapData); MapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData); MapDataCollection.Add(foreshoreProfilesMapData); MapDataCollection.Add(structuresMapData); MapDataCollection.Add(calculationsMapData); }
/// <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); }