Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextStochasticSoilModelSelectionEditorTest.cs =================================================================== diff -u -r3d30a9febb6492e54f2082bf0a21a1602717b098 -r7372a1053a021887d88cbda6cf131336fab7c32d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextStochasticSoilModelSelectionEditorTest.cs (.../MacroStabilityInwardsInputContextStochasticSoilModelSelectionEditorTest.cs) (revision 3d30a9febb6492e54f2082bf0a21a1602717b098) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextStochasticSoilModelSelectionEditorTest.cs (.../MacroStabilityInwardsInputContextStochasticSoilModelSelectionEditorTest.cs) (revision 7372a1053a021887d88cbda6cf131336fab7c32d) @@ -23,6 +23,7 @@ using System.ComponentModel; using System.Linq; using System.Windows.Forms.Design; +using Core.Common.Base.Data; using Core.Common.Base.Geometry; using Core.Common.Gui.PropertyBag; using NUnit.Framework; @@ -71,7 +72,7 @@ failureMechanism, assessmentSection); - var properties = new MacroStabilityInwardsInputContextProperties(inputContext, handler); + var properties = new MacroStabilityInwardsInputContextProperties(inputContext, GetCalculatedTestAssessmentLevel, handler); var editor = new MacroStabilityInwardsInputContextStochasticSoilModelSelectionEditor(); var someValue = new object(); @@ -140,7 +141,7 @@ failureMechanism, assessmentSection); - var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, handler); + var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, GetCalculatedTestAssessmentLevel, handler); var editor = new MacroStabilityInwardsInputContextStochasticSoilModelSelectionEditor(); var someValue = new object(); @@ -160,5 +161,10 @@ mockRepository.VerifyAll(); } + + private static RoundedDouble GetCalculatedTestAssessmentLevel() + { + return (RoundedDouble) 1.1; + } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextStochasticSoilProfileSelectionEditorTest.cs =================================================================== diff -u -r3d30a9febb6492e54f2082bf0a21a1602717b098 -r7372a1053a021887d88cbda6cf131336fab7c32d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextStochasticSoilProfileSelectionEditorTest.cs (.../MacroStabilityInwardsInputContextStochasticSoilProfileSelectionEditorTest.cs) (revision 3d30a9febb6492e54f2082bf0a21a1602717b098) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextStochasticSoilProfileSelectionEditorTest.cs (.../MacroStabilityInwardsInputContextStochasticSoilProfileSelectionEditorTest.cs) (revision 7372a1053a021887d88cbda6cf131336fab7c32d) @@ -23,6 +23,7 @@ using System.ComponentModel; using System.Linq; using System.Windows.Forms.Design; +using Core.Common.Base.Data; using Core.Common.Base.Geometry; using Core.Common.Gui.PropertyBag; using NUnit.Framework; @@ -72,7 +73,7 @@ failureMechanism, assessmentSection); - var properties = new MacroStabilityInwardsInputContextProperties(inputContext, handler); + var properties = new MacroStabilityInwardsInputContextProperties(inputContext, GetCalculatedTestAssessmentLevel, handler); var editor = new MacroStabilityInwardsInputContextStochasticSoilProfileSelectionEditor(); var someValue = new object(); @@ -141,7 +142,7 @@ failureMechanism, assessmentSection); - var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, handler); + var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, GetCalculatedTestAssessmentLevel, handler); var editor = new MacroStabilityInwardsInputContextStochasticSoilProfileSelectionEditor(); var someValue = new object(); @@ -161,5 +162,10 @@ mockRepository.VerifyAll(); } + + private static RoundedDouble GetCalculatedTestAssessmentLevel() + { + return (RoundedDouble) 1.1; + } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextSurfaceLineSelectionEditorTest.cs =================================================================== diff -u -r3d30a9febb6492e54f2082bf0a21a1602717b098 -r7372a1053a021887d88cbda6cf131336fab7c32d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextSurfaceLineSelectionEditorTest.cs (.../MacroStabilityInwardsInputContextSurfaceLineSelectionEditorTest.cs) (revision 3d30a9febb6492e54f2082bf0a21a1602717b098) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/UITypeEditors/MacroStabilityInwardsInputContextSurfaceLineSelectionEditorTest.cs (.../MacroStabilityInwardsInputContextSurfaceLineSelectionEditorTest.cs) (revision 7372a1053a021887d88cbda6cf131336fab7c32d) @@ -23,6 +23,7 @@ using System.ComponentModel; using System.Linq; using System.Windows.Forms.Design; +using Core.Common.Base.Data; using Core.Common.Base.Geometry; using Core.Common.Gui.PropertyBag; using NUnit.Framework; @@ -69,7 +70,7 @@ failureMechanism, assessmentSection); - var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, handler); + var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, GetCalculatedTestAssessmentLevel, handler); var editor = new MacroStabilityInwardsInputContextSurfaceLineSelectionEditor(); var someValue = new object(); @@ -124,7 +125,7 @@ failureMechanism, assessmentSection); - var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, handler); + var properties = new MacroStabilityInwardsInputContextProperties(inputParametersContext, GetCalculatedTestAssessmentLevel, handler); var editor = new MacroStabilityInwardsInputContextSurfaceLineSelectionEditor(); var someValue = new object(); @@ -145,6 +146,11 @@ mockRepository.VerifyAll(); } + private static RoundedDouble GetCalculatedTestAssessmentLevel() + { + return (RoundedDouble) 1.1; + } + private static MacroStabilityInwardsSurfaceLine ValidSurfaceLine() { var surfaceLine = new MacroStabilityInwardsSurfaceLine(string.Empty);