Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingBligh/DamPipingBlighKernelWrapperTests.cs =================================================================== diff -u -r4628 -r5416 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingBligh/DamPipingBlighKernelWrapperTests.cs (.../DamPipingBlighKernelWrapperTests.cs) (revision 4628) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingBligh/DamPipingBlighKernelWrapperTests.cs (.../DamPipingBlighKernelWrapperTests.cs) (revision 5416) @@ -27,6 +27,7 @@ using Deltares.DamEngine.Data.Design; using Deltares.DamEngine.Data.General; using Deltares.DamEngine.Data.General.Results; +using Deltares.DamEngine.Data.Geotechnics; using Deltares.DamEngine.Data.Standard.Calculation; using Deltares.DamEngine.Data.Standard.Logging; using Deltares.DamEngine.TestHelpers.Factories; @@ -47,25 +48,30 @@ // FoSbe = Hcbe / reducedFall = 2.25 / 0.5 const double diff = 0.0001; + + var subSoilScenario = new SoilGeometryProbability + { + SoilProfile1D = FactoryForSoilProfiles.CreateClaySandProfileForPipingBligh(out SoilList soilList), + SegmentFailureMechanismType = SegmentFailureMechanismType.Piping + }; var location = new Location("Location 1") { SurfaceLine = FactoryForSurfaceLines.CreateSurfaceLineTutorial1(), ModelFactors = { UpliftCriterionPiping = 1.0 - } + }, + CurrentScenario = new DesignScenario(), + DikeEmbankmentMaterial = soilList.Soils[0].Name, + SoilList = soilList }; - location.CurrentScenario = new DesignScenario(); var damFailureMechanismeCalculationSpecification = new DamFailureMechanismeCalculationSpecification { FailureMechanismSystemType = FailureMechanismSystemType.Piping, PipingModelType = PipingModelType.Bligh }; - var subSoilScenario = new SoilGeometryProbability(); - subSoilScenario.SoilProfile1D = FactoryForSoilProfiles.CreateClaySandProfileForPipingBligh(); - subSoilScenario.SegmentFailureMechanismType = SegmentFailureMechanismType.Piping; - + var damKernelInput = new DamKernelInput { Location = location, @@ -124,14 +130,25 @@ public void TestPrepare() { const double diff = 0.0001; + + var subSoilScenario = new SoilGeometryProbability + { + SoilProfile1D = FactoryForSoilProfiles.CreateClaySandProfileForPipingBligh(out SoilList soilList), + SegmentFailureMechanismType = SegmentFailureMechanismType.Piping + }; - var location = new Location(); - location.SurfaceLine = FactoryForSurfaceLines.CreateSurfaceLineTutorial1(); - location.ModelFactors.UpliftCriterionPiping = 1.0; - location.CurrentScenario = new DesignScenario(); - var subSoilScenario = new SoilGeometryProbability(); - subSoilScenario.SoilProfile1D = FactoryForSoilProfiles.CreateClaySandProfileForPipingBligh(); - subSoilScenario.SegmentFailureMechanismType = SegmentFailureMechanismType.Piping; + var location = new Location + { + SurfaceLine = FactoryForSurfaceLines.CreateSurfaceLineTutorial1(), + ModelFactors = + { + UpliftCriterionPiping = 1.0 + }, + CurrentScenario = new DesignScenario(), + DikeEmbankmentMaterial = soilList.Soils[0].Name, + SoilList = soilList + }; + var damFailureMechanismeCalculationSpecification = new DamFailureMechanismeCalculationSpecification { FailureMechanismSystemType = FailureMechanismSystemType.Piping, @@ -189,9 +206,11 @@ { var kernelWrapper = new DamPipingBlighKernelWrapper(); - var subSoilScenario = new SoilGeometryProbability(); - subSoilScenario.SoilProfile1D = FactoryForSoilProfiles.CreateClaySandProfileForPipingBligh(); - subSoilScenario.SegmentFailureMechanismType = SegmentFailureMechanismType.Piping; + var subSoilScenario = new SoilGeometryProbability + { + SoilProfile1D = FactoryForSoilProfiles.CreateClaySandProfileForPipingBligh(out _), + SegmentFailureMechanismType = SegmentFailureMechanismType.Piping + }; var damFailureMechanismeCalculationSpecification = new DamFailureMechanismeCalculationSpecification { FailureMechanismSystemType = FailureMechanismSystemType.Piping,