Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/UpdateInfos/ForeshoreProfileContextUpdateInfoTest.cs =================================================================== diff -u -r7fa0ffcb9828013298830fab8fc3071e9b7587c7 -r5ee23018be55ff03a7851e54ca0a6682c521f952 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/UpdateInfos/ForeshoreProfileContextUpdateInfoTest.cs (.../ForeshoreProfileContextUpdateInfoTest.cs) (revision 7fa0ffcb9828013298830fab8fc3071e9b7587c7) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/UpdateInfos/ForeshoreProfileContextUpdateInfoTest.cs (.../ForeshoreProfileContextUpdateInfoTest.cs) (revision 5ee23018be55ff03a7851e54ca0a6682c521f952) @@ -122,16 +122,17 @@ } [Test] - public void IsEnabled_ReferenceLineSet_ReturnTrue() + public void IsEnabled_SourcePathSet_ReturnTrue() { // Setup var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); - assessmentSection.ReferenceLine = new ReferenceLine(); var failureMechanism = mocks.Stub(); mocks.ReplayAll(); var foreshoreProfiles = new ForeshoreProfileCollection(); + foreshoreProfiles.AddRange(Enumerable.Empty(), + "path"); var context = new ForeshoreProfilesContext(foreshoreProfiles, failureMechanism, assessmentSection); @@ -149,12 +150,11 @@ } [Test] - public void IsEnabled_ReferenceLineNotSet_ReturnFalse() + public void IsEnabled_SourcePathNotSet_ReturnFalse() { // Setup var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); - assessmentSection.ReferenceLine = null; var failureMechanism = mocks.Stub(); mocks.ReplayAll(); @@ -201,13 +201,13 @@ mocks.ReplayAll(); const string expectedFilePath = "some/path"; - var surfaceLines = new ForeshoreProfileCollection(); - surfaceLines.AddRange(new[] + var foreshoreProfiles = new ForeshoreProfileCollection(); + foreshoreProfiles.AddRange(new[] { new TestForeshoreProfile() }, expectedFilePath); - var context = new ForeshoreProfilesContext(surfaceLines, failureMechanism, assessmentSection); + var context = new ForeshoreProfilesContext(foreshoreProfiles, failureMechanism, assessmentSection); using (var plugin = new RingtoetsPlugin()) { @@ -331,7 +331,7 @@ private static UpdateInfo GetUpdateInfo(RingtoetsPlugin plugin) { - return plugin.GetUpdateInfos().First(ii => ii.DataType == typeof(ForeshoreProfilesContext)); + return plugin.GetUpdateInfos().First(ui => ui.DataType == typeof(ForeshoreProfilesContext)); } } } \ No newline at end of file