public void CreateHydraulicBoundaryLocationsMapData_ReturnsEmptyMapPointDataWithExpectedStyling() { // Call MapPointData data = RiskeerMapDataFactory.CreateHydraulicBoundaryLocationsMapData(); // Assert CollectionAssert.IsEmpty(data.Features); Assert.AreEqual("Hydraulische belastingen", data.Name); Assert.IsTrue(data.ShowLabels); RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.DarkBlue, 6, PointSymbol.Circle); Assert.AreEqual("Naam", data.SelectedMetaDataAttribute); }
/// <summary> /// Creates a new instance of <see cref="DuneErosionLocationsMapLayer"/>. /// </summary> /// <param name="failureMechanism">The <see cref="DuneErosionFailureMechanism"/> /// to get the data from.</param> /// <exception cref="ArgumentNullException">Thrown when <paramref name="failureMechanism"/> /// is <c>null</c>.</exception> public DuneErosionLocationsMapLayer(DuneErosionFailureMechanism failureMechanism) { if (failureMechanism == null) { throw new ArgumentNullException(nameof(failureMechanism)); } this.failureMechanism = failureMechanism; CreateObservers(); MapData = RiskeerMapDataFactory.CreateHydraulicBoundaryLocationsMapData(); currentMetaDataItemsLookups = new Dictionary <DuneLocationCalculationsForTargetProbability, MetaDataItemsLookup>(); SetFeatures(); }
/// <summary> /// Creates a new instance of <see cref="HydraulicBoundaryLocationsMapLayer"/>. /// </summary> /// <param name="assessmentSection">The <see cref="IAssessmentSection"/> to get the data from.</param> /// <exception cref="ArgumentNullException">Thrown when <paramref name="assessmentSection"/> /// is <c>null</c>.</exception> public HydraulicBoundaryLocationsMapLayer(IAssessmentSection assessmentSection) { if (assessmentSection == null) { throw new ArgumentNullException(nameof(assessmentSection)); } this.assessmentSection = assessmentSection; CreateObservers(); MapData = RiskeerMapDataFactory.CreateHydraulicBoundaryLocationsMapData(); currentMetaDataItems = new Dictionary <IObservableEnumerable <HydraulicBoundaryLocationCalculation>, string>(); SetFeatures(); }