Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryLocationsWriter.cs =================================================================== diff -u -ra0eac32f05f503713d027f116b0194040418ceb2 -r3d27194c4194dd405ab3471818957a64a59a0f19 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryLocationsWriter.cs (.../HydraulicBoundaryLocationsWriter.cs) (revision a0eac32f05f503713d027f116b0194040418ceb2) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryLocationsWriter.cs (.../HydraulicBoundaryLocationsWriter.cs) (revision 3d27194c4194dd405ab3471818957a64a59a0f19) @@ -39,21 +39,30 @@ public class HydraulicBoundaryLocationsWriter { private readonly string designWaterLevelName; + private readonly string waveHeightName; /// /// Creates a new instance of . /// /// The Dutch name of the content of the /// property. - /// Thrown when is null. - public HydraulicBoundaryLocationsWriter(string designWaterLevelName) + /// The Dutch name of the content of the + /// property. + /// Thrown when or + /// is null. + public HydraulicBoundaryLocationsWriter(string designWaterLevelName, string waveHeightName) { if (designWaterLevelName == null) { throw new ArgumentNullException("designWaterLevelName"); } + if (waveHeightName == null) + { + throw new ArgumentNullException("waveHeightName"); + } this.designWaterLevelName = designWaterLevelName; + this.waveHeightName = waveHeightName; } /// @@ -111,7 +120,7 @@ mapFeature.MetaData.Add(Resources.HydraulicBoundaryLocation_Name, hydraulicBoundaryLocation.Name); mapFeature.MetaData.Add(Resources.HydraulicBoundaryLocation_Id, hydraulicBoundaryLocation.Id); mapFeature.MetaData.Add(designWaterLevelName, hydraulicBoundaryLocation.DesignWaterLevel.Value); - mapFeature.MetaData.Add(Resources.HydraulicBoundaryLocation_WaveHeight, hydraulicBoundaryLocation.WaveHeight.Value); + mapFeature.MetaData.Add(waveHeightName, hydraulicBoundaryLocation.WaveHeight.Value); return new MapPointData(hydraulicBoundaryLocation.Name) {