Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Plugin/StabilityPointStructuresPlugin.cs =================================================================== diff -u -r2a81f01756e227d5ce93717b21b87e8a5cd5fcbb -r5e7186e07abe3f18473806681004c4179a8fb174 --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Plugin/StabilityPointStructuresPlugin.cs (.../StabilityPointStructuresPlugin.cs) (revision 2a81f01756e227d5ce93717b21b87e8a5cd5fcbb) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Plugin/StabilityPointStructuresPlugin.cs (.../StabilityPointStructuresPlugin.cs) (revision 5e7186e07abe3f18473806681004c4179a8fb174) @@ -210,7 +210,7 @@ Category = RingtoetsCommonFormsResources.Ringtoets_Category, Image = RingtoetsCommonFormsResources.StructuresIcon, FileFilterGenerator = CreateStabilityPointStructureFileFilter(), - IsEnabled = context => context.AssessmentSection.ReferenceLine != null, + IsEnabled = context => context.AssessmentSection.ReferenceLine.Points.Any(), VerifyUpdates = context => VerifyStructuresShouldUpdate( context.FailureMechanism, RingtoetsCommonIOResources.VerifyStructuresShouldUpdate_When_importing_Calculation_with_Structure_data_output_will_be_cleared_confirm) Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ImportInfos/StabilityPointStructuresContextImportInfoTest.cs =================================================================== diff -u -re34e373c61eb0d54ea931f7d43e0ed7ab709760b -r5e7186e07abe3f18473806681004c4179a8fb174 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ImportInfos/StabilityPointStructuresContextImportInfoTest.cs (.../StabilityPointStructuresContextImportInfoTest.cs) (revision e34e373c61eb0d54ea931f7d43e0ed7ab709760b) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ImportInfos/StabilityPointStructuresContextImportInfoTest.cs (.../StabilityPointStructuresContextImportInfoTest.cs) (revision 5e7186e07abe3f18473806681004c4179a8fb174) @@ -139,12 +139,12 @@ } [Test] - public void IsEnabled_ReferenceLineSet_ReturnTrue() + public void IsEnabled_ReferenceLineWithGeometry_ReturnTrue() { // Setup var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); - assessmentSection.Stub(a => a.ReferenceLine).Return(new ReferenceLine()); + assessmentSection.Stub(a => a.ReferenceLine).Return(ReferenceLineTestFactory.CreateReferenceLineWithGeometry()); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); @@ -168,11 +168,12 @@ } [Test] - public void IsEnabled_ReferenceLineNotSet_ReturnFalse() + public void IsEnabled_ReferenceLineNotWithoutGeometry_ReturnFalse() { // Setup var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); + assessmentSection.Stub(a => a.ReferenceLine).Return(new ReferenceLine()); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism();