Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsHydraulicBoundaryLocation.cs
===================================================================
diff -u -r4f5e140bd0d2891988a862ff4c5749a7991a12b0 -r29da56189cadeccce7975ea121af33d647021398
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsHydraulicBoundaryLocation.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocation.cs) (revision 4f5e140bd0d2891988a862ff4c5749a7991a12b0)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsHydraulicBoundaryLocation.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocation.cs) (revision 29da56189cadeccce7975ea121af33d647021398)
@@ -54,9 +54,6 @@
waveHeight = new RoundedDouble(2, double.NaN);
}
- ///
- /// Gets or sets the design water level of .
- ///
public RoundedDouble DesignWaterLevel
{
get
@@ -69,14 +66,8 @@
}
}
- ///
- /// Gets or sets the convergence status of the design water level calculation.
- ///
public CalculationConvergence DesignWaterLevelCalculationConvergence { get; set; }
- ///
- /// Gets or sets the wave height of .
- ///
public RoundedDouble WaveHeight
{
get
@@ -89,9 +80,6 @@
}
}
- ///
- /// Gets or sets the convergence status of the wave height calculation.
- ///
public CalculationConvergence WaveHeightCalculationConvergence { get; set; }
public long Id
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs
===================================================================
diff -u
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs (revision 0)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs (revision 29da56189cadeccce7975ea121af33d647021398)
@@ -0,0 +1,64 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Linq;
+using Core.Common.Base;
+using Core.Common.Gui.Plugin;
+using Core.Common.Gui.TestUtil;
+using NUnit.Framework;
+using Rhino.Mocks;
+using Ringtoets.Common.Data.AssessmentSection;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+using Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects;
+using Ringtoets.GrassCoverErosionOutwards.Plugin;
+
+namespace Ringtoets.GrassCoverErosionOutwards.Forms.Test.PropertyInfos
+{
+ [TestFixture]
+ public class GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest
+ {
+ [Test]
+ public void GetObjectPropertiesData_Always_ReturnsHydraulicBoundaryDatabase()
+ {
+ // Setup
+ MockRepository mockRepository = new MockRepository();
+ var assessmentSectionMock = mockRepository.Stub();
+ mockRepository.ReplayAll();
+
+ var grassCoverErosionOutwardsHydraulicBoundaryLocations = new ObservableList();
+
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(
+ grassCoverErosionOutwardsHydraulicBoundaryLocations, assessmentSectionMock);
+
+ using (GrassCoverErosionOutwardsPlugin plugin = new GrassCoverErosionOutwardsPlugin())
+ {
+ PropertyInfo info = plugin.GetPropertyInfos().Single(pi => pi.DataType == typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext));
+
+ // Call
+ var objectPropertiesData = info.GetObjectPropertiesData(context);
+
+ // Assert
+ Assert.AreSame(grassCoverErosionOutwardsHydraulicBoundaryLocations, objectPropertiesData);
+ }
+ mockRepository.VerifyAll();
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs
===================================================================
diff -u
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs (revision 0)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs (revision 29da56189cadeccce7975ea121af33d647021398)
@@ -0,0 +1,63 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Linq;
+using Core.Common.Base;
+using Core.Common.Gui.Plugin;
+using NUnit.Framework;
+using Rhino.Mocks;
+using Ringtoets.Common.Data.AssessmentSection;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+using Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects;
+using Ringtoets.GrassCoverErosionOutwards.Plugin;
+
+namespace Ringtoets.GrassCoverErosionOutwards.Forms.Test.PropertyInfos
+{
+ [TestFixture]
+ public class GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest
+ {
+ [Test]
+ public void GetObjectPropertiesData_Always_ReturnsHydraulicBoundaryDatabase()
+ {
+ // Setup
+ MockRepository mockRepository = new MockRepository();
+ var assessmentSectionMock = mockRepository.Stub();
+ mockRepository.ReplayAll();
+
+ var grassCoverErosionOutwardsHydraulicBoundaryLocations = new ObservableList();
+
+ var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(
+ grassCoverErosionOutwardsHydraulicBoundaryLocations, assessmentSectionMock);
+
+ using (GrassCoverErosionOutwardsPlugin plugin = new GrassCoverErosionOutwardsPlugin())
+ {
+ PropertyInfo info = plugin.GetPropertyInfos().Single(pi => pi.DataType == typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext));
+
+ // Call
+ var objectPropertiesData = info.GetObjectPropertiesData(context);
+
+ // Assert
+ Assert.AreSame(grassCoverErosionOutwardsHydraulicBoundaryLocations, objectPropertiesData);
+ }
+ mockRepository.VerifyAll();
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj
===================================================================
diff -u -r75ac52f6f7e203e77dd212e6c32d68e7e58c28b2 -r29da56189cadeccce7975ea121af33d647021398
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj) (revision 75ac52f6f7e203e77dd212e6c32d68e7e58c28b2)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj) (revision 29da56189cadeccce7975ea121af33d647021398)
@@ -72,6 +72,8 @@
+
+
Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Data/IHydraulicBoundaryLocation.cs
===================================================================
diff -u -r75ac52f6f7e203e77dd212e6c32d68e7e58c28b2 -r29da56189cadeccce7975ea121af33d647021398
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Data/IHydraulicBoundaryLocation.cs (.../IHydraulicBoundaryLocation.cs) (revision 75ac52f6f7e203e77dd212e6c32d68e7e58c28b2)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Data/IHydraulicBoundaryLocation.cs (.../IHydraulicBoundaryLocation.cs) (revision 29da56189cadeccce7975ea121af33d647021398)
@@ -61,7 +61,7 @@
CalculationConvergence DesignWaterLevelCalculationConvergence { get; set; }
///
- /// Gets or sets the convergence status of the waveheight calculation.
+ /// Gets or sets the convergence status of the wave height calculation.
///
CalculationConvergence WaveHeightCalculationConvergence { get; set; }
}