Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r7f8860b7aa23930fb9f49e9a28d8ebb709395cb5 -r5c3b4709354512498034462a17e7da45dc811fa4 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 7f8860b7aa23930fb9f49e9a28d8ebb709395cb5) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 5c3b4709354512498034462a17e7da45dc811fa4) @@ -47,6 +47,7 @@ using Ringtoets.Common.Data.Probability; using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Data.TestUtil; +using Ringtoets.HydraRing.Calculation.Calculator.Factory; using Ringtoets.HydraRing.Calculation.TestUtil.Calculator; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; @@ -790,7 +791,7 @@ // Setup var assessmentSection = mocks.Stub(); var failureMechanism = new TestClosingStructuresFailureMechanism(); - + var foreshoreProfileInput = new TestForeshoreProfile(); var calculation = new StructuresCalculation(); calculation.InputParameters.ForeshoreProfile = foreshoreProfileInput; @@ -996,6 +997,9 @@ gui.Stub(g => g.Get(calculationContext, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); gui.Stub(g => g.MainWindow).Return(mainWindow); + var calculatorFactory = mocks.Stub(); + calculatorFactory.Expect(cf => cf.CreateStructuresClosureCalculator(testDataPath)) + .Return(new TestStructuresClosureCalculator()); mocks.ReplayAll(); calculation.Attach(observer); @@ -1006,7 +1010,7 @@ }; using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(calculationContext, null, treeViewControl)) - using (new HydraRingCalculatorFactoryConfig()) + using (new HydraRingCalculatorFactoryConfig(calculatorFactory)) { // When Action action = () => contextMenuStrip.Items[contextMenuCalculateIndex].PerformClick();