Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext.cs
===================================================================
diff -u
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext.cs (revision 0)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext.cs (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -0,0 +1,75 @@
+// Copyright (C) Stichting Deltares 2017. 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;
+using Core.Common.Base;
+using Core.Common.Controls.PresentationObjects;
+using Ringtoets.Common.Data.AssessmentSection;
+using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+
+namespace Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects
+{
+ ///
+ /// Presentation object for all data required to configure an enumeration of
+ /// with a design water level calculation result for a given norm.
+ ///
+ public class GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext : ObservableWrappedObjectContextBase>
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The hydraulic boundary location calculations for this context.
+ /// The which the
+ /// belongs to.
+ /// The grass cover erosion outwards failure mechanism within
+ /// the .
+ /// Thrown when any input parameter is null.
+ public GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(ObservableList calculations,
+ IAssessmentSection assessmentSection,
+ GrassCoverErosionOutwardsFailureMechanism failureMechanism)
+ : base(calculations)
+ {
+ if (assessmentSection == null)
+ {
+ throw new ArgumentNullException(nameof(assessmentSection));
+ }
+
+ if (failureMechanism == null)
+ {
+ throw new ArgumentNullException(nameof(failureMechanism));
+ }
+
+ AssessmentSection = assessmentSection;
+ FailureMechanism = failureMechanism;
+ }
+
+ ///
+ /// Gets the assessment section.
+ ///
+ public IAssessmentSection AssessmentSection { get; }
+
+ ///
+ /// Gets the grass cover erosion outwards failure mechanism.
+ ///
+ public GrassCoverErosionOutwardsFailureMechanism FailureMechanism { get; }
+ }
+}
\ No newline at end of file
Fisheye: Tag 84aa5ac9fc6de7bf21a1664342078ed191bcba8a refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelLocationsContext.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj
===================================================================
diff -u -r036dbc232fd0151d7612ea584b3b46f419b74eae -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.csproj) (revision 036dbc232fd0151d7612ea584b3b46f419b74eae)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.csproj) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -27,7 +27,7 @@
-
+
True
True
Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs
===================================================================
diff -u -rc03b1df6087bc5eebb0b13bdf50b3ec3d2b2fa2a -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs (.../GrassCoverErosionOutwardsPlugin.cs) (revision c03b1df6087bc5eebb0b13bdf50b3ec3d2b2fa2a)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs (.../GrassCoverErosionOutwardsPlugin.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -79,7 +79,7 @@
context.WrappedData,
new GrassCoverErosionOutwardsFailureMechanismPropertyChangeHandler())
};
- yield return new PropertyInfo
+ yield return new PropertyInfo
{
CreateInstance = context => new GrassCoverErosionOutwardsDesignWaterLevelCalculationsProperties(context.WrappedData)
};
@@ -145,7 +145,7 @@
};
yield return new ViewInfo<
- GrassCoverErosionOutwardsDesignWaterLevelLocationsContext,
+ GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext,
IEnumerable,
GrassCoverErosionOutwardsDesignWaterLevelCalculationsView>
{
@@ -220,7 +220,7 @@
: Color.FromKnownColor(KnownColor.GrayText)
};
- yield return new TreeNodeInfo
+ yield return new TreeNodeInfo
{
Text = context => RingtoetsGrassCoverErosionOutwardsFormsResources.GrassCoverErosionOutwardsWaterLevelLocations_DisplayName,
Image = context => RingtoetsCommonFormsResources.GenericInputOutputIcon,
@@ -521,9 +521,9 @@
GrassCoverErosionOutwardsFailureMechanism failureMechanism = hydraulicBoundariesGroupContext.FailureMechanism;
return new object[]
{
- new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(GetHydraulicBoundaryLocationCalculations(locations, hbl => hbl.DesignWaterLevelCalculation1),
- assessmentSection,
- failureMechanism),
+ new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(GetHydraulicBoundaryLocationCalculations(locations, hbl => hbl.DesignWaterLevelCalculation1),
+ assessmentSection,
+ failureMechanism),
new GrassCoverErosionOutwardsWaveHeightLocationsContext(GetHydraulicBoundaryLocationCalculations(locations, hbl => hbl.WaveHeightCalculation1),
assessmentSection,
failureMechanism),
@@ -536,9 +536,9 @@
#endregion
- #region GrassCoverErosionOutwardsDesignWaterLevelLocationsContext TreeNodeInfo
+ #region GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext TreeNodeInfo
- private ContextMenuStrip GrassCoverErosionOutwardsDesignWaterLevelLocationsContextMenuStrip(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext nodeData, object parentData, TreeViewControl treeViewControl)
+ private ContextMenuStrip GrassCoverErosionOutwardsDesignWaterLevelLocationsContextMenuStrip(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext nodeData, object parentData, TreeViewControl treeViewControl)
{
var designWaterLevelItem = new StrictContextMenuItem(
RingtoetsGrassCoverErosionOutwardsFormsResources.GrassCoverErosionOutwardsWaterLevelLocation_Calculate_All,
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelCalculationsContextTest.cs
===================================================================
diff -u
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelCalculationsContextTest.cs (revision 0)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelCalculationsContextTest.cs (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -0,0 +1,93 @@
+// Copyright (C) Stichting Deltares 2017. 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;
+using Core.Common.Base;
+using Core.Common.Controls.PresentationObjects;
+using NUnit.Framework;
+using Rhino.Mocks;
+using Ringtoets.Common.Data.AssessmentSection;
+using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+using Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects;
+
+namespace Ringtoets.GrassCoverErosionOutwards.Forms.Test.PresentationObjects
+{
+ [TestFixture]
+ public class GrassCoverErosionOutwardsDesignWaterLevelCalculationsContextTest
+ {
+ [Test]
+ public void Constructor_AssessmentSectionNull_ThrowsArgumentNullException()
+ {
+ // Setup
+ var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
+ var calculations = new ObservableList();
+
+ // Call
+ TestDelegate call = () => new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(calculations, null, failureMechanism);
+
+ // Assert
+ string paramName = Assert.Throws(call).ParamName;
+ Assert.AreEqual("assessmentSection", paramName);
+ }
+
+ [Test]
+ public void Constructor_FailureMechanismNull_ThrowsArgumentNullException()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+ mocks.ReplayAll();
+
+ var calculations = new ObservableList();
+
+ // Call
+ TestDelegate call = () => new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(calculations, assessmentSection, null);
+
+ // Assert
+ string paramName = Assert.Throws(call).ParamName;
+ Assert.AreEqual("failureMechanism", paramName);
+ mocks.VerifyAll();
+ }
+
+ [Test]
+ public void Constructor_ValidData_ExpectedValues()
+ {
+ // Setup
+ var mockRepository = new MockRepository();
+ var assessmentSection = mockRepository.Stub();
+ mockRepository.ReplayAll();
+
+ var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
+ var calculations = new ObservableList();
+
+ // Call
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(calculations, assessmentSection, failureMechanism);
+
+ // Assert
+ Assert.IsInstanceOf>>(context);
+ Assert.AreSame(calculations, context.WrappedData);
+ Assert.AreSame(assessmentSection, context.AssessmentSection);
+ Assert.AreSame(failureMechanism, context.FailureMechanism);
+ mockRepository.VerifyAll();
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag 84aa5ac9fc6de7bf21a1664342078ed191bcba8a refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsWaveHeightLocationsContextTest.cs
===================================================================
diff -u -r90baa639463def8279fb98a1b3fd3121252091f3 -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsWaveHeightLocationsContextTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsContextTest.cs) (revision 90baa639463def8279fb98a1b3fd3121252091f3)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsWaveHeightLocationsContextTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsContextTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -60,7 +60,7 @@
var calculations = new ObservableList();
// Call
- TestDelegate call = () => new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(calculations, assessmentSection, null);
+ TestDelegate call = () => new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(calculations, assessmentSection, null);
// Assert
string paramName = Assert.Throws(call).ParamName;
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj
===================================================================
diff -u -r036dbc232fd0151d7612ea584b3b46f419b74eae -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj) (revision 036dbc232fd0151d7612ea584b3b46f419b74eae)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -35,7 +35,7 @@
-
+
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs
===================================================================
diff -u -r16b8f1f6aa0aa7bbb18b8741d7a7b7e01f7403e9 -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs (.../GrassCoverErosionOutwardsPluginTest.cs) (revision 16b8f1f6aa0aa7bbb18b8741d7a7b7e01f7403e9)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs (.../GrassCoverErosionOutwardsPluginTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -74,7 +74,7 @@
PluginTestHelper.AssertViewInfoDefined(
viewInfos,
- typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext),
+ typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext),
typeof(IEnumerable),
typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsView));
@@ -100,7 +100,7 @@
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsFailureMechanismContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(FailureMechanismSectionResultContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(HydraulicBoundariesGroupContext)));
- Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext)));
+ Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveConditionsCalculationContext)));
@@ -128,7 +128,7 @@
PluginTestHelper.AssertPropertyInfoDefined(
propertyInfos,
- typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext),
+ typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext),
typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsProperties));
PluginTestHelper.AssertPropertyInfoDefined(
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs
===================================================================
diff -u -rcab8bfdcaa4f7f743221643923c253cbfd4dde11 -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs) (revision cab8bfdcaa4f7f743221643923c253cbfd4dde11)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertyInfoTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -46,7 +46,7 @@
PropertyInfo info = GetInfo(plugin);
// Assert
- Assert.AreEqual(typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext), info.DataType);
+ Assert.AreEqual(typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext), info.DataType);
Assert.AreEqual(typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsProperties), info.PropertyObjectType);
}
}
@@ -61,9 +61,9 @@
var calculations = new ObservableList();
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(calculations,
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(calculations,
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
using (var plugin = new GrassCoverErosionOutwardsPlugin())
{
@@ -82,7 +82,7 @@
private static PropertyInfo GetInfo(GrassCoverErosionOutwardsPlugin plugin)
{
- return plugin.GetPropertyInfos().First(pi => pi.DataType == typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext));
+ return plugin.GetPropertyInfos().First(pi => pi.DataType == typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext));
}
}
}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextTreeNodeInfoTest.cs
===================================================================
diff -u -rcd48a64133658434b4b72f29ba2db80ee387131a -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision cd48a64133658434b4b72f29ba2db80ee387131a)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -101,9 +101,9 @@
var assessmentSection = mockRepository.Stub();
mockRepository.ReplayAll();
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
using (var plugin = new GrassCoverErosionOutwardsPlugin())
{
@@ -125,9 +125,9 @@
// Setup
var assessmentSection = mockRepository.Stub();
mockRepository.ReplayAll();
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
using (var plugin = new GrassCoverErosionOutwardsPlugin())
{
TreeNodeInfo info = GetInfo(plugin);
@@ -153,9 +153,9 @@
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
var menuBuilder = mockRepository.StrictMock();
using (mockRepository.Ordered())
@@ -203,12 +203,12 @@
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism
- {
- Contribution = 5
- });
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism
+ {
+ Contribution = 5
+ });
var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler,
importCommandHandler,
@@ -266,9 +266,9 @@
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler,
importCommandHandler,
@@ -326,12 +326,12 @@
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism
- {
- Contribution = 5
- });
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism
+ {
+ Contribution = 5
+ });
var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler,
importCommandHandler,
@@ -380,7 +380,7 @@
var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, string.Empty, 0, 0);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList
{
new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation)
}, assessmentSection, failureMechanism);
@@ -445,7 +445,7 @@
var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, string.Empty, 0, 0);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList
{
new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation)
}, assessmentSection, failureMechanism);
@@ -509,7 +509,7 @@
var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, string.Empty, 0, 0);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList
{
new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation)
}, assessmentSection, failureMechanism);
@@ -568,7 +568,7 @@
HydraulicBoundaryLocation hydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryDatabase.Locations[0];
var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation);
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList
{
hydraulicBoundaryLocationCalculation
}, assessmentSection, failureMechanism);
@@ -626,7 +626,7 @@
private static TreeNodeInfo GetInfo(GrassCoverErosionOutwardsPlugin plugin)
{
- return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext));
+ return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext));
}
}
}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/HydraulicBoundariesGroupContextTreeNodeInfoTest.cs
===================================================================
diff -u -r16b8f1f6aa0aa7bbb18b8741d7a7b7e01f7403e9 -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/HydraulicBoundariesGroupContextTreeNodeInfoTest.cs (.../HydraulicBoundariesGroupContextTreeNodeInfoTest.cs) (revision 16b8f1f6aa0aa7bbb18b8741d7a7b7e01f7403e9)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/HydraulicBoundariesGroupContextTreeNodeInfoTest.cs (.../HydraulicBoundariesGroupContextTreeNodeInfoTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -187,7 +187,7 @@
// Assert
Assert.AreEqual(3, children.Length);
- var waterLevelHydraulicBoundaryLocationsContext = (GrassCoverErosionOutwardsDesignWaterLevelLocationsContext) children[0];
+ var waterLevelHydraulicBoundaryLocationsContext = (GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext) children[0];
CollectionAssert.AreEqual(failureMechanism.HydraulicBoundaryLocations.Select(hbl => hbl.DesignWaterLevelCalculation1), waterLevelHydraulicBoundaryLocationsContext.WrappedData);
Assert.AreSame(failureMechanism, waterLevelHydraulicBoundaryLocationsContext.FailureMechanism);
Assert.AreSame(assessmentSection, waterLevelHydraulicBoundaryLocationsContext.AssessmentSection);
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsDesignWaterLevelCalculationsViewInfoTest.cs
===================================================================
diff -u -r18afb4319e80cb3659e7b472533cba7360d70426 -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsDesignWaterLevelCalculationsViewInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelCalculationsViewInfoTest.cs) (revision 18afb4319e80cb3659e7b472533cba7360d70426)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsDesignWaterLevelCalculationsViewInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelCalculationsViewInfoTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
@@ -55,7 +55,7 @@
// Assert
Assert.NotNull(info, "Expected a viewInfo definition for views with type {0}.", typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsView));
- Assert.AreEqual(typeof(GrassCoverErosionOutwardsDesignWaterLevelLocationsContext), info.DataType);
+ Assert.AreEqual(typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext), info.DataType);
Assert.AreEqual(typeof(IEnumerable), info.ViewDataType);
Assert.AreEqual(typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsView), info.ViewType);
}
@@ -76,7 +76,7 @@
ViewInfo info = GetInfo(plugin);
// Call
- object calculations = info.GetViewData(new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(
+ object calculations = info.GetViewData(new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(
expectedCalculations,
assessmentSection,
new GrassCoverErosionOutwardsFailureMechanism()));
@@ -104,9 +104,9 @@
var grassCoverErosionOutwardsFailureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
- var context = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- grassCoverErosionOutwardsFailureMechanism);
+ var context = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ grassCoverErosionOutwardsFailureMechanism);
plugin.Gui = gui;
plugin.Activate();
@@ -169,9 +169,9 @@
var grassCoverErosionOutwardsFailureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
- var data = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContext(new ObservableList(),
- assessmentSection,
- grassCoverErosionOutwardsFailureMechanism);
+ var data = new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(new ObservableList(),
+ assessmentSection,
+ grassCoverErosionOutwardsFailureMechanism);
plugin.Gui = gui;
plugin.Activate();