Index: Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/RingtoetsDataSynchronizationServiceTest.cs =================================================================== diff -u -r2973c5f790a5131e427bd5f73e2a620044199639 -rab20c4eb4ca81bd3845d50210d2bdb301177af6a --- Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/RingtoetsDataSynchronizationServiceTest.cs (.../RingtoetsDataSynchronizationServiceTest.cs) (revision 2973c5f790a5131e427bd5f73e2a620044199639) +++ Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/RingtoetsDataSynchronizationServiceTest.cs (.../RingtoetsDataSynchronizationServiceTest.cs) (revision ab20c4eb4ca81bd3845d50210d2bdb301177af6a) @@ -28,6 +28,7 @@ using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.Probability; +using Ringtoets.Common.Data.Structures; using Ringtoets.GrassCoverErosionInwards.Data; using Ringtoets.GrassCoverErosionOutwards.Data; using Ringtoets.HeightStructures.Data; @@ -73,8 +74,8 @@ Output = new GrassCoverErosionInwardsOutput(0, false, new ProbabilityAssessmentOutput(0, 0, 0, 0, 0), 0) }; - var emptyHeightStructuresCalculation = new HeightStructuresCalculation(); - var heightStructuresCalculation = new HeightStructuresCalculation + var emptyHeightStructuresCalculation = new StructuresCalculation(); + var heightStructuresCalculation = new StructuresCalculation { Output = new ProbabilityAssessmentOutput(0, 0, 0, 0, 0) }; @@ -186,12 +187,12 @@ { // Setup var failureMechanism1 = new HeightStructuresFailureMechanism(); - failureMechanism1.CalculationsGroup.Children.Add(new HeightStructuresCalculation + failureMechanism1.CalculationsGroup.Children.Add(new StructuresCalculation { Output = new ProbabilityAssessmentOutput(0, 0, 0, 0, 0) }); var failureMechanism2 = new HeightStructuresFailureMechanism(); - failureMechanism2.CalculationsGroup.Children.Add(new HeightStructuresCalculation + failureMechanism2.CalculationsGroup.Children.Add(new StructuresCalculation { Output = new ProbabilityAssessmentOutput(0, 0, 0, 0, 0) }); @@ -209,8 +210,8 @@ IEnumerable affectedItems = RingtoetsDataSynchronizationService.ClearFailureMechanismCalculationOutputs(assessmentSection); // Assert - HeightStructuresCalculation calculation1 = (HeightStructuresCalculation) failureMechanism1.CalculationsGroup.Children[0]; - HeightStructuresCalculation calculation2 = (HeightStructuresCalculation) failureMechanism2.CalculationsGroup.Children[0]; + StructuresCalculation calculation1 = (StructuresCalculation)failureMechanism1.CalculationsGroup.Children[0]; + StructuresCalculation calculation2 = (StructuresCalculation)failureMechanism2.CalculationsGroup.Children[0]; Assert.IsNull(calculation1.Output); Assert.IsNull(calculation2.Output); CollectionAssert.AreEqual(new[] @@ -259,8 +260,8 @@ Output = new GrassCoverErosionInwardsOutput(0, false, new ProbabilityAssessmentOutput(0, 0, 0, 0, 0), 0) }; - var emptyHeightStructuresCalculation = new HeightStructuresCalculation(); - var heightStructuresCalculation = new HeightStructuresCalculation + var emptyHeightStructuresCalculation = new StructuresCalculation(); + var heightStructuresCalculation = new StructuresCalculation { InputParameters = { @@ -365,8 +366,8 @@ } }; - var emptyHeightStructuresCalculation = new HeightStructuresCalculation(); - var heightStructuresCalculation = new HeightStructuresCalculation + var emptyHeightStructuresCalculation = new StructuresCalculation(); + var heightStructuresCalculation = new StructuresCalculation { InputParameters = { @@ -453,8 +454,8 @@ Output = new GrassCoverErosionInwardsOutput(0, false, new ProbabilityAssessmentOutput(0, 0, 0, 0, 0), 0) }; - var emptyHeightStructuresCalculation = new HeightStructuresCalculation(); - var heightStructuresCalculation = new HeightStructuresCalculation + var emptyHeightStructuresCalculation = new StructuresCalculation(); + var heightStructuresCalculation = new StructuresCalculation { Output = new ProbabilityAssessmentOutput(0, 0, 0, 0, 0) }; @@ -519,7 +520,7 @@ var emptyPipingCalculation = new PipingCalculation(new GeneralPipingInput()); var emptyGrassCoverErosionInwardsCalculation = new GrassCoverErosionInwardsCalculation(); - var emptyHeightStructuresCalculation = new HeightStructuresCalculation(); + var emptyHeightStructuresCalculation = new StructuresCalculation(); var emptyStabilityStoneCoverWaveConditionsCalculation = new StabilityStoneCoverWaveConditionsCalculation(); var emptyGrassCoverErosionOutwardsCalculation = new GrassCoverErosionOutwardsWaveConditionsCalculation(); var emptyWaveImpactAshpaltCoverWaveConditionsCalculation = new WaveImpactAsphaltCoverWaveConditionsCalculation();