Index: Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Service.Test/ClosingStructuresCalculationServiceTest.cs =================================================================== diff -u -r3b8357a1014b0e2657899fe7b0f87fb0ec682cae -rf8fa1e7ddfb00dcb893ed5daee6c962e2d67e1be --- Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Service.Test/ClosingStructuresCalculationServiceTest.cs (.../ClosingStructuresCalculationServiceTest.cs) (revision 3b8357a1014b0e2657899fe7b0f87fb0ec682cae) +++ Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Service.Test/ClosingStructuresCalculationServiceTest.cs (.../ClosingStructuresCalculationServiceTest.cs) (revision f8fa1e7ddfb00dcb893ed5daee6c962e2d67e1be) @@ -73,7 +73,7 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(new ClosingStructuresFailureMechanism(), mockRepository, - Path.Combine(testDataPath, "HRD dutch coast south.sqlite")); + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestClosingStructuresCalculationScenario(); @@ -126,7 +126,7 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(new ClosingStructuresFailureMechanism(), mockRepository, - Path.Combine(testDataPath, "HRD dutch coast south.sqlite")); + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestClosingStructuresCalculationScenario @@ -185,7 +185,7 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(new ClosingStructuresFailureMechanism(), mockRepository, - Path.Combine(testDataPath, "HRD dutch coast south.sqlite")); + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestClosingStructuresCalculationScenario @@ -239,7 +239,7 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(new ClosingStructuresFailureMechanism(), mockRepository, - Path.Combine(testDataPath, "HRD dutch coast south.sqlite")); + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestClosingStructuresCalculationScenario @@ -275,7 +275,7 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(new ClosingStructuresFailureMechanism(), mockRepository, - Path.Combine(testDataPath, "HRD dutch coast south.sqlite")); + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestClosingStructuresCalculationScenario @@ -354,7 +354,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator(null)) @@ -366,7 +367,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -433,7 +434,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -446,7 +448,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), ForeshoreProfile = new TestForeshoreProfile(true) { BreakWater = @@ -514,7 +516,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -527,7 +530,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = ClosingStructureInflowModelType.LowSill } }; @@ -593,7 +596,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -606,7 +610,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = ClosingStructureInflowModelType.LowSill, ForeshoreProfile = new TestForeshoreProfile(true) { @@ -673,7 +677,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator(null)) @@ -685,7 +690,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = ClosingStructureInflowModelType.FloodedCulvert } }; @@ -750,7 +755,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator(null)) @@ -762,7 +768,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = ClosingStructureInflowModelType.FloodedCulvert, ForeshoreProfile = new TestForeshoreProfile(true) { @@ -830,7 +836,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator( @@ -847,7 +854,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -876,7 +883,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator(null)) .IgnoreArguments() @@ -887,7 +895,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = inflowModelType, ForeshoreProfile = new TestForeshoreProfile(true), UseForeshore = true, @@ -940,7 +948,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { LastErrorFileContent = "An error occurred", @@ -956,7 +965,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -1004,7 +1013,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { EndInFailure = true @@ -1019,7 +1029,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -1067,7 +1077,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { EndInFailure = false, @@ -1083,7 +1094,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; Index: Riskeer/HeightStructures/test/Riskeer.HeightStructures.Service.Test/HeightStructuresCalculationServiceTest.cs =================================================================== diff -u -r3b8357a1014b0e2657899fe7b0f87fb0ec682cae -rf8fa1e7ddfb00dcb893ed5daee6c962e2d67e1be --- Riskeer/HeightStructures/test/Riskeer.HeightStructures.Service.Test/HeightStructuresCalculationServiceTest.cs (.../HeightStructuresCalculationServiceTest.cs) (revision 3b8357a1014b0e2657899fe7b0f87fb0ec682cae) +++ Riskeer/HeightStructures/test/Riskeer.HeightStructures.Service.Test/HeightStructuresCalculationServiceTest.cs (.../HeightStructuresCalculationServiceTest.cs) (revision f8fa1e7ddfb00dcb893ed5daee6c962e2d67e1be) @@ -370,7 +370,9 @@ var failureMechanism = new HeightStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator(null)) @@ -382,7 +384,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), ForeshoreProfile = new TestForeshoreProfile(true), UseBreakWater = true, UseForeshore = true @@ -438,7 +440,9 @@ var failureMechanism = new HeightStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator(null)) @@ -450,7 +454,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), ForeshoreProfile = new TestForeshoreProfile(true), UseBreakWater = false, UseForeshore = true @@ -488,7 +492,9 @@ var failureMechanism = new HeightStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -501,7 +507,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -562,7 +568,9 @@ var failureMechanism = new HeightStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -575,7 +583,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), ForeshoreProfile = new TestForeshoreProfile(true) { BreakWater = @@ -636,7 +644,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { @@ -653,7 +662,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -701,7 +710,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { @@ -717,7 +727,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -765,7 +775,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { @@ -781,7 +792,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -836,7 +847,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator( @@ -853,7 +865,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; Index: Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Service.Test/StabilityPointStructuresCalculationServiceTest.cs =================================================================== diff -u -r3b8357a1014b0e2657899fe7b0f87fb0ec682cae -rf8fa1e7ddfb00dcb893ed5daee6c962e2d67e1be --- Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Service.Test/StabilityPointStructuresCalculationServiceTest.cs (.../StabilityPointStructuresCalculationServiceTest.cs) (revision 3b8357a1014b0e2657899fe7b0f87fb0ec682cae) +++ Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Service.Test/StabilityPointStructuresCalculationServiceTest.cs (.../StabilityPointStructuresCalculationServiceTest.cs) (revision f8fa1e7ddfb00dcb893ed5daee6c962e2d67e1be) @@ -80,7 +80,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository, validHrdFilePath); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestStabilityPointStructuresCalculationScenario @@ -441,7 +443,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository, validHrdFilePath); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestStabilityPointStructuresCalculationScenario @@ -472,7 +476,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository, validHrdFilePath); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); mockRepository.ReplayAll(); var calculation = new TestStabilityPointStructuresCalculationScenario @@ -581,7 +587,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -594,7 +602,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.LowSill, LoadSchematizationType = LoadSchematizationType.Linear } @@ -699,7 +707,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -712,7 +722,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.LowSill, LoadSchematizationType = LoadSchematizationType.Linear, ForeshoreProfile = new TestForeshoreProfile(true) @@ -818,7 +828,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -831,7 +843,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.LowSill, LoadSchematizationType = LoadSchematizationType.Quadratic } @@ -936,7 +948,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -949,7 +963,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.LowSill, LoadSchematizationType = LoadSchematizationType.Quadratic, ForeshoreProfile = new TestForeshoreProfile(true) @@ -1055,7 +1069,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -1068,7 +1084,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.FloodedCulvert, LoadSchematizationType = LoadSchematizationType.Linear } @@ -1175,7 +1191,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -1188,7 +1206,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.FloodedCulvert, LoadSchematizationType = LoadSchematizationType.Linear, ForeshoreProfile = new TestForeshoreProfile(true) @@ -1296,7 +1314,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -1309,7 +1329,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.FloodedCulvert, LoadSchematizationType = LoadSchematizationType.Quadratic } @@ -1416,7 +1436,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); @@ -1429,7 +1451,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = StabilityPointStructureInflowModelType.FloodedCulvert, LoadSchematizationType = LoadSchematizationType.Quadratic, ForeshoreProfile = new TestForeshoreProfile(true) @@ -1540,7 +1562,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator(); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator( @@ -1557,7 +1580,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001) + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001) } }; @@ -1587,7 +1610,9 @@ var failureMechanism = new StabilityPointStructuresFailureMechanism(); var mockRepository = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, + mockRepository, + validHrdFilePath); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateStructuresCalculator(null)) @@ -1599,7 +1624,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), InflowModelType = inflowModelType, LoadSchematizationType = loadSchematizationType, ForeshoreProfile = new TestForeshoreProfile(true), @@ -1653,7 +1678,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { LastErrorFileContent = "An error occurred", @@ -1669,7 +1695,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), LoadSchematizationType = LoadSchematizationType.Linear } }; @@ -1717,7 +1743,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { EndInFailure = true @@ -1732,7 +1759,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), LoadSchematizationType = LoadSchematizationType.Linear } }; @@ -1780,7 +1807,8 @@ var mockRepository = new MockRepository(); IAssessmentSection assessmentSection = AssessmentSectionTestHelper.CreateAssessmentSectionStub(failureMechanism, - mockRepository); + mockRepository, + validHrdFilePath); var calculator = new TestStructuresCalculator { LastErrorFileContent = "An error occurred" @@ -1795,7 +1823,7 @@ { InputParameters = { - HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.Locations.First(hl => hl.Id == 1300001), + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryData.GetLocations().First(hl => hl.Id == 1300001), LoadSchematizationType = LoadSchematizationType.Linear } };