Index: Riskeer/Common/test/Riskeer.Common.Service.Test/Structures/StructuresCalculationServiceBaseTest.cs =================================================================== diff -u -r5f172f0158027a954eec5f11a1178ab7fda09a92 -rdba68d66079b1bb5335abc97cc6badafbd837d59 --- Riskeer/Common/test/Riskeer.Common.Service.Test/Structures/StructuresCalculationServiceBaseTest.cs (.../StructuresCalculationServiceBaseTest.cs) (revision 5f172f0158027a954eec5f11a1178ab7fda09a92) +++ Riskeer/Common/test/Riskeer.Common.Service.Test/Structures/StructuresCalculationServiceBaseTest.cs (.../StructuresCalculationServiceBaseTest.cs) (revision dba68d66079b1bb5335abc97cc6badafbd837d59) @@ -102,7 +102,13 @@ Path.Combine(testDataPath, "notexisting.sqlite")); mocks.ReplayAll(); - var calculation = new TestStructuresCalculation(); + var calculation = new TestStructuresCalculation + { + InputParameters = + { + HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() + } + }; var isValid = true; @@ -134,7 +140,13 @@ Path.Combine(testDataPath, "HRD nosettings.sqlite")); mocks.ReplayAll(); - var calculation = new TestStructuresCalculation(); + var calculation = new TestStructuresCalculation + { + InputParameters = + { + HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() + } + }; var isValid = false; @@ -165,10 +177,18 @@ mocks); mocks.ReplayAll(); + var calculation = new TestStructuresCalculation + { + InputParameters = + { + HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() + } + }; + var isValid = false; // Call - void Call() => isValid = TestStructuresCalculationService.Validate(new TestStructuresCalculation(), assessmentSection); + void Call() => isValid = TestStructuresCalculationService.Validate(calculation, assessmentSection); // Assert TestHelper.AssertLogMessages(Call, messages =>