Index: Riskeer/HeightStructures/src/Riskeer.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs =================================================================== diff -u -r4d69c4f4cd06f391026d5dc4f385dd3fba7703fc -r63df093fdcd2337b4426db6b6417bb59afe9186e --- Riskeer/HeightStructures/src/Riskeer.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs (.../HeightStructuresDataSynchronizationService.cs) (revision 4d69c4f4cd06f391026d5dc4f385dd3fba7703fc) +++ Riskeer/HeightStructures/src/Riskeer.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs (.../HeightStructuresDataSynchronizationService.cs) (revision 63df093fdcd2337b4426db6b6417bb59afe9186e) @@ -167,7 +167,6 @@ var changedObjects = new List(); object[] removedObjects = failureMechanism.Sections.OfType() - .Concat(failureMechanism.SectionResultsOld) .Concat(failureMechanism.SectionResults) .Concat(failureMechanism.CalculationsGroup.GetAllChildrenRecursive()) .Concat(failureMechanism.ForeshoreProfiles) @@ -176,7 +175,6 @@ failureMechanism.ClearAllSections(); changedObjects.Add(failureMechanism); - changedObjects.Add(failureMechanism.SectionResultsOld); changedObjects.Add(failureMechanism.SectionResults); failureMechanism.CalculationsGroup.Children.Clear(); Index: Riskeer/HeightStructures/test/Riskeer.HeightStructures.Service.Test/HeightStructuresDataSynchronizationServiceTest.cs =================================================================== diff -u -r4d69c4f4cd06f391026d5dc4f385dd3fba7703fc -r63df093fdcd2337b4426db6b6417bb59afe9186e --- Riskeer/HeightStructures/test/Riskeer.HeightStructures.Service.Test/HeightStructuresDataSynchronizationServiceTest.cs (.../HeightStructuresDataSynchronizationServiceTest.cs) (revision 4d69c4f4cd06f391026d5dc4f385dd3fba7703fc) +++ Riskeer/HeightStructures/test/Riskeer.HeightStructures.Service.Test/HeightStructuresDataSynchronizationServiceTest.cs (.../HeightStructuresDataSynchronizationServiceTest.cs) (revision 63df093fdcd2337b4426db6b6417bb59afe9186e) @@ -462,7 +462,6 @@ HeightStructuresFailureMechanism failureMechanism = CreateFullyConfiguredFailureMechanism(); object[] expectedRemovedObjects = failureMechanism.Sections.OfType() - .Concat(failureMechanism.SectionResultsOld) .Concat(failureMechanism.SectionResults) .Concat(failureMechanism.CalculationsGroup.GetAllChildrenRecursive()) .Concat(failureMechanism.ForeshoreProfiles) @@ -476,16 +475,14 @@ // Note: To make sure the clear is performed regardless of what is done with // the return result, no ToArray() should be called before these assertions: CollectionAssert.IsEmpty(failureMechanism.Sections); - CollectionAssert.IsEmpty(failureMechanism.SectionResultsOld); CollectionAssert.IsEmpty(failureMechanism.SectionResults); CollectionAssert.IsEmpty(failureMechanism.CalculationsGroup.Children); CollectionAssert.IsEmpty(failureMechanism.ForeshoreProfiles); CollectionAssert.IsEmpty(failureMechanism.HeightStructures); IObservable[] array = results.ChangedObjects.ToArray(); - Assert.AreEqual(6, array.Length); + Assert.AreEqual(5, array.Length); CollectionAssert.Contains(array, failureMechanism); - CollectionAssert.Contains(array, failureMechanism.SectionResultsOld); CollectionAssert.Contains(array, failureMechanism.SectionResults); CollectionAssert.Contains(array, failureMechanism.CalculationsGroup); CollectionAssert.Contains(array, failureMechanism.ForeshoreProfiles);