Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/CalculationTreeNodeInfoFactoryTest.cs =================================================================== diff -u -r9643d7e5bbb27a7782b5d939b029a70a1c023138 -r79279d5d69482de69ef6b4be98ad53e666ab06e2 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/CalculationTreeNodeInfoFactoryTest.cs (.../CalculationTreeNodeInfoFactoryTest.cs) (revision 9643d7e5bbb27a7782b5d939b029a70a1c023138) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/CalculationTreeNodeInfoFactoryTest.cs (.../CalculationTreeNodeInfoFactoryTest.cs) (revision 79279d5d69482de69ef6b4be98ad53e666ab06e2) @@ -437,14 +437,15 @@ var exportImportHandler = mocks.Stub(); var viewCommandsHandler = mocks.StrictMock(); var treeViewControl = mocks.StrictMock(); - var calculation = mocks.StrictMock(); mocks.ReplayAll(); + var calculation = new TestCalculation(); + var menubuilder = new ContextMenuBuilder(applicationFeatureCommandHandler, exportImportHandler, viewCommandsHandler, calculation, treeViewControl); // Call - CalculationTreeNodeInfoFactory.AddPerformCalculationItem(menubuilder, calculation, null); + CalculationTreeNodeInfoFactory.AddPerformCalculationItem(menubuilder, calculation, null, null); // Assert TestHelper.AssertContextMenuStripContainsItem(menubuilder.Build(), 0, @@ -463,16 +464,18 @@ var applicationFeatureCommandHandler = mocks.Stub(); var exportImportHandler = mocks.Stub(); var viewCommandsHandler = mocks.StrictMock(); + var failureMechanisMock = mocks.StrictMock(); var treeViewControl = mocks.StrictMock(); - var calculation = mocks.StrictMock(); mocks.ReplayAll(); + var calculation = new TestCalculation(); + var testCalculationContext = new TestCalculationContext(calculation, failureMechanisMock); + var counter = 0; var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler, exportImportHandler, viewCommandsHandler, calculation, treeViewControl); - - CalculationTreeNodeInfoFactory.AddPerformCalculationItem(menuBuilder, calculation, context => counter++); + CalculationTreeNodeInfoFactory.AddPerformCalculationItem(menuBuilder, calculation, testCalculationContext, (calc, context) => counter++); var contextMenuItem = menuBuilder.Build().Items[0]; // Call