Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/ViewInfos/MacroStabilityInwardsInputViewInfoTest.cs =================================================================== diff -u -r1b61e079b5ce825f3966ecac688d65e9ff567237 -rac8cec043a90a1a3a2a822d4c9c61ecaaf999d3f --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/ViewInfos/MacroStabilityInwardsInputViewInfoTest.cs (.../MacroStabilityInwardsInputViewInfoTest.cs) (revision 1b61e079b5ce825f3966ecac688d65e9ff567237) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/ViewInfos/MacroStabilityInwardsInputViewInfoTest.cs (.../MacroStabilityInwardsInputViewInfoTest.cs) (revision ac8cec043a90a1a3a2a822d4c9c61ecaaf999d3f) @@ -27,6 +27,7 @@ using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; +using Ringtoets.Common.Data.Hydraulics; using Ringtoets.Common.Data.TestUtil; using Ringtoets.Common.Forms.Properties; using Ringtoets.MacroStabilityInwards.Data; @@ -139,7 +140,7 @@ assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, calculationScenarioContext); @@ -168,7 +169,7 @@ assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, calculationScenarioContext); @@ -198,7 +199,7 @@ assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, calculationGroupContext); @@ -228,7 +229,7 @@ assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, calculationGroupContext); @@ -260,7 +261,7 @@ assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, calculationGroupContext); @@ -292,7 +293,7 @@ assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, calculationGroupContext); @@ -317,7 +318,7 @@ var failureMechanismContext = new MacroStabilityInwardsFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, failureMechanismContext); @@ -342,7 +343,7 @@ var failureMechanismContext = new MacroStabilityInwardsFailureMechanismContext(new MacroStabilityInwardsFailureMechanism(), assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, failureMechanismContext); @@ -370,7 +371,7 @@ var failureMechanismContext = new MacroStabilityInwardsFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, failureMechanismContext); @@ -398,7 +399,7 @@ var failureMechanismContext = new MacroStabilityInwardsFailureMechanismContext(new MacroStabilityInwardsFailureMechanism(), assessmentSection); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, failureMechanismContext); @@ -418,7 +419,7 @@ failureMechanism.CalculationsGroup.Children.Add(calculation); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, failureMechanism); @@ -437,7 +438,7 @@ failureMechanism.CalculationsGroup.Children.Add(calculation); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, new MacroStabilityInwardsFailureMechanism()); @@ -459,7 +460,7 @@ failureMechanism.CalculationsGroup.Children.Add(calculationGroup); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, failureMechanism); @@ -481,7 +482,7 @@ failureMechanism.CalculationsGroup.Children.Add(calculationGroup); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, new MacroStabilityInwardsFailureMechanism()); @@ -508,7 +509,7 @@ mocks.ReplayAll(); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -536,7 +537,7 @@ mocks.ReplayAll(); using (var view = new MacroStabilityInwardsInputView(new MacroStabilityInwardsCalculationScenario(), - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -567,7 +568,7 @@ mocks.ReplayAll(); using (var view = new MacroStabilityInwardsInputView(calculation, - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -598,7 +599,7 @@ mocks.ReplayAll(); using (var view = new MacroStabilityInwardsInputView(new MacroStabilityInwardsCalculationScenario(), - AssessmentSectionHelper.GetTestAssessmentLevel)) + GetHydraulicBoundaryLocationCalculation)) { // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -608,5 +609,10 @@ mocks.VerifyAll(); } } + + private static HydraulicBoundaryLocationCalculation GetHydraulicBoundaryLocationCalculation() + { + return new HydraulicBoundaryLocationCalculation(new TestHydraulicBoundaryLocation()); + } } } \ No newline at end of file