Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs =================================================================== diff -u -rac96d7c315129af851634ed5a4a6800b59ede718 -r6097d3e3e379f95bdd8bd8d8fddda831e13a74f7 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision ac96d7c315129af851634ed5a4a6800b59ede718) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision 6097d3e3e379f95bdd8bd8d8fddda831e13a74f7) @@ -171,14 +171,9 @@ { // Setup var assessmentSection = mockRepository.Stub(); + assessmentSection.Stub(a => a.HydraulicBoundaryDatabase).Return(new HydraulicBoundaryDatabase()); - var nodeData = new DesignWaterLevelLocationsContext(assessmentSection) - { - WrappedData = - { - HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase() - } - }; + var nodeData = new DesignWaterLevelLocationsContext(assessmentSection); using (var treeViewControl = new TreeViewControl()) { @@ -216,18 +211,13 @@ { // Setup var assessmentSection = mockRepository.Stub(); - - var nodeData = new DesignWaterLevelLocationsContext(assessmentSection) + assessmentSection.Stub(a => a.HydraulicBoundaryDatabase).Return(new HydraulicBoundaryDatabase { - WrappedData = - { - HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase - { - FilePath = Path.Combine(TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Common.IO, "HydraulicBoundaryDatabaseImporter"), "complete.sqlite") - } - } - }; + FilePath = Path.Combine(TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Common.IO, "HydraulicBoundaryDatabaseImporter"), "complete.sqlite") + }); + var nodeData = new DesignWaterLevelLocationsContext(assessmentSection); + using (var treeViewControl = new TreeViewControl()) { var gui = mockRepository.Stub(); @@ -266,7 +256,7 @@ var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation("locationName"); var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) { - HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + HydraulicBoundaryDatabase = { Locations = { @@ -330,7 +320,7 @@ var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation("locationName"); var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) { - HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + HydraulicBoundaryDatabase = { Locations = { @@ -396,7 +386,7 @@ var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation("locationName"); var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) { - HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + HydraulicBoundaryDatabase = { Locations = { @@ -462,7 +452,7 @@ var location = new TestHydraulicBoundaryLocation("locationName"); var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) { - HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + HydraulicBoundaryDatabase = { Locations = {