Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/MacroStabilityInwardsSlipPlaneUpliftVanConverter.cs =================================================================== diff -u -r495c443e6e70674e616ff0bffcf2da22b73a616f -r1b16d1bbb40c8246bd53a1dcfa7803cb92501915 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/MacroStabilityInwardsSlipPlaneUpliftVanConverter.cs (.../MacroStabilityInwardsSlipPlaneUpliftVanConverter.cs) (revision 495c443e6e70674e616ff0bffcf2da22b73a616f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/MacroStabilityInwardsSlipPlaneUpliftVanConverter.cs (.../MacroStabilityInwardsSlipPlaneUpliftVanConverter.cs) (revision 1b16d1bbb40c8246bd53a1dcfa7803cb92501915) @@ -20,8 +20,10 @@ // All rights reserved. using System; +using Core.Common.Base.Data; using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.KernelWrapper.Result; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Service.Converters { @@ -46,20 +48,23 @@ throw new ArgumentNullException(nameof(result)); } - MacroStabilityInwardsGridOutput leftGrid = ConvertGrid(result.LeftGrid); - MacroStabilityInwardsGridOutput rightGrid = ConvertGrid(result.RightGrid); + MacroStabilityInwardsGrid leftGrid = ConvertGrid(result.LeftGrid); + MacroStabilityInwardsGrid rightGrid = ConvertGrid(result.RightGrid); return new MacroStabilityInwardsSlipPlaneUpliftVan(leftGrid, rightGrid, result.TangentLines); } - private static MacroStabilityInwardsGridOutput ConvertGrid(MacroStabilityInwardsGridResult grid) + private static MacroStabilityInwardsGrid ConvertGrid(MacroStabilityInwardsGridResult grid) { - return new MacroStabilityInwardsGridOutput(grid.XLeft, - grid.XRight, - grid.ZTop, - grid.ZBottom, - grid.NumberOfHorizontalPoints, - grid.NumberOfVerticalPoints); + return new MacroStabilityInwardsGrid + { + XLeft = (RoundedDouble) grid.XLeft, + XRight = (RoundedDouble) grid.XRight, + ZTop = (RoundedDouble) grid.ZTop, + ZBottom = (RoundedDouble) grid.ZBottom, + NumberOfHorizontalPoints = grid.NumberOfHorizontalPoints, + NumberOfVerticalPoints = grid.NumberOfVerticalPoints + }; } } } \ No newline at end of file