Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r292d48edd58ecc90e222f6ba5d32e90c0528a419 -radd22f893c9b8b84df870a4d39d08f26c23f021c --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 292d48edd58ecc90e222f6ba5d32e90c0528a419) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision add22f893c9b8b84df870a4d39d08f26c23f021c) @@ -754,7 +754,7 @@ Category = RingtoetsCommonFormsResources.Ringtoets_Category, Image = Resources.Foreshore, FileFilterGenerator = CreateForeshoreProfileFileFilterGenerator, - IsEnabled = context => context.ParentAssessmentSection.ReferenceLine != null, + IsEnabled = context => context.ParentAssessmentSection.ReferenceLine.Points.Any(), VerifyUpdates = context => VerifyForeshoreProfileUpdates(context, Resources.RingtoetsPlugin_VerifyForeshoreProfileUpdates_When_importing_ForeshoreProfile_definitions_assigned_to_calculations_output_will_be_cleared_confirm) }; } Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ImportInfos/ForeshoreProfilesContextImportInfoTest.cs =================================================================== diff -u -r147a4c089012e526cf1526ef58919c7b29ae5056 -radd22f893c9b8b84df870a4d39d08f26c23f021c --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ImportInfos/ForeshoreProfilesContextImportInfoTest.cs (.../ForeshoreProfilesContextImportInfoTest.cs) (revision 147a4c089012e526cf1526ef58919c7b29ae5056) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ImportInfos/ForeshoreProfilesContextImportInfoTest.cs (.../ForeshoreProfilesContextImportInfoTest.cs) (revision add22f893c9b8b84df870a4d39d08f26c23f021c) @@ -35,6 +35,7 @@ using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.DikeProfiles; using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Data.TestUtil; using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.IO.FileImporters; using Ringtoets.Integration.Plugin.Properties; @@ -121,12 +122,12 @@ } [Test] - public void IsEnabled_ReferenceLineSet_ReturnTrue() + public void IsEnabled_ReferenceWithGeometry_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()); var failureMechanism = mocks.Stub(); mocks.ReplayAll(); @@ -149,7 +150,7 @@ } [Test] - public void IsEnabled_ReferenceLineNotSet_ReturnFalse() + public void IsEnabled_ReferenceLineWithoutGeometry_ReturnFalse() { // Setup var mocks = new MockRepository();