Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamMacroStabilityInwards/DamMacroStabilityInwardsKernelWrapperTests.cs =================================================================== diff -u -r1137 -r1144 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamMacroStabilityInwards/DamMacroStabilityInwardsKernelWrapperTests.cs (.../DamMacroStabilityInwardsKernelWrapperTests.cs) (revision 1137) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamMacroStabilityInwards/DamMacroStabilityInwardsKernelWrapperTests.cs (.../DamMacroStabilityInwardsKernelWrapperTests.cs) (revision 1144) @@ -31,6 +31,7 @@ using Deltares.DamEngine.Calculators.KernelWrappers.DamMacroStabilityInwards; using Deltares.DamEngine.Calculators.KernelWrappers.Interfaces; using Deltares.DamEngine.Calculators.Tests.KernelWrappers.DamMacroStabilityCommon; +using Deltares.DamEngine.Data.Design; using Deltares.DamEngine.Data.General; using Deltares.DamEngine.Data.General.Results; using Deltares.DamEngine.Data.Standard.Logging; @@ -94,12 +95,12 @@ var line = FactoryForSurfaceLines.CreateSurfaceLineTutorial1(); var location = new Location(); var scenario = DamMacroStabilityTestHelper.CreateScenarioForLocation(location, line); - scenario.Location.StabilityOptions = new StabilityOptions(); - scenario.Location.StabilityOptions.TrafficLoad = 10.0; - scenario.Location.StabilityOptions.SoilGeometries2DPath = geometryPath; - scenario.Location.StabilityOptions.SoilDatabaseName = soilDbName; - scenario.ModelFactors.RequiredSafetyFactorStabilityInnerSlope = 1.1; - scenario.ModelFactors.UpliftCriterionStability = 1.2; + location.StabilityOptions = new StabilityOptions(); + location.StabilityOptions.TrafficLoad = 10.0; + location.StabilityOptions.SoilGeometries2DPath = geometryPath; + location.StabilityOptions.SoilDatabaseName = soilDbName; + location.ModelFactors.RequiredSafetyFactorStabilityInnerSlope = 1.1; + location.ModelFactors.UpliftCriterionStability = 1.2; var subSoilScenario = new SoilGeometryProbability(); subSoilScenario.StiFileName = soilGeometry2DName; @@ -150,8 +151,9 @@ } // Fill the design results + var designScenario = DamMacroStabilityTestHelper.CreateScenarioForLocation(damKernelInput.Location, damKernelInput.Location.SurfaceLine); List results; - kernelWrapper.PostProcess(damKernelInput, damMacroStabilityOutput, null, "", out results); + kernelWrapper.PostProcess(damKernelInput, damMacroStabilityOutput, designScenario, "", out results); Assert.AreEqual(expectedOutputValues.Count, results.Count); for (int index = 0; index < expectedOutputValues.Count; index++) { @@ -283,7 +285,11 @@ failureMechanismParametersMStab.MStabParameters.CalculationOptions.MinimalCircleDepth = 1.0; failureMechanismParametersMStab.MStabParameters.Model = MStabModelType.Bishop; kernelWrapper.FailureMechanismParametersMStab = failureMechanismParametersMStab; - kernelWrapper.PostProcess(damKernelInput, output, null, "", out results); + DesignScenario designScenario = new DesignScenario + { + Location = damKernelInput.Location + }; + kernelWrapper.PostProcess(damKernelInput, output, designScenario, "", out results); Assert.AreEqual(1.1, results[0].StabilityDesignResults.SafetyFactor); Assert.AreEqual(1.1, results[0].StabilityDesignResults.Zone1SafetyFactor); Assert.AreEqual(1.2, results[0].StabilityDesignResults.LocalZone1EntryPointX);