Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacrostabilityOutwards/MacroStabilityOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -r59512bde82de1297788119a8cacd067789389d41 -racf5179b0dfbd5e76a46b2014c6899c7c33b525d --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacrostabilityOutwards/MacroStabilityOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../MacroStabilityOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision 59512bde82de1297788119a8cacd067789389d41) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacrostabilityOutwards/MacroStabilityOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../MacroStabilityOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision acf5179b0dfbd5e76a46b2014c6899c7c33b525d) @@ -41,13 +41,13 @@ var random = new Random(); var assessmentLayerOneResult = random.NextEnumValue(); const double assessmentLayerTwoAResult = 0.2; - const double assessmentLayerThreeResult = 3.2; + const double assessmentLayerThreeResult = 0.4; var sectionResult = new MacroStabilityOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection()) { AssessmentLayerOne = assessmentLayerOneResult, - DetailedAssessmentProbability = (RoundedDouble) assessmentLayerTwoAResult, - TailorMadeAssessmentProbability = (RoundedDouble) assessmentLayerThreeResult + DetailedAssessmentProbability = assessmentLayerTwoAResult, + TailorMadeAssessmentProbability = assessmentLayerThreeResult }; // Call Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MacroStabilityOutwardsResultView.cs =================================================================== diff -u -r2646be725cec5e667ad092fe51e31f901d8efc1b -racf5179b0dfbd5e76a46b2014c6899c7c33b525d --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MacroStabilityOutwardsResultView.cs (.../MacroStabilityOutwardsResultView.cs) (revision 2646be725cec5e667ad092fe51e31f901d8efc1b) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MacroStabilityOutwardsResultView.cs (.../MacroStabilityOutwardsResultView.cs) (revision acf5179b0dfbd5e76a46b2014c6899c7c33b525d) @@ -19,13 +19,15 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; using Core.Common.Base; using Core.Common.Controls.DataGrid; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Forms.Builders; using Ringtoets.Common.Forms.Helpers; using Ringtoets.Common.Forms.Views; +using Ringtoets.Common.Primitives; using Ringtoets.Integration.Data.StandAlone; using Ringtoets.Integration.Data.StandAlone.SectionResults; using Ringtoets.Integration.Forms.Views.SectionResultRows; Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultViews/MacrostabilityOutwardsResultViewTest.cs =================================================================== diff -u -r2646be725cec5e667ad092fe51e31f901d8efc1b -racf5179b0dfbd5e76a46b2014c6899c7c33b525d --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultViews/MacrostabilityOutwardsResultViewTest.cs (.../MacrostabilityOutwardsResultViewTest.cs) (revision 2646be725cec5e667ad092fe51e31f901d8efc1b) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultViews/MacrostabilityOutwardsResultViewTest.cs (.../MacrostabilityOutwardsResultViewTest.cs) (revision acf5179b0dfbd5e76a46b2014c6899c7c33b525d) @@ -228,6 +228,10 @@ bool cellEnabled) { // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + var result = new MacroStabilityOutwardsFailureMechanismSectionResult( FailureMechanismSectionTestFactory.CreateFailureMechanismSection()) { @@ -240,7 +244,7 @@ // Call using (var form = new Form()) - using (var view = new MacroStabilityOutwardsResultView(sectionResults, new MacroStabilityOutwardsFailureMechanism())) + using (var view = new MacroStabilityOutwardsResultView(sectionResults, new MacroStabilityOutwardsFailureMechanism(), assessmentSection)) { form.Controls.Add(view); form.Show(); @@ -253,6 +257,7 @@ { detailedAssessmentProbabilityIndex }, cellEnabled); + mocks.VerifyAll(); } } @@ -267,6 +272,10 @@ bool cellEnabled) { // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + var result = new MacroStabilityOutwardsFailureMechanismSectionResult( FailureMechanismSectionTestFactory.CreateFailureMechanismSection()) { @@ -279,7 +288,7 @@ // Call using (var form = new Form()) - using (var view = new MacroStabilityOutwardsResultView(sectionResults, new MacroStabilityOutwardsFailureMechanism())) + using (var view = new MacroStabilityOutwardsResultView(sectionResults, new MacroStabilityOutwardsFailureMechanism(), assessmentSection)) { form.Controls.Add(view); form.Show(); @@ -292,6 +301,7 @@ { tailorMadeAssessmentProbabilityIndex }, cellEnabled); + mocks.VerifyAll(); } } }