Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionMapView.cs =================================================================== diff -u -rb7af2852f8e12912a108d10493beb19ec9becc46 -refb5a7db973f4a0e5b5f0532a594d7fa14159f41 --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionMapView.cs (.../AssemblyResultPerSectionMapView.cs) (revision b7af2852f8e12912a108d10493beb19ec9becc46) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionMapView.cs (.../AssemblyResultPerSectionMapView.cs) (revision efb5a7db973f4a0e5b5f0532a594d7fa14159f41) @@ -163,6 +163,11 @@ private void SetAllMapDataFeatures() { + if (AssessmentSection.ReferenceLine == null) + { + return; + } + SetReferenceLineMapData(); SetHydraulicBoundaryLocationsMapData(); SetAssemblyResultsMapData(); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionMapViewTest.cs =================================================================== diff -u -r5cf6ea00f68c94751bfe18d690c54757527a17a0 -refb5a7db973f4a0e5b5f0532a594d7fa14159f41 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionMapViewTest.cs (.../AssemblyResultPerSectionMapViewTest.cs) (revision 5cf6ea00f68c94751bfe18d690c54757527a17a0) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionMapViewTest.cs (.../AssemblyResultPerSectionMapViewTest.cs) (revision efb5a7db973f4a0e5b5f0532a594d7fa14159f41) @@ -70,11 +70,10 @@ } [Test] - public void Constructor_WithAssessmentSection_ExpectedValues() + public void Constructor_WithAssessmentSectionWithoutData_ExpectedValues() { // Setup AssessmentSection assessmentSection = CreateAssessmentSection(); - assessmentSection.ReferenceLine = new ReferenceLine(); // Call using (var view = new AssemblyResultPerSectionMapView(assessmentSection)) @@ -103,7 +102,7 @@ CollectionAssert.IsEmpty(assemblyResultsLineMapData.Features); CollectionAssert.IsEmpty(hydraulicBoundaryLocationsMapData.Features); - Assert.AreEqual(1, referenceLineMapData.Features.Count()); + CollectionAssert.IsEmpty(referenceLineMapData.Features); Assert.AreEqual("Gecombineerd vakoordeel", assemblyResultsLineMapData.Name); Assert.AreEqual("Hydraulische belastingen", hydraulicBoundaryLocationsMapData.Name); @@ -115,7 +114,7 @@ public void Constructor_AssessmentSectionWithBackgroundData_BackgroundDataSet() { // Setup - AssessmentSection assessmentSection = CreateAssessmentSectionWithReferenceLine(); + AssessmentSection assessmentSection = CreateAssessmentSection(); // Call using (var view = new AssemblyResultPerSectionMapView(assessmentSection)) @@ -324,7 +323,6 @@ var mocks = new MockRepository(); IObserver[] observers = AttachMapDataObservers(mocks, mapData.Collection); observers[assemblyResultsIndex].Expect(obs => obs.UpdateObserver()); -// observers[referenceLineIndex].Expect(obs => obs.UpdateObserver()); mocks.ReplayAll(); IEnumerable expectedResults =