/// <summary> /// Creates the map data. /// </summary> protected virtual void CreateMapData() { hydraulicBoundaryLocationsMapLayer = new HydraulicBoundaryLocationsMapLayer(AssessmentSection); MapDataCollection = new MapDataCollection(PipingDataResources.PipingFailureMechanism_DisplayName); referenceLineMapData = RiskeerMapDataFactory.CreateReferenceLineMapData(); stochasticSoilModelsMapData = RiskeerMapDataFactory.CreateStochasticSoilModelsMapData(); surfaceLinesMapData = RiskeerMapDataFactory.CreateSurfaceLinesMapData(); semiProbabilisticCalculationsMapData = PipingMapDataFactory.CreateSemiProbabilisticCalculationsMapData(); probabilisticCalculationsMapData = PipingMapDataFactory.CreateProbabilisticCalculationsMapData(); MapDataCollection sectionsMapDataCollection = RiskeerMapDataFactory.CreateSectionsMapDataCollection(); sectionsMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); sectionsStartPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsStartPointMapData(); sectionsEndPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData(); MapDataCollection.Add(referenceLineMapData); MapDataCollection.Add(stochasticSoilModelsMapData); MapDataCollection.Add(surfaceLinesMapData); sectionsMapDataCollection.Add(sectionsMapData); sectionsMapDataCollection.Add(sectionsStartPointMapData); sectionsMapDataCollection.Add(sectionsEndPointMapData); MapDataCollection.Add(sectionsMapDataCollection); MapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData); MapDataCollection.Add(probabilisticCalculationsMapData); MapDataCollection.Add(semiProbabilisticCalculationsMapData); }
public void CreateStochasticSoilModelsMapData_ReturnsEmptyMapLineDataWithExpectedStyling() { // Call MapLineData data = RiskeerMapDataFactory.CreateStochasticSoilModelsMapData(); // Assert CollectionAssert.IsEmpty(data.Features); Assert.AreEqual("Stochastische ondergrondmodellen", data.Name); RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.FromArgb(70, Color.SaddleBrown), 5, LineDashStyle.Solid); Assert.AreEqual("Naam", data.SelectedMetaDataAttribute); }
/// <summary> /// Creates the map data. /// </summary> protected virtual void CreateMapData() { hydraulicBoundaryLocationsMapLayer = new HydraulicBoundaryLocationsMapLayer(AssessmentSection); MapDataCollection = new MapDataCollection(MacroStabilityInwardsDataResources.MacroStabilityInwardsFailureMechanism_DisplayName); referenceLineMapData = RiskeerMapDataFactory.CreateReferenceLineMapData(); stochasticSoilModelsMapData = RiskeerMapDataFactory.CreateStochasticSoilModelsMapData(); surfaceLinesMapData = RiskeerMapDataFactory.CreateSurfaceLinesMapData(); calculationsMapData = RiskeerMapDataFactory.CreateCalculationsMapData(); MapDataCollection.Add(referenceLineMapData); MapDataCollection.Add(stochasticSoilModelsMapData); MapDataCollection.Add(surfaceLinesMapData); MapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData); MapDataCollection.Add(calculationsMapData); }