Fisheye: Tag bb0c552234fc721a9f77d5a4bcba8b5abc095f1b refers to a dead (removed) revision in file `Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/DuneErosionFailurePathContext.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag bb0c552234fc721a9f77d5a4bcba8b5abc095f1b refers to a dead (removed) revision in file `Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/DuneErosionHydraulicLoadsContext.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/HydraulicLoadsState/DuneErosionHydraulicLoadsContext.cs
===================================================================
diff -u
--- Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/HydraulicLoadsState/DuneErosionHydraulicLoadsContext.cs (revision 0)
+++ Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/HydraulicLoadsState/DuneErosionHydraulicLoadsContext.cs (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -0,0 +1,44 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Data;
+
+namespace Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState
+{
+ ///
+ /// Presentation object for hydraulic loads of .
+ ///
+ public class DuneErosionHydraulicLoadsContext : FailureMechanismContext
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The instance
+ /// wrapped by this context object.
+ /// The assessment section which the failure mechanism belongs to.
+ /// Thrown when any parameter is null.
+ public DuneErosionHydraulicLoadsContext(DuneErosionFailureMechanism failureMechanism, IAssessmentSection assessmentSection)
+ : base(failureMechanism, assessmentSection) {}
+ }
+}
\ No newline at end of file
Index: Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/RegistrationState/DuneErosionFailurePathContext.cs
===================================================================
diff -u
--- Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/RegistrationState/DuneErosionFailurePathContext.cs (revision 0)
+++ Riskeer/DuneErosion/src/Riskeer.DuneErosion.Forms/PresentationObjects/RegistrationState/DuneErosionFailurePathContext.cs (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -0,0 +1,44 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Data;
+
+namespace Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState
+{
+ ///
+ /// Presentation object for the failure path of .
+ ///
+ public class DuneErosionFailurePathContext : FailureMechanismContext
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The instance
+ /// wrapped by this context object.
+ /// The assessment section which the failure mechanism belongs to.
+ /// Thrown when any parameter is null.
+ public DuneErosionFailurePathContext(DuneErosionFailureMechanism failureMechanism, IAssessmentSection assessmentSection)
+ : base(failureMechanism, assessmentSection) {}
+ }
+}
\ No newline at end of file
Index: Riskeer/DuneErosion/src/Riskeer.DuneErosion.Plugin/DuneErosionPlugin.cs
===================================================================
diff -u -r8ae7522403830ec33cc3543de6dd89f4490cc402 -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/DuneErosion/src/Riskeer.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision 8ae7522403830ec33cc3543de6dd89f4490cc402)
+++ Riskeer/DuneErosion/src/Riskeer.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -48,6 +48,8 @@
using Riskeer.DuneErosion.Data;
using Riskeer.DuneErosion.Forms.GuiServices;
using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
using Riskeer.DuneErosion.Forms.PropertyClasses;
using Riskeer.DuneErosion.Forms.Views;
using Riskeer.DuneErosion.IO;
Fisheye: Tag bb0c552234fc721a9f77d5a4bcba8b5abc095f1b refers to a dead (removed) revision in file `Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/DuneErosionFailurePathContextTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag bb0c552234fc721a9f77d5a4bcba8b5abc095f1b refers to a dead (removed) revision in file `Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/DuneErosionHydraulicLoadsContextTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/HydraulicLoadsState/DuneErosionHydraulicLoadsContextTest.cs
===================================================================
diff -u
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/HydraulicLoadsState/DuneErosionHydraulicLoadsContextTest.cs (revision 0)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/HydraulicLoadsState/DuneErosionHydraulicLoadsContextTest.cs (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -0,0 +1,54 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 NUnit.Framework;
+using Rhino.Mocks;
+using Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Data;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
+
+namespace Riskeer.DuneErosion.Forms.Test.PresentationObjects.HydraulicLoadsState
+{
+ [TestFixture]
+ public class DuneErosionHydraulicLoadsContextTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+ mocks.ReplayAll();
+
+ var failureMechanism = new DuneErosionFailureMechanism();
+
+ // Call
+ var context = new DuneErosionHydraulicLoadsContext(failureMechanism, assessmentSection);
+
+ // Assert
+ Assert.IsInstanceOf>(context);
+ Assert.AreSame(failureMechanism, context.WrappedData);
+ Assert.AreSame(assessmentSection, context.Parent);
+ mocks.VerifyAll();
+ }
+ }
+}
\ No newline at end of file
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/RegistrationState/DuneErosionFailurePathContextTest.cs
===================================================================
diff -u
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/RegistrationState/DuneErosionFailurePathContextTest.cs (revision 0)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Forms.Test/PresentationObjects/RegistrationState/DuneErosionFailurePathContextTest.cs (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -0,0 +1,54 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 NUnit.Framework;
+using Rhino.Mocks;
+using Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Data;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
+
+namespace Riskeer.DuneErosion.Forms.Test.PresentationObjects.RegistrationState
+{
+ [TestFixture]
+ public class DuneErosionFailurePathContextTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+ mocks.ReplayAll();
+
+ var failureMechanism = new DuneErosionFailureMechanism();
+
+ // Call
+ var context = new DuneErosionFailurePathContext(failureMechanism, assessmentSection);
+
+ // Assert
+ Assert.IsInstanceOf>(context);
+ Assert.AreSame(failureMechanism, context.WrappedData);
+ Assert.AreSame(assessmentSection, context.Parent);
+ mocks.VerifyAll();
+ }
+ }
+}
\ No newline at end of file
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/DuneErosionPluginTest.cs
===================================================================
diff -u -r8ae7522403830ec33cc3543de6dd89f4490cc402 -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/DuneErosionPluginTest.cs (.../DuneErosionPluginTest.cs) (revision 8ae7522403830ec33cc3543de6dd89f4490cc402)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/DuneErosionPluginTest.cs (.../DuneErosionPluginTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -42,6 +42,8 @@
using Riskeer.Common.Forms.Views;
using Riskeer.DuneErosion.Data;
using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
using Riskeer.DuneErosion.Forms.PropertyClasses;
using Riskeer.DuneErosion.Forms.Views;
using HydraulicLoadsStateFailureMechanismProperties = Riskeer.DuneErosion.Forms.PropertyClasses.HydraulicLoadsState.DuneErosionFailureMechanismProperties;
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/PropertyInfos/HydraulicLoadsState/DuneErosionFailureMechanismPropertyInfoTest.cs
===================================================================
diff -u -r15e39e98efe64891587b9b96c91967c93ca72e2d -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/PropertyInfos/HydraulicLoadsState/DuneErosionFailureMechanismPropertyInfoTest.cs (.../DuneErosionFailureMechanismPropertyInfoTest.cs) (revision 15e39e98efe64891587b9b96c91967c93ca72e2d)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/PropertyInfos/HydraulicLoadsState/DuneErosionFailureMechanismPropertyInfoTest.cs (.../DuneErosionFailureMechanismPropertyInfoTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -26,7 +26,7 @@
using Rhino.Mocks;
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.DuneErosion.Data;
-using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
using Riskeer.DuneErosion.Forms.PropertyClasses.HydraulicLoadsState;
namespace Riskeer.DuneErosion.Plugin.Test.PropertyInfos.HydraulicLoadsState
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/PropertyInfos/RegistrationState/DuneErosionFailureMechanismPropertyInfoTest.cs
===================================================================
diff -u -rfe92e48a5fd095c8bc165173321d000eed7d2b0b -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/PropertyInfos/RegistrationState/DuneErosionFailureMechanismPropertyInfoTest.cs (.../DuneErosionFailureMechanismPropertyInfoTest.cs) (revision fe92e48a5fd095c8bc165173321d000eed7d2b0b)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/PropertyInfos/RegistrationState/DuneErosionFailureMechanismPropertyInfoTest.cs (.../DuneErosionFailureMechanismPropertyInfoTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -26,7 +26,7 @@
using Rhino.Mocks;
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.DuneErosion.Data;
-using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
using Riskeer.DuneErosion.Forms.PropertyClasses.RegistrationState;
namespace Riskeer.DuneErosion.Plugin.Test.PropertyInfos.RegistrationState
Fisheye: Tag bb0c552234fc721a9f77d5a4bcba8b5abc095f1b refers to a dead (removed) revision in file `Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/DuneErosionFailurePathContextTreeNodeInfoTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag bb0c552234fc721a9f77d5a4bcba8b5abc095f1b refers to a dead (removed) revision in file `Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/DuneErosionHydraulicLoadsContextTreeNodeInfoTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/HydraulicLoadsState/DuneErosionHydraulicLoadsContextTreeNodeInfoTest.cs
===================================================================
diff -u
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/HydraulicLoadsState/DuneErosionHydraulicLoadsContextTreeNodeInfoTest.cs (revision 0)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/HydraulicLoadsState/DuneErosionHydraulicLoadsContextTreeNodeInfoTest.cs (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -0,0 +1,339 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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.IO;
+using System.Linq;
+using System.Windows.Forms;
+using Core.Common.Controls.TreeView;
+using Core.Common.TestUtil;
+using Core.Gui;
+using Core.Gui.ContextMenu;
+using Core.Gui.Forms.Main;
+using Core.Gui.Forms.ViewHost;
+using Core.Gui.TestUtil;
+using Core.Gui.TestUtil.ContextMenu;
+using NUnit.Framework;
+using Rhino.Mocks;
+using Riskeer.Common.Data;
+using Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Data.Hydraulics;
+using Riskeer.Common.Data.TestUtil;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.Common.Plugin.TestUtil;
+using Riskeer.Common.Service.TestUtil;
+using Riskeer.DuneErosion.Data;
+using Riskeer.DuneErosion.Data.TestUtil;
+using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
+using Riskeer.HydraRing.Calculation.Calculator.Factory;
+using Riskeer.HydraRing.Calculation.Data.Input;
+using Riskeer.HydraRing.Calculation.TestUtil.Calculator;
+using RiskeerCommonFormsResources = Riskeer.Common.Forms.Properties.Resources;
+
+namespace Riskeer.DuneErosion.Plugin.Test.TreeNodeInfos.HydraulicLoadsState
+{
+ [TestFixture]
+ public class DuneErosionHydraulicLoadsContextTreeNodeInfoTest
+ {
+ private const int contextMenuCalculateAllIndex = 2;
+
+ private readonly string testDataPath = TestHelper.GetTestDataPath(TestDataPath.Riskeer.Integration.Forms, "HydraulicBoundaryDatabase");
+
+ private MockRepository mocksRepository;
+ private DuneErosionPlugin plugin;
+ private TreeNodeInfo info;
+
+ [SetUp]
+ public void SetUp()
+ {
+ mocksRepository = new MockRepository();
+ plugin = new DuneErosionPlugin();
+ info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DuneErosionHydraulicLoadsContext));
+ }
+
+ [TearDown]
+ public void TearDown()
+ {
+ plugin.Dispose();
+
+ mocksRepository.VerifyAll();
+ }
+
+ [Test]
+ public void Initialized_Always_ExpectedPropertiesSet()
+ {
+ // Setup
+ mocksRepository.ReplayAll();
+
+ // Assert
+ Assert.IsNotNull(info.Text);
+ Assert.IsNotNull(info.ForeColor);
+ Assert.IsNotNull(info.Image);
+ Assert.IsNotNull(info.ContextMenuStrip);
+ Assert.IsNull(info.EnsureVisibleOnCreate);
+ Assert.IsNull(info.ExpandOnCreate);
+ Assert.IsNotNull(info.ChildNodeObjects);
+ Assert.IsNull(info.CanRename);
+ Assert.IsNull(info.OnNodeRenamed);
+ Assert.IsNull(info.CanRemove);
+ Assert.IsNull(info.OnNodeRemoved);
+ Assert.IsNull(info.CanCheck);
+ Assert.IsNull(info.CheckedState);
+ Assert.IsNull(info.OnNodeChecked);
+ Assert.IsNull(info.CanDrag);
+ Assert.IsNull(info.CanDrop);
+ Assert.IsNull(info.CanInsert);
+ Assert.IsNull(info.OnDrop);
+ }
+
+ [Test]
+ public void ChildNodeObjects_WithContext_ReturnChildDataNodes()
+ {
+ // Setup
+ var assessmentSection = new AssessmentSectionStub();
+
+ var failureMechanism = new DuneErosionFailureMechanism();
+ var context = new DuneErosionHydraulicLoadsContext(failureMechanism, assessmentSection);
+
+ // Call
+ object[] children = info.ChildNodeObjects(context).ToArray();
+
+ // Assert
+ Assert.AreEqual(2, children.Length);
+
+ var inputsFolder = (CategoryTreeFolder) children[0];
+ Assert.AreEqual("Invoer", inputsFolder.Name);
+ Assert.AreEqual(TreeFolderCategory.Input, inputsFolder.Category);
+
+ Assert.AreEqual(1, inputsFolder.Contents.Count());
+ var calculationsInputComments = (Comment) inputsFolder.Contents.ElementAt(0);
+ Assert.AreSame(failureMechanism.CalculationsInputComments, calculationsInputComments);
+
+ var targetProbabilitiesGroupContext = (DuneLocationCalculationsForUserDefinedTargetProbabilitiesGroupContext) children[1];
+ Assert.AreSame(failureMechanism.DuneLocationCalculationsForUserDefinedTargetProbabilities, targetProbabilitiesGroupContext.WrappedData);
+ Assert.AreSame(failureMechanism, targetProbabilitiesGroupContext.FailureMechanism);
+ Assert.AreSame(assessmentSection, targetProbabilitiesGroupContext.AssessmentSection);
+ }
+
+ [Test]
+ public void ContextMenuStrip_WithContext_CallsContextMenuBuilderMethods()
+ {
+ // Setup
+ var failureMechanism = new DuneErosionFailureMechanism();
+ IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(mocksRepository);
+ var context = new DuneErosionHydraulicLoadsContext(failureMechanism, assessmentSection);
+
+ var orderMocksRepository = new MockRepository();
+ var menuBuilder = orderMocksRepository.StrictMock();
+ using (orderMocksRepository.Ordered())
+ {
+ menuBuilder.Expect(mb => mb.AddOpenItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddCustomItem(null)).IgnoreArguments().Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddCollapseAllItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddExpandAllItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddPropertiesItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.Build()).Return(null);
+ }
+
+ orderMocksRepository.ReplayAll();
+
+ using (var treeViewControl = new TreeViewControl())
+ {
+ var gui = mocksRepository.Stub();
+ gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(menuBuilder);
+ gui.Stub(g => g.ViewHost).Return(mocksRepository.Stub());
+ mocksRepository.ReplayAll();
+
+ plugin.Gui = gui;
+
+ // Call
+ info.ContextMenuStrip(context, null, treeViewControl);
+ }
+
+ // Assert
+ orderMocksRepository.VerifyAll();
+ }
+
+ [Test]
+ public void ContextMenuStrip_HydraulicBoundaryDatabaseNotLinked_ContextMenuItemCalculateAllDisabledAndTooltipSet()
+ {
+ // Setup
+ var duneLocation = new TestDuneLocation("Test");
+ var failureMechanism = new DuneErosionFailureMechanism();
+ var assessmentSection = new AssessmentSectionStub();
+
+ failureMechanism.SetDuneLocations(new[]
+ {
+ duneLocation
+ });
+
+ var context = new DuneErosionHydraulicLoadsContext(failureMechanism, assessmentSection);
+
+ using (var treeViewControl = new TreeViewControl())
+ {
+ var gui = mocksRepository.Stub();
+ gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder());
+ gui.Stub(g => g.ViewHost).Return(mocksRepository.Stub());
+ mocksRepository.ReplayAll();
+
+ plugin.Gui = gui;
+
+ // Call
+ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl))
+ {
+ // Assert
+ TestHelper.AssertContextMenuStripContainsItem(contextMenu, contextMenuCalculateAllIndex,
+ "Alles be&rekenen",
+ "Er is geen hydraulische belastingendatabase geïmporteerd.",
+ RiskeerCommonFormsResources.CalculateAllIcon,
+ false);
+ }
+ }
+ }
+
+ [Test]
+ public void ContextMenuStrip_NoDuneLocationsPresent_ContextMenuItemCalculateAllDisabledAndTooltipSet()
+ {
+ // Setup
+ var failureMechanism = new DuneErosionFailureMechanism();
+ var assessmentSection = new AssessmentSectionStub
+ {
+ HydraulicBoundaryDatabase =
+ {
+ FilePath = Path.Combine(testDataPath, "HRD dutch coast south.sqlite")
+ }
+ };
+ HydraulicBoundaryDatabaseTestHelper.SetHydraulicBoundaryLocationConfigurationSettings(assessmentSection.HydraulicBoundaryDatabase);
+
+ var context = new DuneErosionHydraulicLoadsContext(failureMechanism, assessmentSection);
+
+ var mocks = new MockRepository();
+
+ using (var treeViewControl = new TreeViewControl())
+ {
+ var gui = mocksRepository.Stub();
+ gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder());
+ gui.Stub(g => g.ViewHost).Return(mocksRepository.Stub());
+ mocksRepository.ReplayAll();
+
+ plugin.Gui = gui;
+
+ // Call
+ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl))
+ {
+ // Assert
+ TestHelper.AssertContextMenuStripContainsItem(contextMenu, contextMenuCalculateAllIndex,
+ "Alles be&rekenen",
+ "Geen van de locaties is geschikt voor een hydraulische belastingenberekening.",
+ RiskeerCommonFormsResources.CalculateAllIcon,
+ false);
+ }
+ }
+
+ mocks.VerifyAll();
+ }
+
+ [Test]
+ public void GivenValidCalculations_WhenCalculatingAllFromContextMenu_ThenAllCalculationsScheduled()
+ {
+ // Given
+ var assessmentSection = new AssessmentSectionStub
+ {
+ HydraulicBoundaryDatabase =
+ {
+ FilePath = Path.Combine(testDataPath, "HRD dutch coast south.sqlite")
+ }
+ };
+ HydraulicBoundaryDatabaseTestHelper.SetHydraulicBoundaryLocationConfigurationSettings(assessmentSection.HydraulicBoundaryDatabase);
+
+ var failureMechanism = new DuneErosionFailureMechanism
+ {
+ DuneLocationCalculationsForUserDefinedTargetProbabilities =
+ {
+ new DuneLocationCalculationsForTargetProbability(0.1),
+ new DuneLocationCalculationsForTargetProbability(0.01)
+ }
+ };
+
+ var duneLocation = new TestDuneLocation("Test");
+ failureMechanism.SetDuneLocations(new[]
+ {
+ duneLocation
+ });
+
+ var context = new DuneErosionHydraulicLoadsContext(failureMechanism, assessmentSection);
+
+ using (var treeViewControl = new TreeViewControl())
+ {
+ var gui = mocksRepository.Stub();
+ IMainWindow mainWindow = MainWindowTestHelper.CreateMainWindowStub(mocksRepository);
+ gui.Stub(g => g.MainWindow).Return(mainWindow);
+ gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder());
+ gui.Stub(g => g.DocumentViewController).Return(mocksRepository.Stub());
+ gui.Stub(g => g.ViewHost).Return(mocksRepository.Stub());
+
+ var calculatorFactory = mocksRepository.Stub();
+ var dunesBoundaryConditionsCalculator = new TestDunesBoundaryConditionsCalculator
+ {
+ Converged = false
+ };
+
+ calculatorFactory.Expect(cf => cf.CreateDunesBoundaryConditionsCalculator(Arg.Is.NotNull))
+ .WhenCalled(invocation =>
+ {
+ HydraRingCalculationSettingsTestHelper.AssertHydraRingCalculationSettings(
+ HydraulicBoundaryCalculationSettingsFactory.CreateSettings(assessmentSection.HydraulicBoundaryDatabase),
+ (HydraRingCalculationSettings) invocation.Arguments[0]);
+ })
+ .Return(dunesBoundaryConditionsCalculator).Repeat.Times(2);
+ mocksRepository.ReplayAll();
+
+ plugin.Gui = gui;
+ plugin.Activate();
+
+ using (ContextMenuStrip contextMenuAdapter = info.ContextMenuStrip(context, null, treeViewControl))
+ using (new HydraRingCalculatorFactoryConfig(calculatorFactory))
+ {
+ // When
+ void Call() => contextMenuAdapter.Items[contextMenuCalculateAllIndex].PerformClick();
+
+ // Then
+ TestHelper.AssertLogMessages(Call, messages =>
+ {
+ string[] msgs = messages.ToArray();
+ Assert.AreEqual(16, msgs.Length);
+
+ const string calculationTypeDisplayName = "Hydraulische belastingen";
+ const string calculationDisplayName = "Hydraulische belastingenberekening";
+
+ HydraulicBoundaryLocationCalculationActivityLogTestHelper.AssertHydraulicBoundaryLocationCalculationMessages(
+ duneLocation.Name, calculationTypeDisplayName, calculationDisplayName, "1/10", msgs, 0);
+ HydraulicBoundaryLocationCalculationActivityLogTestHelper.AssertHydraulicBoundaryLocationCalculationMessages(
+ duneLocation.Name, calculationTypeDisplayName, calculationDisplayName, "1/100", msgs, 8);
+ });
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/RegistrationState/DuneErosionFailurePathContextTreeNodeInfoTest.cs
===================================================================
diff -u
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/RegistrationState/DuneErosionFailurePathContextTreeNodeInfoTest.cs (revision 0)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/TreeNodeInfos/RegistrationState/DuneErosionFailurePathContextTreeNodeInfoTest.cs (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -0,0 +1,303 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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.Drawing;
+using System.Linq;
+using Core.Common.Controls.TreeView;
+using Core.Common.TestUtil;
+using Core.Gui;
+using Core.Gui.ContextMenu;
+using Core.Gui.Forms.ViewHost;
+using NUnit.Framework;
+using Rhino.Mocks;
+using Riskeer.Common.Data;
+using Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Data.TestUtil;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.Common.Plugin.TestUtil;
+using Riskeer.DuneErosion.Data;
+using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
+using RiskeerCommonFormsResources = Riskeer.Common.Forms.Properties.Resources;
+
+namespace Riskeer.DuneErosion.Plugin.Test.TreeNodeInfos.RegistrationState
+{
+ [TestFixture]
+ public class DuneErosionFailurePathContextTreeNodeInfoTest
+ {
+ [Test]
+ public void Initialized_Always_ExpectedPropertiesSet()
+ {
+ // Setup
+ using (var plugin = new DuneErosionPlugin())
+ {
+ TreeNodeInfo info = GetInfo(plugin);
+
+ // Assert
+ Assert.IsNotNull(info.Text);
+ Assert.IsNotNull(info.ForeColor);
+ Assert.IsNotNull(info.Image);
+ Assert.IsNotNull(info.ContextMenuStrip);
+ Assert.IsNull(info.EnsureVisibleOnCreate);
+ Assert.IsNull(info.ExpandOnCreate);
+ Assert.IsNotNull(info.ChildNodeObjects);
+ Assert.IsNull(info.CanRename);
+ Assert.IsNull(info.OnNodeRenamed);
+ Assert.IsNull(info.CanRemove);
+ Assert.IsNull(info.OnNodeRemoved);
+ Assert.IsNull(info.CanCheck);
+ Assert.IsNull(info.CheckedState);
+ Assert.IsNull(info.OnNodeChecked);
+ Assert.IsNull(info.CanDrag);
+ Assert.IsNull(info.CanDrop);
+ Assert.IsNull(info.CanInsert);
+ Assert.IsNull(info.OnDrop);
+ }
+ }
+
+ [Test]
+ public void Text_WithContext_ReturnsName()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+ mocks.ReplayAll();
+
+ var context = new DuneErosionFailurePathContext(new DuneErosionFailureMechanism(), assessmentSection);
+
+ using (var plugin = new DuneErosionPlugin())
+ {
+ TreeNodeInfo info = GetInfo(plugin);
+
+ // Call
+ string text = info.Text(context);
+
+ // Assert
+ Assert.AreEqual("Duinafslag", text);
+ }
+
+ mocks.VerifyAll();
+ }
+
+ [Test]
+ public void Image_Always_ReturnsFailureMechanismIcon()
+ {
+ // Setup
+ using (var plugin = new DuneErosionPlugin())
+ {
+ TreeNodeInfo info = GetInfo(plugin);
+
+ // Call
+ Image image = info.Image(null);
+
+ // Assert
+ TestHelper.AssertImagesAreEqual(RiskeerCommonFormsResources.FailureMechanismIcon, image);
+ }
+ }
+
+ [Test]
+ public void ChildNodeObjects_FailureMechanismInAssemblyTrue_ReturnChildDataNodes()
+ {
+ // Setup
+ var assessmentSection = new AssessmentSectionStub();
+ var failureMechanism = new DuneErosionFailureMechanism();
+ var context = new DuneErosionFailurePathContext(failureMechanism, assessmentSection);
+
+ using (var plugin = new DuneErosionPlugin())
+ {
+ TreeNodeInfo info = GetInfo(plugin);
+
+ // Call
+ object[] children = info.ChildNodeObjects(context).ToArray();
+
+ // Assert
+ Assert.AreEqual(2, children.Length);
+ var inputsFolder = (CategoryTreeFolder) children[0];
+ Assert.AreEqual("Invoer", inputsFolder.Name);
+ Assert.AreEqual(TreeFolderCategory.Input, inputsFolder.Category);
+
+ Assert.AreEqual(2, inputsFolder.Contents.Count());
+ var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0);
+ Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData);
+ Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection);
+
+ var inAssemblyInputComments = (Comment) inputsFolder.Contents.ElementAt(1);
+ Assert.AreSame(failureMechanism.InAssemblyInputComments, inAssemblyInputComments);
+
+ var outputsFolder = (CategoryTreeFolder) children[1];
+ Assert.AreEqual("Oordeel", outputsFolder.Name);
+ Assert.AreEqual(TreeFolderCategory.Output, outputsFolder.Category);
+
+ Assert.AreEqual(2, outputsFolder.Contents.Count());
+
+ var failureMechanismResultsContext = (DuneErosionFailureMechanismSectionResultContext) outputsFolder.Contents.ElementAt(0);
+ Assert.AreSame(failureMechanism, failureMechanismResultsContext.FailureMechanism);
+ Assert.AreSame(assessmentSection, failureMechanismResultsContext.AssessmentSection);
+ Assert.AreSame(failureMechanism.SectionResults, failureMechanismResultsContext.WrappedData);
+
+ var inAssemblyOutputComments = (Comment) outputsFolder.Contents.ElementAt(1);
+ Assert.AreSame(failureMechanism.InAssemblyOutputComments, inAssemblyOutputComments);
+ }
+ }
+
+ [Test]
+ public void ChildNodeObjects_FailureMechanismInAssemblyFalse_ReturnChildDataNodes()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+ mocks.ReplayAll();
+
+ var failureMechanism = new DuneErosionFailureMechanism
+ {
+ InAssembly = false
+ };
+ var context = new DuneErosionFailurePathContext(failureMechanism, assessmentSection);
+
+ using (var plugin = new DuneErosionPlugin())
+ {
+ TreeNodeInfo info = GetInfo(plugin);
+
+ // Call
+ object[] children = info.ChildNodeObjects(context).ToArray();
+
+ // Assert
+ Assert.AreEqual(1, children.Length);
+
+ var comment = (Comment) children[0];
+ Assert.AreSame(failureMechanism.NotInAssemblyComments, comment);
+ }
+
+ mocks.VerifyAll();
+ }
+
+ [Test]
+ public void ContextMenuStrip_FailureMechanismInAssemblyTrue_CallsContextMenuBuilderMethods()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+
+ using (var treeViewControl = new TreeViewControl())
+ {
+ var failureMechanism = new DuneErosionFailureMechanism();
+ var context = new DuneErosionFailurePathContext(failureMechanism, assessmentSection);
+
+ var menuBuilder = mocks.StrictMock();
+ using (mocks.Ordered())
+ {
+ menuBuilder.Expect(mb => mb.AddOpenItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddCustomItem(null)).IgnoreArguments().Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddCollapseAllItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddExpandAllItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddPropertiesItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.Build()).Return(null);
+ }
+
+ var gui = mocks.Stub();
+ gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(menuBuilder);
+ gui.Stub(g => g.ViewHost).Return(mocks.Stub());
+ mocks.ReplayAll();
+
+ using (var plugin = new DuneErosionPlugin())
+ {
+ TreeNodeInfo info = GetInfo(plugin);
+
+ plugin.Gui = gui;
+
+ // Call
+ info.ContextMenuStrip(context, null, treeViewControl);
+ }
+ }
+
+ // Assert
+ mocks.VerifyAll();
+ }
+
+ [Test]
+ public void ContextMenuStrip_FailureMechanismInAssemblyFalse_CallsContextMenuBuilderMethods()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+
+ using (var treeViewControl = new TreeViewControl())
+ {
+ var failureMechanism = new DuneErosionFailureMechanism
+ {
+ InAssembly = false
+ };
+ var context = new DuneErosionFailurePathContext(failureMechanism, assessmentSection);
+
+ var menuBuilder = mocks.StrictMock();
+ using (mocks.Ordered())
+ {
+ menuBuilder.Expect(mb => mb.AddCustomItem(null)).IgnoreArguments().Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddCollapseAllItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddExpandAllItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddSeparator()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.AddPropertiesItem()).Return(menuBuilder);
+ menuBuilder.Expect(mb => mb.Build()).Return(null);
+ }
+
+ var gui = mocks.Stub();
+ gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(menuBuilder);
+ gui.Stub(g => g.ViewHost).Return(mocks.Stub());
+ mocks.ReplayAll();
+
+ using (var plugin = new DuneErosionPlugin())
+ {
+ plugin.Gui = gui;
+
+ TreeNodeInfo info = GetInfo(plugin);
+
+ // Call
+ info.ContextMenuStrip(context, null, treeViewControl);
+ }
+ }
+
+ // Assert
+ mocks.VerifyAll();
+ }
+
+ [TestFixture]
+ public class DuneErosionFailurePathContextInAssemblyTreeNodeInfoTest :
+ FailurePathInAssemblyTreeNodeInfoTestFixtureBase
+ {
+ public DuneErosionFailurePathContextInAssemblyTreeNodeInfoTest() : base(2, 0) {}
+
+ protected override DuneErosionFailurePathContext CreateFailureMechanismContext(DuneErosionFailureMechanism failureMechanism,
+ IAssessmentSection assessmentSection)
+ {
+ return new DuneErosionFailurePathContext(failureMechanism, assessmentSection);
+ }
+ }
+
+ private static TreeNodeInfo GetInfo(DuneErosionPlugin plugin)
+ {
+ return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DuneErosionFailurePathContext));
+ }
+ }
+}
\ No newline at end of file
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismResultViewInfoTest.cs
===================================================================
diff -u -rc5219e29c90757003a649a2b39d0e18fcbad1782 -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismResultViewInfoTest.cs (.../DuneErosionFailureMechanismResultViewInfoTest.cs) (revision c5219e29c90757003a649a2b39d0e18fcbad1782)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismResultViewInfoTest.cs (.../DuneErosionFailureMechanismResultViewInfoTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -30,6 +30,7 @@
using Riskeer.Common.Forms.Views;
using Riskeer.DuneErosion.Data;
using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
namespace Riskeer.DuneErosion.Plugin.Test.ViewInfos
{
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/HydraulicLoadsState/DuneErosionFailureMechanismViewInfoTest.cs
===================================================================
diff -u -r1e9842d882c96a9bdde40560b7facfb8cf3db468 -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/HydraulicLoadsState/DuneErosionFailureMechanismViewInfoTest.cs (.../DuneErosionFailureMechanismViewInfoTest.cs) (revision 1e9842d882c96a9bdde40560b7facfb8cf3db468)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/HydraulicLoadsState/DuneErosionFailureMechanismViewInfoTest.cs (.../DuneErosionFailureMechanismViewInfoTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -28,7 +28,7 @@
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.Common.Data.TestUtil;
using Riskeer.DuneErosion.Data;
-using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
using Riskeer.DuneErosion.Forms.Views.HydraulicLoadsState;
namespace Riskeer.DuneErosion.Plugin.Test.ViewInfos.HydraulicLoadsState
Index: Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/RegistrationState/DuneErosionFailureMechanismViewInfoTest.cs
===================================================================
diff -u -r8ae7522403830ec33cc3543de6dd89f4490cc402 -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/RegistrationState/DuneErosionFailureMechanismViewInfoTest.cs (.../DuneErosionFailureMechanismViewInfoTest.cs) (revision 8ae7522403830ec33cc3543de6dd89f4490cc402)
+++ Riskeer/DuneErosion/test/Riskeer.DuneErosion.Plugin.Test/ViewInfos/RegistrationState/DuneErosionFailureMechanismViewInfoTest.cs (.../DuneErosionFailureMechanismViewInfoTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -28,7 +28,7 @@
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.Common.Data.TestUtil;
using Riskeer.DuneErosion.Data;
-using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
using Riskeer.DuneErosion.Forms.Views.RegistrationState;
namespace Riskeer.DuneErosion.Plugin.Test.ViewInfos.RegistrationState
Index: Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs
===================================================================
diff -u -r28bcfbdfd620734930c60df8d0963b3b4b58fa7a -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision 28bcfbdfd620734930c60df8d0963b3b4b58fa7a)
+++ Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -70,7 +70,8 @@
using Riskeer.Common.Util;
using Riskeer.Common.Util.Helpers;
using Riskeer.Common.Util.TypeConverters;
-using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
using Riskeer.DuneErosion.Plugin.Handlers;
using Riskeer.GrassCoverErosionInwards.Forms.PresentationObjects;
using Riskeer.GrassCoverErosionOutwards.Forms.PresentationObjects;
Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/GenericFailureMechanismsContextTreeNodeInfoTest.cs
===================================================================
diff -u -r436a226ddd1cd4d55203bd8239ce8a63ae0e7889 -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/GenericFailureMechanismsContextTreeNodeInfoTest.cs (.../GenericFailureMechanismsContextTreeNodeInfoTest.cs) (revision 436a226ddd1cd4d55203bd8239ce8a63ae0e7889)
+++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/GenericFailureMechanismsContextTreeNodeInfoTest.cs (.../GenericFailureMechanismsContextTreeNodeInfoTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -30,7 +30,7 @@
using Riskeer.ClosingStructures.Forms.PresentationObjects.RegistrationState;
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.Common.Plugin.TestUtil;
-using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.RegistrationState;
using Riskeer.GrassCoverErosionInwards.Forms.PresentationObjects;
using Riskeer.GrassCoverErosionOutwards.Forms.PresentationObjects;
using Riskeer.HeightStructures.Forms.PresentationObjects;
Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/HydraulicLoadsStateRootContextTreeNodeInfoTest.cs
===================================================================
diff -u -r7acad0fffa8ab8be61368d034b41a5bf144c03a2 -rbb0c552234fc721a9f77d5a4bcba8b5abc095f1b
--- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/HydraulicLoadsStateRootContextTreeNodeInfoTest.cs (.../HydraulicLoadsStateRootContextTreeNodeInfoTest.cs) (revision 7acad0fffa8ab8be61368d034b41a5bf144c03a2)
+++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/HydraulicLoadsStateRootContextTreeNodeInfoTest.cs (.../HydraulicLoadsStateRootContextTreeNodeInfoTest.cs) (revision bb0c552234fc721a9f77d5a4bcba8b5abc095f1b)
@@ -34,7 +34,7 @@
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.Common.Data.TestUtil;
using Riskeer.Common.Plugin.TestUtil;
-using Riskeer.DuneErosion.Forms.PresentationObjects;
+using Riskeer.DuneErosion.Forms.PresentationObjects.HydraulicLoadsState;
using Riskeer.GrassCoverErosionOutwards.Forms.PresentationObjects;
using Riskeer.Integration.Data;
using Riskeer.Integration.Forms.PresentationObjects;