Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/UpdateInfos/DikeProfilesContextUpdateInfoTest.cs =================================================================== diff -u -r2ce31f95c63ed49dff8df2d2fdc03960ed20c9df -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/UpdateInfos/DikeProfilesContextUpdateInfoTest.cs (.../DikeProfilesContextUpdateInfoTest.cs) (revision 2ce31f95c63ed49dff8df2d2fdc03960ed20c9df) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/UpdateInfos/DikeProfilesContextUpdateInfoTest.cs (.../DikeProfilesContextUpdateInfoTest.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -182,7 +182,7 @@ plugin.Gui = gui; var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new GrassCoverErosionInwardsCalculation(double.NaN)); + failureMechanism.CalculationsGroup.Children.Add(new GrassCoverErosionInwardsCalculation(0.1)); var dikeProfiles = new DikeProfileCollection(); var context = new DikeProfilesContext(dikeProfiles, failureMechanism, assessmentSection); @@ -217,7 +217,7 @@ plugin.Gui = gui; var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new GrassCoverErosionInwardsCalculation(double.NaN) + failureMechanism.CalculationsGroup.Children.Add(new GrassCoverErosionInwardsCalculation(0.1) { Output = new TestGrassCoverErosionInwardsOutput() }); Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsInputViewInfoTest.cs =================================================================== diff -u -r2ce31f95c63ed49dff8df2d2fdc03960ed20c9df -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsInputViewInfoTest.cs (.../GrassCoverErosionInwardsInputViewInfoTest.cs) (revision 2ce31f95c63ed49dff8df2d2fdc03960ed20c9df) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsInputViewInfoTest.cs (.../GrassCoverErosionInwardsInputViewInfoTest.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -80,8 +80,8 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var input = new GrassCoverErosionInwardsInput(double.NaN); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var input = new GrassCoverErosionInwardsInput(0.1); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var context = new GrassCoverErosionInwardsInputContext(input, calculation, new GrassCoverErosionInwardsFailureMechanism(), @@ -101,7 +101,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculationScenario(0.1); var calculationContext = new GrassCoverErosionInwardsCalculationScenarioContext(calculation, new CalculationGroup(), new GrassCoverErosionInwardsFailureMechanism(), @@ -128,8 +128,8 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN); - var calculationToRemove = new GrassCoverErosionInwardsCalculationScenario(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculationScenario(0.1); + var calculationToRemove = new GrassCoverErosionInwardsCalculationScenario(0.1); var calculationContext = new GrassCoverErosionInwardsCalculationScenarioContext(calculationToRemove, new CalculationGroup(), @@ -157,7 +157,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); calculationGroup.Children.Add(calculation); @@ -186,7 +186,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); calculationGroup.Children.Add(calculation); @@ -215,7 +215,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); var nestedGroup = new CalculationGroup(); nestedGroup.Children.Add(calculation); @@ -246,7 +246,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); var nestedGroup = new CalculationGroup(); nestedGroup.Children.Add(calculation); @@ -277,7 +277,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); @@ -304,7 +304,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); @@ -331,7 +331,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); calculationGroup.Children.Add(calculation); @@ -361,7 +361,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); calculationGroup.Children.Add(calculation); @@ -388,7 +388,7 @@ public void CloseForData_ViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); @@ -418,7 +418,7 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); @@ -432,7 +432,7 @@ using (var view = new GrassCoverErosionInwardsInputView { - Data = new GrassCoverErosionInwardsCalculation(double.NaN) + Data = new GrassCoverErosionInwardsCalculation(0.1) }) { // Call @@ -448,7 +448,7 @@ public void CloseForData_NestedViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); calculationGroup.Children.Add(calculation); @@ -481,7 +481,7 @@ public void CloseForData_NestedViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var calculationGroup = new CalculationGroup(); calculationGroup.Children.Add(calculation); @@ -498,7 +498,7 @@ using (var view = new GrassCoverErosionInwardsInputView { - Data = new GrassCoverErosionInwardsCalculation(double.NaN) + Data = new GrassCoverErosionInwardsCalculation(0.1) }) { // Call Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsOutputViewInfoTestBase.cs =================================================================== diff -u -r58577eb03009d4ee37258854bd1af80c43f1a168 -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsOutputViewInfoTestBase.cs (.../GrassCoverErosionInwardsOutputViewInfoTestBase.cs) (revision 58577eb03009d4ee37258854bd1af80c43f1a168) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsOutputViewInfoTestBase.cs (.../GrassCoverErosionInwardsOutputViewInfoTestBase.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -89,7 +89,7 @@ public void GetViewData_Always_ReturnsWrappedGrassCoverErosionInwardsCalculation() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); TOutputContext context = GetContext(calculation); // Call @@ -103,7 +103,7 @@ public void CreateInstance_WithContext_CreatesInstanceOfViewType() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); TOutputContext context = GetContext(calculation); // Call @@ -127,12 +127,12 @@ protected override ICalculation GetCalculation() { - return new GrassCoverErosionInwardsCalculation(double.NaN); + return new GrassCoverErosionInwardsCalculation(0.1); } protected override ICalculationContext GetCalculationContextWithCalculation() { - return new GrassCoverErosionInwardsCalculationScenarioContext(new GrassCoverErosionInwardsCalculationScenario(double.NaN), + return new GrassCoverErosionInwardsCalculationScenarioContext(new GrassCoverErosionInwardsCalculationScenario(0.1), new CalculationGroup(), new GrassCoverErosionInwardsFailureMechanism(), new AssessmentSectionStub()); @@ -145,7 +145,7 @@ { Children = { - new GrassCoverErosionInwardsCalculation(double.NaN) + new GrassCoverErosionInwardsCalculation(0.1) } }, null, @@ -162,7 +162,7 @@ { Children = { - new GrassCoverErosionInwardsCalculation(double.NaN) + new GrassCoverErosionInwardsCalculation(0.1) } } }, Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationActivityFactoryTest.cs =================================================================== diff -u -r58577eb03009d4ee37258854bd1af80c43f1a168 -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationActivityFactoryTest.cs (.../GrassCoverErosionInwardsCalculationActivityFactoryTest.cs) (revision 58577eb03009d4ee37258854bd1af80c43f1a168) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationActivityFactoryTest.cs (.../GrassCoverErosionInwardsCalculationActivityFactoryTest.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -76,9 +76,8 @@ mocks.ReplayAll(); // Call - TestDelegate test = () => GrassCoverErosionInwardsCalculationActivityFactory.CreateCalculationActivity(new GrassCoverErosionInwardsCalculation(double.NaN), - null, - assessmentSection); + TestDelegate test = () => GrassCoverErosionInwardsCalculationActivityFactory.CreateCalculationActivity( + new GrassCoverErosionInwardsCalculation(0.1), null, assessmentSection); // Assert var exception = Assert.Throws(test); @@ -90,7 +89,7 @@ public void CreateCalculationActivity_AssessmentSectionNull_ThrowsArgumentNullException() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); // Call @@ -283,7 +282,7 @@ private static GrassCoverErosionInwardsCalculation CreateValidCalculation() { - return new GrassCoverErosionInwardsCalculation(double.NaN) + return new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationActivityTest.cs =================================================================== diff -u -r58577eb03009d4ee37258854bd1af80c43f1a168 -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationActivityTest.cs (.../GrassCoverErosionInwardsCalculationActivityTest.cs) (revision 58577eb03009d4ee37258854bd1af80c43f1a168) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationActivityTest.cs (.../GrassCoverErosionInwardsCalculationActivityTest.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -41,7 +41,7 @@ mocks.ReplayAll(); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); // Call var activity = new GrassCoverErosionInwardsCalculationActivity(calculation, failureMechanism, assessmentSection); @@ -63,7 +63,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); // Call TestDelegate call = () => new GrassCoverErosionInwardsCalculationActivity(calculation, null, assessmentSection); @@ -79,7 +79,7 @@ { // Setup var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); // Call TestDelegate call = () => new GrassCoverErosionInwardsCalculationActivity(calculation, failureMechanism, null); Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationServiceTest.cs =================================================================== diff -u -r58577eb03009d4ee37258854bd1af80c43f1a168 -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationServiceTest.cs (.../GrassCoverErosionInwardsCalculationServiceTest.cs) (revision 58577eb03009d4ee37258854bd1af80c43f1a168) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationServiceTest.cs (.../GrassCoverErosionInwardsCalculationServiceTest.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -62,7 +62,7 @@ validFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -104,7 +104,7 @@ invalidFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -150,7 +150,7 @@ mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -193,7 +193,7 @@ invalidFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -233,7 +233,7 @@ mockRepository); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -274,7 +274,7 @@ validFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -353,7 +353,7 @@ validFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -402,7 +402,7 @@ validFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -448,7 +448,7 @@ validFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -491,7 +491,7 @@ validFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -573,7 +573,7 @@ validFilePath); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -618,7 +618,7 @@ mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -663,7 +663,7 @@ mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -717,7 +717,7 @@ public void Calculate_AssessmentSectionNull_ThrowArgumentNullException() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); GrassCoverErosionInwardsFailureMechanism failureMechanism = CreateGrassCoverErosionInwardsFailureMechanism(); // Call @@ -735,7 +735,7 @@ public void Calculate_GeneralInputNull_ThrowArgumentNullException() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); + var calculation = new GrassCoverErosionInwardsCalculation(0.1); GrassCoverErosionInwardsFailureMechanism failureMechanism = CreateGrassCoverErosionInwardsFailureMechanism(); var mockRepository = new MockRepository(); @@ -797,7 +797,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -899,7 +899,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -975,7 +975,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1040,7 +1040,7 @@ .Return(overtoppingCalculator); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1095,7 +1095,7 @@ .Return(dikeHeightCalculator); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1163,7 +1163,7 @@ .Return(overtoppingRateCalculator); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1226,7 +1226,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1301,7 +1301,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1377,7 +1377,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1460,7 +1460,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1536,7 +1536,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1613,7 +1613,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1690,7 +1690,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1766,7 +1766,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -1843,7 +1843,7 @@ DikeProfile dikeProfile = GetDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -2987,7 +2987,7 @@ mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -3054,7 +3054,7 @@ .Return(overtoppingRateCalculator); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -3122,7 +3122,7 @@ .Return(overtoppingRateCalculator); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -3166,7 +3166,7 @@ .Return(overtoppingCalculator); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -3210,7 +3210,7 @@ .Return(overtoppingCalculator); mockRepository.ReplayAll(); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -3268,7 +3268,7 @@ private static GrassCoverErosionInwardsCalculation GetCalculationWithBreakWater(double breakWaterHeight) { - return new GrassCoverErosionInwardsCalculation(double.NaN) + return new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -3287,7 +3287,7 @@ private static GrassCoverErosionInwardsCalculation GetValidCalculationWithCalculateIllustrationPointsSettings() { - return new GrassCoverErosionInwardsCalculation(double.NaN) + return new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsDataSynchronizationServiceTest.cs =================================================================== diff -u -r58577eb03009d4ee37258854bd1af80c43f1a168 -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsDataSynchronizationServiceTest.cs (.../GrassCoverErosionInwardsDataSynchronizationServiceTest.cs) (revision 58577eb03009d4ee37258854bd1af80c43f1a168) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsDataSynchronizationServiceTest.cs (.../GrassCoverErosionInwardsDataSynchronizationServiceTest.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -53,7 +53,7 @@ public void ClearCalculationOutput_WithCalculation_ClearsOutput() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { Output = new TestGrassCoverErosionInwardsOutput() }; @@ -76,7 +76,7 @@ public void ClearCalculationOutput_CalculationWithoutOutput_DoNothing() { // Setup - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1) { Output = null }; @@ -182,31 +182,31 @@ var overtoppingOutputWithIllustrationPoints = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(new TestGeneralResultFaultTreeIllustrationPoint()), null, null); - var calculationWithOverToppingOutputWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithOverToppingOutputWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = overtoppingOutputWithIllustrationPoints }; var dikeHeightOutputWithIllustrationPoints = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(random.NextDouble()), new TestDikeHeightOutput(new TestGeneralResultFaultTreeIllustrationPoint()), null); - var calculationWithDikeHeightWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithDikeHeightWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = dikeHeightOutputWithIllustrationPoints }; var overtoppingRateOutputWithIllustrationPoints = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(random.NextDouble()), null, new TestOvertoppingRateOutput(new TestGeneralResultFaultTreeIllustrationPoint())); - var calculationWithOvertoppingRateWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithOvertoppingRateWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = overtoppingRateOutputWithIllustrationPoints }; var outputWithNoIllustrationPoints = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(random.NextDouble()), null, null); - var calculationWitNoIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWitNoIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = outputWithNoIllustrationPoints }; @@ -217,7 +217,7 @@ calculationWithOverToppingOutputWithIllustrationPoints, calculationWithOvertoppingRateWithIllustrationPoints, calculationWithDikeHeightWithIllustrationPoints, - new GrassCoverErosionInwardsCalculation(double.NaN) + new GrassCoverErosionInwardsCalculation(0.1) }; // Call @@ -457,14 +457,14 @@ var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, string.Empty, 0, 0); - var calculation = new GrassCoverErosionInwardsCalculation(double.NaN); - var calculationWithOutput = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculation = new GrassCoverErosionInwardsCalculation(0.1); + var calculationWithOutput = new GrassCoverErosionInwardsCalculation(0.1) { Output = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(0), new TestDikeHeightOutput(0), new TestOvertoppingRateOutput(0)) }; - var calculationWithOutputAndHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithOutputAndHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -474,29 +474,29 @@ new TestDikeHeightOutput(0), new TestOvertoppingRateOutput(0)) }; - var calculationWithHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { HydraulicBoundaryLocation = hydraulicBoundaryLocation } }; - var calculationWithHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { HydraulicBoundaryLocation = hydraulicBoundaryLocation, DikeProfile = dikeProfile1 } }; - var calculationWithDikeProfile = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithDikeProfile = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { DikeProfile = dikeProfile2 } }; - var calculationWithOutputHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithOutputHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { @@ -506,44 +506,44 @@ Output = new TestGrassCoverErosionInwardsOutput() }; - var subCalculation = new GrassCoverErosionInwardsCalculation(double.NaN); - var subCalculationWithOutput = new GrassCoverErosionInwardsCalculation(double.NaN) + var subCalculation = new GrassCoverErosionInwardsCalculation(0.1); + var subCalculationWithOutput = new GrassCoverErosionInwardsCalculation(0.1) { Output = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(0), new TestDikeHeightOutput(0), new TestOvertoppingRateOutput(0)) }; - var subCalculationWithOutputAndHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(double.NaN) + var subCalculationWithOutputAndHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { HydraulicBoundaryLocation = hydraulicBoundaryLocation }, Output = new TestGrassCoverErosionInwardsOutput() }; - var subCalculationWithHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(double.NaN) + var subCalculationWithHydraulicBoundaryLocation = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { HydraulicBoundaryLocation = hydraulicBoundaryLocation } }; - var subCalculationWithHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(double.NaN) + var subCalculationWithHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { HydraulicBoundaryLocation = hydraulicBoundaryLocation, DikeProfile = dikeProfile1 } }; - var subCalculationWithDikeProfile = new GrassCoverErosionInwardsCalculation(double.NaN) + var subCalculationWithDikeProfile = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { DikeProfile = dikeProfile2 } }; - var subCalculationWithOutputHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(double.NaN) + var subCalculationWithOutputHydraulicBoundaryLocationAndDikeProfile = new GrassCoverErosionInwardsCalculation(0.1) { InputParameters = { Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Util.Test/GrassCoverErosionInwardsIllustrationPointsHelperTest.cs =================================================================== diff -u -r045ce7cccb01d91b66f6db96ef0123bd82549ad8 -r67138d61ac23e6c9631ce6a18d85b1211c7fe348 --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Util.Test/GrassCoverErosionInwardsIllustrationPointsHelperTest.cs (.../GrassCoverErosionInwardsIllustrationPointsHelperTest.cs) (revision 045ce7cccb01d91b66f6db96ef0123bd82549ad8) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Util.Test/GrassCoverErosionInwardsIllustrationPointsHelperTest.cs (.../GrassCoverErosionInwardsIllustrationPointsHelperTest.cs) (revision 67138d61ac23e6c9631ce6a18d85b1211c7fe348) @@ -86,8 +86,8 @@ { yield return new TestCaseData(new[] { - new GrassCoverErosionInwardsCalculation(double.NaN), - new GrassCoverErosionInwardsCalculation(double.NaN) + new GrassCoverErosionInwardsCalculation(0.1), + new GrassCoverErosionInwardsCalculation(0.1) { Output = new TestGrassCoverErosionInwardsOutput() }, @@ -101,28 +101,28 @@ private static IEnumerable GetCalculationConfigurations() { var random = new Random(21); - var calculationWithOverToppingOutputWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithOverToppingOutputWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(new TestGeneralResultFaultTreeIllustrationPoint()), null, null) }; - var calculationWithDikeHeightRateWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithDikeHeightRateWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(random.NextDouble()), new TestDikeHeightOutput(new TestGeneralResultFaultTreeIllustrationPoint()), null) }; - var calculationWithOvertoppingRateWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWithOvertoppingRateWithIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(random.NextDouble()), null, new TestOvertoppingRateOutput(new TestGeneralResultFaultTreeIllustrationPoint())) }; - var calculationWitNoIllustrationPoints = new GrassCoverErosionInwardsCalculation(double.NaN) + var calculationWitNoIllustrationPoints = new GrassCoverErosionInwardsCalculation(0.1) { Output = new GrassCoverErosionInwardsOutput(new TestOvertoppingOutput(random.NextDouble()), null, @@ -133,7 +133,7 @@ yield return new TestCaseData(calculationWithDikeHeightRateWithIllustrationPoints, true); yield return new TestCaseData(calculationWithOvertoppingRateWithIllustrationPoints, true); yield return new TestCaseData(calculationWitNoIllustrationPoints, false); - yield return new TestCaseData(new GrassCoverErosionInwardsCalculation(double.NaN), false); + yield return new TestCaseData(new GrassCoverErosionInwardsCalculation(0.1), false); } } } \ No newline at end of file