Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r089b1751f93a8356afef1d4b515fec83d6e53abb -rcd60614e98edb75287226e59be864626bb3ce8ad --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 089b1751f93a8356afef1d4b515fec83d6e53abb) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision cd60614e98edb75287226e59be864626bb3ce8ad) @@ -1363,15 +1363,16 @@ private static object[] HydraulicBoundaryDatabaseChildNodeObjects(HydraulicBoundaryDatabaseContext nodeData) { - if (nodeData.WrappedData.HydraulicBoundaryDatabase == null) + if (nodeData.WrappedData.HydraulicBoundaryDatabase.IsCoupled()) { - return new object[0]; + return new object[] + { + new DesignWaterLevelLocationsContext(nodeData.WrappedData), + new WaveHeightLocationsContext(nodeData.WrappedData) + }; } - return new object[] - { - new DesignWaterLevelLocationsContext(nodeData.WrappedData), - new WaveHeightLocationsContext(nodeData.WrappedData) - }; + + return new object[0]; } private ContextMenuStrip DesignWaterLevelLocationsContextMenuStrip(DesignWaterLevelLocationsContext nodeData, object parentData, TreeViewControl treeViewControl) Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs =================================================================== diff -u -r089b1751f93a8356afef1d4b515fec83d6e53abb -rcd60614e98edb75287226e59be864626bb3ce8ad --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision 089b1751f93a8356afef1d4b515fec83d6e53abb) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision cd60614e98edb75287226e59be864626bb3ce8ad) @@ -214,7 +214,7 @@ } [Test] - public void ChildNodeObjects_NoHydraulicBoundaryDatabaseSet_ReturnsEmpty() + public void ChildNodeObjects_HydraulicBoundaryDatabaseNotCoupled_ReturnsEmpty() { // Setup var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); @@ -233,14 +233,16 @@ } [Test] - public void ChildNodeObjects_HydraulicBoundaryDatabaseSet_ReturnsChildrenOfData() + public void ChildNodeObjects_HydraulicBoundaryDatabaseCoupled_ReturnsChildrenOfData() { // Setup var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) { - HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase() + HydraulicBoundaryDatabase = + { + FilePath = "databaseFile" + } }; - var hydraulicBoundaryDatabaseContext = new HydraulicBoundaryDatabaseContext(assessmentSection); using (var plugin = new RingtoetsPlugin())