Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs =================================================================== diff -u -rd71e7a35f747b79932dd220507568837e3ff69a1 -rdd403402744c68406685f2838f6f41e23eada5f2 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision d71e7a35f747b79932dd220507568837e3ff69a1) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision dd403402744c68406685f2838f6f41e23eada5f2) @@ -25,7 +25,6 @@ using System.Linq; using System.Threading; using System.Windows.Forms; -using Core.Common.Base; using Core.Common.Controls.TreeView; using Core.Common.Gui; using Core.Common.Gui.ContextMenu; @@ -58,11 +57,6 @@ private readonly string testDataPath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Integration.Service, "HydraRingCalculation"); - public override void Setup() - { - mockRepository = new MockRepository(); - } - [Test] public void Initialized_Always_ExpectedPropertiesSet() { @@ -500,14 +494,6 @@ } }; - var assessmentSectionObserver = mockRepository.StrictMock(); - assessmentSectionObserver.Expect(o => o.UpdateObserver()); - assessmentSection.Attach(assessmentSectionObserver); - - var databaseObserver = mockRepository.StrictMock(); - databaseObserver.Expect(o => o.UpdateObserver()); - assessmentSection.HydraulicBoundaryDatabase.Attach(databaseObserver); - var context = new DesignWaterLevelLocationsContext(assessmentSection); using (var treeViewControl = new TreeViewControl()) @@ -566,6 +552,11 @@ mockRepository.VerifyAll(); } + public override void Setup() + { + mockRepository = new MockRepository(); + } + private static TreeNodeInfo GetInfo(RingtoetsPlugin plugin) { return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DesignWaterLevelLocationsContext));