Index: Riskeer/Integration/test/Riskeer.Integration.Service.Test/RiskeerDataSynchronizationServiceTest.cs =================================================================== diff -u -rb35f3918dba57bcc05bf62e492079789ed9dd64a -r05ccb12347fe3b2591de1b328c20d566de34ab2a --- Riskeer/Integration/test/Riskeer.Integration.Service.Test/RiskeerDataSynchronizationServiceTest.cs (.../RiskeerDataSynchronizationServiceTest.cs) (revision b35f3918dba57bcc05bf62e492079789ed9dd64a) +++ Riskeer/Integration/test/Riskeer.Integration.Service.Test/RiskeerDataSynchronizationServiceTest.cs (.../RiskeerDataSynchronizationServiceTest.cs) (revision 05ccb12347fe3b2591de1b328c20d566de34ab2a) @@ -175,10 +175,10 @@ .Select(c => c.InputParameters) .Where(i => i.HydraulicBoundaryLocation != null)); expectedAffectedItems.AddRange(assessmentSection.Piping.Calculations - .Cast>() + .Cast>() .Where(c => c.HasOutput)); expectedAffectedItems.AddRange(assessmentSection.Piping.Calculations - .Cast>() + .Cast>() .Select(c => c.InputParameters) .Where(i => i.HydraulicBoundaryLocation != null)); expectedAffectedItems.AddRange(assessmentSection.StabilityPointStructures.Calculations @@ -224,7 +224,7 @@ .All(c => c.InputParameters.HydraulicBoundaryLocation == null && !c.HasOutput)); Assert.IsTrue(assessmentSection.HeightStructures.Calculations.Cast>() .All(c => c.InputParameters.HydraulicBoundaryLocation == null && !c.HasOutput)); - Assert.IsTrue(assessmentSection.Piping.Calculations.Cast>() + Assert.IsTrue(assessmentSection.Piping.Calculations.Cast>() .All(c => c.InputParameters.HydraulicBoundaryLocation == null && !c.HasOutput)); Assert.IsTrue(assessmentSection.StabilityPointStructures.Calculations.Cast>() .All(c => c.InputParameters.HydraulicBoundaryLocation == null && !c.HasOutput)); Index: Riskeer/Piping/src/Riskeer.Piping.Plugin/FileImporter/PipingSurfaceLineUpdateDataStrategy.cs =================================================================== diff -u -rf990699959bb0d146317eba670f7855746e7be72 -r05ccb12347fe3b2591de1b328c20d566de34ab2a --- Riskeer/Piping/src/Riskeer.Piping.Plugin/FileImporter/PipingSurfaceLineUpdateDataStrategy.cs (.../PipingSurfaceLineUpdateDataStrategy.cs) (revision f990699959bb0d146317eba670f7855746e7be72) +++ Riskeer/Piping/src/Riskeer.Piping.Plugin/FileImporter/PipingSurfaceLineUpdateDataStrategy.cs (.../PipingSurfaceLineUpdateDataStrategy.cs) (revision 05ccb12347fe3b2591de1b328c20d566de34ab2a) @@ -94,10 +94,10 @@ private IEnumerable UpdateSurfaceLineDependentData(PipingSurfaceLine surfaceLine) { - IEnumerable> affectedCalculations = GetAffectedCalculationWithSurfaceLine(surfaceLine); + IEnumerable> affectedCalculations = GetAffectedCalculationWithSurfaceLine(surfaceLine); var affectedObjects = new List(); - foreach (PipingCalculation affectedCalculation in affectedCalculations) + foreach (IPipingCalculation affectedCalculation in affectedCalculations) { affectedObjects.AddRange(RiskeerCommonDataSynchronizationService.ClearCalculationOutput(affectedCalculation)); } @@ -107,10 +107,10 @@ private IEnumerable UpdateStochasticSoilModel(PipingSurfaceLine updatedSurfaceLine) { - IEnumerable> calculationsToUpdate = GetAffectedCalculationWithSurfaceLine(updatedSurfaceLine); + IEnumerable> calculationsToUpdate = GetAffectedCalculationWithSurfaceLine(updatedSurfaceLine); var affectedObjects = new List(); - foreach (PipingCalculation calculation in calculationsToUpdate) + foreach (IPipingCalculation calculation in calculationsToUpdate) { IEnumerable matchingSoilModels = GetAvailableStochasticSoilModels(updatedSurfaceLine); @@ -122,11 +122,11 @@ return affectedObjects; } - private IEnumerable> GetAffectedCalculationWithSurfaceLine(PipingSurfaceLine surfaceLine) + private IEnumerable> GetAffectedCalculationWithSurfaceLine(PipingSurfaceLine surfaceLine) { - IEnumerable> affectedCalculations = + IEnumerable> affectedCalculations = FailureMechanism.Calculations - .Cast>() + .Cast>() .Where(calc => ReferenceEquals(calc.InputParameters.SurfaceLine, surfaceLine)); return affectedCalculations; } @@ -139,8 +139,8 @@ private void ValidateEntryAndExitPoints(PipingSurfaceLine surfaceLine) { - IEnumerable> affectedCalculations = GetAffectedCalculationWithSurfaceLine(surfaceLine); - foreach (PipingCalculation affectedCalculation in affectedCalculations) + IEnumerable> affectedCalculations = GetAffectedCalculationWithSurfaceLine(surfaceLine); + foreach (IPipingCalculation affectedCalculation in affectedCalculations) { PipingInput inputParameters = affectedCalculation.InputParameters; if (!ValidateLocalCoordinateOnSurfaceLine(surfaceLine, inputParameters.EntryPointL)) Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r3a17278b768b9fad2ea946607126a15b8854f02a -r05ccb12347fe3b2591de1b328c20d566de34ab2a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 3a17278b768b9fad2ea946607126a15b8854f02a) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 05ccb12347fe3b2591de1b328c20d566de34ab2a) @@ -911,7 +911,7 @@ // Assert Assert.AreEqual(2, group.Children.Count); ICalculationBase newlyAddedItem = group.Children.Last(); - Assert.IsInstanceOf>(newlyAddedItem); + Assert.IsInstanceOf>(newlyAddedItem); Assert.AreEqual("Nieuwe berekening (1)", newlyAddedItem.Name, "An item with the same name default name already exists, therefore '(1)' needs to be appended."); }