Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/AssessmentSectionTreeNodeInfoTest.cs =================================================================== diff -u -r95d07072617318a4765323219ef333593b3b9074 -r9803198f06f973be83afa835837bc05958d94723 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/AssessmentSectionTreeNodeInfoTest.cs (.../AssessmentSectionTreeNodeInfoTest.cs) (revision 95d07072617318a4765323219ef333593b3b9074) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/AssessmentSectionTreeNodeInfoTest.cs (.../AssessmentSectionTreeNodeInfoTest.cs) (revision 9803198f06f973be83afa835837bc05958d94723) @@ -545,7 +545,13 @@ { DesignWaterLevel = 2.0 }).Repeat.Times(4); - calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath, "")) + calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(Arg.Is.NotNull)) + .WhenCalled(invocation => + { + var settings = (HydraRingCalculationSettings) invocation.Arguments[0]; + Assert.AreEqual(hydraulicBoundaryDatabaseFilePath, settings.HlcdFilePath); + Assert.IsEmpty(settings.PreprocessorDirectory); + }) .Return(new TestWaveHeightCalculator()).Repeat.Times(4); calculatorFactory.Expect(cf => cf.CreateOvertoppingCalculator(Arg.Is.NotNull)) @@ -574,7 +580,13 @@ Assert.IsEmpty(settings.PreprocessorDirectory); }) .Return(new TestDesignWaterLevelCalculator()).Repeat.Times(3); - calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath, "")) + calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(Arg.Is.NotNull)) + .WhenCalled(invocation => + { + var settings = (HydraRingCalculationSettings) invocation.Arguments[0]; + Assert.AreEqual(hydraulicBoundaryDatabaseFilePath, settings.HlcdFilePath); + Assert.IsEmpty(settings.PreprocessorDirectory); + }) .Return(new TestWaveHeightCalculator()).Repeat.Times(3); calculatorFactory.Expect(cf => cf.CreateWaveConditionsCosineCalculator(Arg.Is.NotNull)) Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs =================================================================== diff -u -r2c4404936f53178d527072729e7af7f41fc9fe71 -r9803198f06f973be83afa835837bc05958d94723 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision 2c4404936f53178d527072729e7af7f41fc9fe71) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision 9803198f06f973be83afa835837bc05958d94723) @@ -848,7 +848,15 @@ .Return(designWaterLevelCalculator) .Repeat .Times(4); - calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath, string.Empty)).Return(waveHeightCalculator).Repeat.Times(4); + calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(Arg.Is.NotNull)) + .WhenCalled(invocation => + { + var settings = (HydraRingCalculationSettings)invocation.Arguments[0]; + Assert.AreEqual(validFilePath, settings.HlcdFilePath); + Assert.IsEmpty(settings.PreprocessorDirectory); + }).Return(waveHeightCalculator) + .Repeat + .Times(4); mocks.ReplayAll(); TreeNodeInfo info = GetInfo(plugin); Index: Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/AssessmentSectionCalculationActivityFactoryTest.cs =================================================================== diff -u -r95d07072617318a4765323219ef333593b3b9074 -r9803198f06f973be83afa835837bc05958d94723 --- Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/AssessmentSectionCalculationActivityFactoryTest.cs (.../AssessmentSectionCalculationActivityFactoryTest.cs) (revision 95d07072617318a4765323219ef333593b3b9074) +++ Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/AssessmentSectionCalculationActivityFactoryTest.cs (.../AssessmentSectionCalculationActivityFactoryTest.cs) (revision 9803198f06f973be83afa835837bc05958d94723) @@ -115,7 +115,13 @@ { DesignWaterLevel = 2.0 }).Repeat.Times(4); - calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath, "")) + calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(Arg.Is.NotNull)) + .WhenCalled(invocation => + { + var settings = (HydraRingCalculationSettings) invocation.Arguments[0]; + Assert.AreEqual(hydraulicBoundaryDatabaseFilePath, settings.HlcdFilePath); + Assert.IsEmpty(settings.PreprocessorDirectory); + }) .Return(new TestWaveHeightCalculator()).Repeat.Times(4); calculatorFactory.Expect(cf => cf.CreateOvertoppingCalculator(Arg.Is.NotNull)) @@ -144,8 +150,14 @@ Assert.IsEmpty(settings.PreprocessorDirectory); }) .Return(new TestDesignWaterLevelCalculator()).Repeat.Times(3); - calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath, "")) - .Return(new TestWaveHeightCalculator()).Repeat.Times(3); + calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(Arg.Is.NotNull)) + .WhenCalled(invocation => + { + var settings = (HydraRingCalculationSettings)invocation.Arguments[0]; + Assert.AreEqual(hydraulicBoundaryDatabaseFilePath, settings.HlcdFilePath); + Assert.IsEmpty(settings.PreprocessorDirectory); + }) + .Return(new TestWaveHeightCalculator()).Repeat.Times(3); calculatorFactory.Expect(cf => cf.CreateWaveConditionsCosineCalculator(Arg.Is.NotNull)) .WhenCalled(invocation => Index: Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/AssessmentSectionHydraulicBoundaryLocationCalculationActivityFactoryTest.cs =================================================================== diff -u -r95d07072617318a4765323219ef333593b3b9074 -r9803198f06f973be83afa835837bc05958d94723 --- Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/AssessmentSectionHydraulicBoundaryLocationCalculationActivityFactoryTest.cs (.../AssessmentSectionHydraulicBoundaryLocationCalculationActivityFactoryTest.cs) (revision 95d07072617318a4765323219ef333593b3b9074) +++ Ringtoets/Integration/test/Ringtoets.Integration.Service.Test/AssessmentSectionHydraulicBoundaryLocationCalculationActivityFactoryTest.cs (.../AssessmentSectionHydraulicBoundaryLocationCalculationActivityFactoryTest.cs) (revision 9803198f06f973be83afa835837bc05958d94723) @@ -402,7 +402,14 @@ var mocks = new MockRepository(); var waveHeightCalculator = new TestWaveHeightCalculator(); var calculatorFactory = mocks.Stub(); - calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath, usePreprocessor ? validPreprocessorDirectory : "")).Return(waveHeightCalculator); + string preprocessorDirectory = usePreprocessor ? validPreprocessorDirectory : string.Empty; + calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(Arg.Is.NotNull)) + .WhenCalled(invocation => + { + var settings = (HydraRingCalculationSettings) invocation.Arguments[0]; + Assert.AreEqual(validFilePath, settings.HlcdFilePath); + Assert.AreEqual(preprocessorDirectory, settings.PreprocessorDirectory); + }).Return(waveHeightCalculator); mocks.ReplayAll(); using (new HydraRingCalculatorFactoryConfig(calculatorFactory))