Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/ClosingStructuresImporterTest.cs =================================================================== diff -u -r12cec002453a1828efc68633fbd25219632c6c47 -r207fcf758cac8237b31af99f7f54278b32eba658 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/ClosingStructuresImporterTest.cs (.../ClosingStructuresImporterTest.cs) (revision 12cec002453a1828efc68633fbd25219632c6c47) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/ClosingStructuresImporterTest.cs (.../ClosingStructuresImporterTest.cs) (revision 207fcf758cac8237b31af99f7f54278b32eba658) @@ -23,6 +23,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using Core.Common.Base; using Core.Common.Base.Geometry; using Core.Common.TestUtil; using NUnit.Framework; @@ -314,6 +315,42 @@ Assert.IsTrue(importResult); } + [Test] + public void DoPostImport_UpdateStrategyReturningObservables_AllObservablesNotified() + { + var messageProvider = mocks.Stub(); + + var observableA = mocks.StrictMock(); + observableA.Expect(o => o.NotifyObservers()); + var observableB = mocks.StrictMock(); + observableB.Expect(o => o.NotifyObservers()); + IObservable[] observables = + { + observableA, + observableB + }; + + var strategy = mocks.StrictMock>(); + strategy.Expect(s => s.UpdateStructuresWithImportedData(null, null, null)).IgnoreArguments().Return(observables); + mocks.ReplayAll(); + + string filePath = Path.Combine(testDataPath, nameof(ClosingStructuresImporter), "Kunstwerken.shp"); + + var importTarget = new StructureCollection(); + ReferenceLine referenceLine = CreateReferenceLine(); + + var importer = new ClosingStructuresImporter(importTarget, referenceLine, filePath, + messageProvider, strategy); + + importer.Import(); + + // Call + importer.DoPostImport(); + + // Assert + // Assertions performed in TearDown + } + private static ReferenceLine CreateReferenceLine() { var referencePoints = new List