Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsWaveHeightCalculationsContext.cs
===================================================================
diff -u
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsWaveHeightCalculationsContext.cs (revision 0)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsWaveHeightCalculationsContext.cs (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -0,0 +1,76 @@
+// 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 wave height calculation result for a given norm.
+ ///
+ public class GrassCoverErosionOutwardsWaveHeightCalculationsContext : ObservableWrappedObjectContextBase>
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The hydraulic boundary location calculations for this context.
+ /// The to which the hydraulic boundary locations
+ /// are assigned.
+ /// The grass cover erosion outwards failure mechanism within
+ /// the .
+ /// Thrown when or
+ /// is null.
+ public GrassCoverErosionOutwardsWaveHeightCalculationsContext(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 to which the hydraulic boundary locations belong.
+ ///
+ public IAssessmentSection AssessmentSection { get; }
+
+ ///
+ /// Gets the grass cover erosion outwards failure mechanism.
+ ///
+ public GrassCoverErosionOutwardsFailureMechanism FailureMechanism { get; }
+ }
+}
\ No newline at end of file
Fisheye: Tag a23e251253c836b9954d53cde172d0ccccff8a2c refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsWaveHeightLocationsContext.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj
===================================================================
diff -u -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.csproj) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.csproj) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -20,7 +20,7 @@
-
+
Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs
===================================================================
diff -u -r81d18f7f317c85bcb49e58d4c2eaa6fa1e4132f9 -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs (.../GrassCoverErosionOutwardsPlugin.cs) (revision 81d18f7f317c85bcb49e58d4c2eaa6fa1e4132f9)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs (.../GrassCoverErosionOutwardsPlugin.cs) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -83,7 +83,7 @@
{
CreateInstance = context => new GrassCoverErosionOutwardsDesignWaterLevelCalculationsProperties(context.WrappedData)
};
- yield return new PropertyInfo
+ yield return new PropertyInfo
{
CreateInstance = context => new GrassCoverErosionOutwardsWaveHeightCalculationsProperties(context.WrappedData)
};
@@ -161,7 +161,7 @@
};
yield return new ViewInfo<
- GrassCoverErosionOutwardsWaveHeightLocationsContext,
+ GrassCoverErosionOutwardsWaveHeightCalculationsContext,
IEnumerable,
GrassCoverErosionOutwardsWaveHeightCalculationsView>
{
@@ -227,7 +227,7 @@
ContextMenuStrip = GrassCoverErosionOutwardsDesignWaterLevelCalculationsContextMenuStrip
};
- yield return new TreeNodeInfo
+ yield return new TreeNodeInfo
{
Text = context => RingtoetsGrassCoverErosionOutwardsFormsResources.GrassCoverErosionOutwardsWaveHeightLocationsContext_DisplayName,
Image = context => RingtoetsCommonFormsResources.GenericInputOutputIcon,
@@ -524,7 +524,7 @@
new GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext(GetHydraulicBoundaryLocationCalculations(locations, hbl => hbl.DesignWaterLevelCalculation1),
assessmentSection,
failureMechanism),
- new GrassCoverErosionOutwardsWaveHeightLocationsContext(GetHydraulicBoundaryLocationCalculations(locations, hbl => hbl.WaveHeightCalculation1),
+ new GrassCoverErosionOutwardsWaveHeightCalculationsContext(GetHydraulicBoundaryLocationCalculations(locations, hbl => hbl.WaveHeightCalculation1),
assessmentSection,
failureMechanism),
new GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext(hydraulicBoundariesGroupContext.FailureMechanism.WaveConditionsCalculationGroup,
@@ -582,9 +582,9 @@
#endregion
- #region GrassCoverErosionOutwardsWaveHeightLocationsContext TreeNodeInfo
+ #region GrassCoverErosionOutwardsWaveHeightCalculationsContext TreeNodeInfo
- private ContextMenuStrip GrassCoverErosionOutwardsWaveHeightLocationsContextMenuStrip(GrassCoverErosionOutwardsWaveHeightLocationsContext nodeData, object parentData, TreeViewControl treeViewControl)
+ private ContextMenuStrip GrassCoverErosionOutwardsWaveHeightLocationsContextMenuStrip(GrassCoverErosionOutwardsWaveHeightCalculationsContext nodeData, object parentData, TreeViewControl treeViewControl)
{
var waveHeightItem = new StrictContextMenuItem(
RingtoetsCommonFormsResources.Calculate_all,
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsWaveHeightCalculationsContextTest.cs
===================================================================
diff -u
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsWaveHeightCalculationsContextTest.cs (revision 0)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsWaveHeightCalculationsContextTest.cs (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -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 GrassCoverErosionOutwardsWaveHeightCalculationsContextTest
+ {
+ [Test]
+ public void Constructor_AssessmentSectionNull_ThrowsArgumentNullException()
+ {
+ // Setup
+ var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
+ var calculations = new ObservableList();
+
+ // Call
+ TestDelegate call = () => new GrassCoverErosionOutwardsWaveHeightCalculationsContext(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 GrassCoverErosionOutwardsWaveHeightCalculationsContext(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 a23e251253c836b9954d53cde172d0ccccff8a2c refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PresentationObjects/GrassCoverErosionOutwardsWaveHeightLocationsContextTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj
===================================================================
diff -u -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.Test.csproj) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -32,7 +32,7 @@
-
+
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs
===================================================================
diff -u -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs (.../GrassCoverErosionOutwardsPluginTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs (.../GrassCoverErosionOutwardsPluginTest.cs) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -80,7 +80,7 @@
PluginTestHelper.AssertViewInfoDefined(
viewInfos,
- typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext),
+ typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext),
typeof(IEnumerable),
typeof(GrassCoverErosionOutwardsWaveHeightCalculationsView));
}
@@ -101,7 +101,7 @@
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(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext)));
- Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext)));
+ Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveConditionsCalculationContext)));
Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(EmptyGrassCoverErosionOutwardsOutput)));
@@ -133,7 +133,7 @@
PluginTestHelper.AssertPropertyInfoDefined(
propertyInfos,
- typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext),
+ typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext),
typeof(GrassCoverErosionOutwardsWaveHeightCalculationsProperties));
PluginTestHelper.AssertPropertyInfoDefined(
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs
===================================================================
diff -u -rcab8bfdcaa4f7f743221643923c253cbfd4dde11 -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs) (revision cab8bfdcaa4f7f743221643923c253cbfd4dde11)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsContextPropertyInfoTest.cs) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -46,7 +46,7 @@
PropertyInfo info = GetInfo(plugin);
// Assert
- Assert.AreEqual(typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext), info.DataType);
+ Assert.AreEqual(typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext), info.DataType);
Assert.AreEqual(typeof(GrassCoverErosionOutwardsWaveHeightCalculationsProperties), info.PropertyObjectType);
}
}
@@ -61,9 +61,9 @@
var calculations = new ObservableList();
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(calculations,
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(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(GrassCoverErosionOutwardsWaveHeightLocationsContext));
+ return plugin.GetPropertyInfos().First(pi => pi.DataType == typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext));
}
}
}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextTreeNodeInfoTest.cs
===================================================================
diff -u -rcd48a64133658434b4b72f29ba2db80ee387131a -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsContextTreeNodeInfoTest.cs) (revision cd48a64133658434b4b72f29ba2db80ee387131a)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveHeightLocationsContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsContextTreeNodeInfoTest.cs) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -98,9 +98,9 @@
// Setup
var assessmentSection = mockRepository.Stub();
mockRepository.ReplayAll();
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
using (var plugin = new GrassCoverErosionOutwardsPlugin())
{
@@ -121,9 +121,9 @@
// Setup
var assessmentSection = mockRepository.Stub();
mockRepository.ReplayAll();
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
using (var plugin = new GrassCoverErosionOutwardsPlugin())
{
TreeNodeInfo info = GetInfo(plugin);
@@ -149,9 +149,9 @@
using (var plugin = new GrassCoverErosionOutwardsPlugin())
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
var menuBuilder = mockRepository.StrictMock();
using (mockRepository.Ordered())
@@ -200,12 +200,12 @@
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism
- {
- Contribution = 5
- });
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism
+ {
+ Contribution = 5
+ });
var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler,
importCommandHandler,
@@ -263,9 +263,9 @@
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism());
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism());
var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler,
importCommandHandler,
@@ -323,12 +323,12 @@
{
TreeNodeInfo info = GetInfo(plugin);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- new GrassCoverErosionOutwardsFailureMechanism
- {
- Contribution = 5
- });
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ new GrassCoverErosionOutwardsFailureMechanism
+ {
+ Contribution = 5
+ });
var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler,
importCommandHandler,
@@ -376,7 +376,7 @@
var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(assessmentSection.HydraulicBoundaryDatabase.Locations[0]);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList
{
hydraulicBoundaryLocationCalculation
}, assessmentSection, new GrassCoverErosionOutwardsFailureMechanism());
@@ -432,7 +432,7 @@
var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, string.Empty, 0, 0);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList
{
new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation)
}, assessmentSection, failureMechanism);
@@ -497,7 +497,7 @@
var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, string.Empty, 0, 0);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList
{
new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation)
}, assessmentSection, failureMechanism);
@@ -561,7 +561,7 @@
var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, string.Empty, 0, 0);
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList
{
new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation)
}, assessmentSection, failureMechanism);
@@ -607,7 +607,7 @@
private static TreeNodeInfo GetInfo(GrassCoverErosionOutwardsPlugin plugin)
{
- return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext));
+ return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext));
}
}
}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/HydraulicBoundariesGroupContextTreeNodeInfoTest.cs
===================================================================
diff -u -r84aa5ac9fc6de7bf21a1664342078ed191bcba8a -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/HydraulicBoundariesGroupContextTreeNodeInfoTest.cs (.../HydraulicBoundariesGroupContextTreeNodeInfoTest.cs) (revision 84aa5ac9fc6de7bf21a1664342078ed191bcba8a)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/HydraulicBoundariesGroupContextTreeNodeInfoTest.cs (.../HydraulicBoundariesGroupContextTreeNodeInfoTest.cs) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -192,7 +192,7 @@
Assert.AreSame(failureMechanism, waterLevelHydraulicBoundaryLocationsContext.FailureMechanism);
Assert.AreSame(assessmentSection, waterLevelHydraulicBoundaryLocationsContext.AssessmentSection);
- var waveHeightHydraulicBoundaryLocationsContext = (GrassCoverErosionOutwardsWaveHeightLocationsContext) children[1];
+ var waveHeightHydraulicBoundaryLocationsContext = (GrassCoverErosionOutwardsWaveHeightCalculationsContext) children[1];
CollectionAssert.AreEqual(failureMechanism.HydraulicBoundaryLocations.Select(hbl => hbl.WaveHeightCalculation1), waveHeightHydraulicBoundaryLocationsContext.WrappedData);
Assert.AreSame(failureMechanism, waveHeightHydraulicBoundaryLocationsContext.FailureMechanism);
Assert.AreSame(assessmentSection, waveHeightHydraulicBoundaryLocationsContext.AssessmentSection);
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsWaveHeightCalculationsViewInfoTest.cs
===================================================================
diff -u -r18afb4319e80cb3659e7b472533cba7360d70426 -ra23e251253c836b9954d53cde172d0ccccff8a2c
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsWaveHeightCalculationsViewInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightCalculationsViewInfoTest.cs) (revision 18afb4319e80cb3659e7b472533cba7360d70426)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsWaveHeightCalculationsViewInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightCalculationsViewInfoTest.cs) (revision a23e251253c836b9954d53cde172d0ccccff8a2c)
@@ -55,7 +55,7 @@
// Assert
Assert.NotNull(info, "Expected a viewInfo definition for views with type {0}.", typeof(GrassCoverErosionOutwardsWaveHeightCalculationsView));
- Assert.AreEqual(typeof(GrassCoverErosionOutwardsWaveHeightLocationsContext), info.DataType);
+ Assert.AreEqual(typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext), info.DataType);
Assert.AreEqual(typeof(IEnumerable), info.ViewDataType);
Assert.AreEqual(typeof(GrassCoverErosionOutwardsWaveHeightCalculationsView), info.ViewType);
}
@@ -76,7 +76,7 @@
ViewInfo info = GetInfo(plugin);
// Call
- object calculations = info.GetViewData(new GrassCoverErosionOutwardsWaveHeightLocationsContext(
+ object calculations = info.GetViewData(new GrassCoverErosionOutwardsWaveHeightCalculationsContext(
expectedCalculations,
assessmentSection,
new GrassCoverErosionOutwardsFailureMechanism()));
@@ -104,9 +104,9 @@
var grassCoverErosionOutwardsFailureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
- var context = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- grassCoverErosionOutwardsFailureMechanism);
+ var context = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ grassCoverErosionOutwardsFailureMechanism);
plugin.Gui = gui;
plugin.Activate();
@@ -167,9 +167,9 @@
ViewInfo info = GetInfo(plugin);
var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
- var data = new GrassCoverErosionOutwardsWaveHeightLocationsContext(new ObservableList(),
- assessmentSection,
- failureMechanism);
+ var data = new GrassCoverErosionOutwardsWaveHeightCalculationsContext(new ObservableList(),
+ assessmentSection,
+ failureMechanism);
plugin.Gui = gui;
plugin.Activate();