Index: Core/Common/test/Core.Common.Gui.Test/Commands/StorageCommandHandlerTest.cs =================================================================== diff -u -rfae525350cc755ecc783bd4ac3fc13aed2e4ccaa -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Core/Common/test/Core.Common.Gui.Test/Commands/StorageCommandHandlerTest.cs (.../StorageCommandHandlerTest.cs) (revision fae525350cc755ecc783bd4ac3fc13aed2e4ccaa) +++ Core/Common/test/Core.Common.Gui.Test/Commands/StorageCommandHandlerTest.cs (.../StorageCommandHandlerTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -97,22 +97,22 @@ string someValidFilePath = TestHelper.GetScratchPadPath(nameof(SaveProject_SavingProjectThrowsStorageException_AbortSaveAndReturnFalse)); using (new FileDisposeHelper(someValidFilePath)) { - var projectStub = mocks.Stub(); + var project = mocks.Stub(); var projectFactory = mocks.Stub(); const string exceptionMessage = ""; var projectStorage = mocks.StrictMock(); projectStorage.Expect(ps => ps.HasStagedProject).Return(false); - projectStorage.Expect(ps => ps.StageProject(projectStub)); - projectStorage.Expect(ps => ps.SaveProjectAs(someValidFilePath)). - Throw(new StorageException(exceptionMessage, new Exception("l33t h4xor!"))); + projectStorage.Expect(ps => ps.StageProject(project)); + projectStorage.Expect(ps => ps.SaveProjectAs(someValidFilePath)) + .Throw(new StorageException(exceptionMessage, new Exception("l33t h4xor!"))); var projectMigrator = mocks.Stub(); var mainWindowController = mocks.Stub(); var projectOwner = mocks.Stub(); - projectOwner.Stub(po => po.Project).Return(projectStub); + projectOwner.Stub(po => po.Project).Return(project); projectOwner.Stub(po => po.ProjectFilePath).Return(someValidFilePath); var inquiryHelper = mocks.Stub(); @@ -155,19 +155,19 @@ string someValidFilePath = TestHelper.GetScratchPadPath(nameof(SaveProject_SavingProjectIsSuccessful_LogSuccessAndReturnTrue)); using (new FileDisposeHelper(someValidFilePath)) { - var projectStub = mocks.Stub(); + var project = mocks.Stub(); var projectFactory = mocks.Stub(); var projectStorage = mocks.Stub(); - projectStorage.Expect(ps => ps.StageProject(projectStub)); + projectStorage.Expect(ps => ps.StageProject(project)); projectStorage.Expect(ps => ps.HasStagedProject).Return(false); projectStorage.Expect(ps => ps.SaveProjectAs(someValidFilePath)); var projectMigrator = mocks.Stub(); var mainWindowController = mocks.Stub(); var projectOwner = mocks.Stub(); - projectOwner.Stub(po => po.Project).Return(projectStub); + projectOwner.Stub(po => po.Project).Return(project); projectOwner.Stub(po => po.ProjectFilePath).Return(someValidFilePath); var inquiryHelper = mocks.Stub(); @@ -840,21 +840,21 @@ var projectMigrator = mocks.Stub(); - var projectOwnerStub = mocks.Stub(); - projectOwnerStub.Stub(po => po.Project).Return(project); - projectOwnerStub.Stub(po => po.ProjectFilePath).Return(""); + var projectOwner = mocks.Stub(); + projectOwner.Stub(po => po.Project).Return(project); + projectOwner.Stub(po => po.ProjectFilePath).Return(""); var inquiryHelper = mocks.StrictMock(); inquiryHelper.Expect(h => h.InquirePerformOptionalStep("Project afsluiten", - $"Sla wijzigingen in het project op: {projectName}?")). - Return(OptionalStepResult.Cancel); + $"Sla wijzigingen in het project op: {projectName}?")) + .Return(OptionalStepResult.Cancel); mocks.ReplayAll(); var storageCommandHandler = new StorageCommandHandler( projectStorage, projectMigrator, projectFactory, - projectOwnerStub, + projectOwner, inquiryHelper, mainWindowController); @@ -887,9 +887,9 @@ var projectMigrator = mocks.Stub(); - var projectOwnerStub = mocks.Stub(); - projectOwnerStub.Stub(po => po.Project).Return(project); - projectOwnerStub.Stub(po => po.ProjectFilePath).Return(""); + var projectOwner = mocks.Stub(); + projectOwner.Stub(po => po.Project).Return(project); + projectOwner.Stub(po => po.ProjectFilePath).Return(""); var inquiryHelper = mocks.StrictMock(); inquiryHelper.Expect(h => h.InquirePerformOptionalStep("Project afsluiten", @@ -901,7 +901,7 @@ projectStorage, projectMigrator, projectFactory, - projectOwnerStub, + projectOwner, inquiryHelper, mainWindowController); @@ -938,9 +938,9 @@ var projectMigrator = mocks.Stub(); - var projectOwnerStub = mocks.Stub(); - projectOwnerStub.Stub(po => po.Project).Return(project); - projectOwnerStub.Stub(po => po.ProjectFilePath).Return(someValidFilePath); + var projectOwner = mocks.Stub(); + projectOwner.Stub(po => po.Project).Return(project); + projectOwner.Stub(po => po.ProjectFilePath).Return(someValidFilePath); var inquiryHelper = mocks.StrictMock(); inquiryHelper.Expect(h => h.InquirePerformOptionalStep("Project afsluiten", @@ -952,7 +952,7 @@ projectStorage, projectMigrator, projectFactory, - projectOwnerStub, + projectOwner, inquiryHelper, mainWindowController); @@ -996,10 +996,10 @@ var projectMigrator = mocks.Stub(); - var projectOwnerStub = mocks.Stub(); - projectOwnerStub.Stub(po => po.Project).Return(project); - projectOwnerStub.Stub(po => po.ProjectFilePath).Return(someValidFilePath); - projectOwnerStub.Expect(po => po.SetProject(project, someValidFilePath)); + var projectOwner = mocks.Stub(); + projectOwner.Stub(po => po.Project).Return(project); + projectOwner.Stub(po => po.ProjectFilePath).Return(someValidFilePath); + projectOwner.Expect(po => po.SetProject(project, someValidFilePath)); var inquiryHelper = mocks.StrictMock(); inquiryHelper.Expect(h => h.InquirePerformOptionalStep("Project afsluiten", @@ -1013,7 +1013,7 @@ projectStorage, projectMigrator, projectFactory, - projectOwnerStub, + projectOwner, inquiryHelper, mainWindowController); Index: Core/Plugins/test/Core.Plugins.Map.Test/Legend/MapDataCollectionTreeNodeInfoTest.cs =================================================================== diff -u -r38499aa6936706c30ac12e481233d3f13545dd8b -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Core/Plugins/test/Core.Plugins.Map.Test/Legend/MapDataCollectionTreeNodeInfoTest.cs (.../MapDataCollectionTreeNodeInfoTest.cs) (revision 38499aa6936706c30ac12e481233d3f13545dd8b) +++ Core/Plugins/test/Core.Plugins.Map.Test/Legend/MapDataCollectionTreeNodeInfoTest.cs (.../MapDataCollectionTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -297,7 +297,7 @@ var mapDataCollection = new MapDataCollection("test data"); mapDataCollection.Add(mapPointData); - var applicationFeatureCommandsStub = mocks.Stub(); + var applicationFeatureCommands = mocks.Stub(); var importCommandHandlerMock = mocks.Stub(); importCommandHandlerMock.Stub(ich => ich.CanImportOn(null)).IgnoreArguments().Return(true); var exportCommandHandlerMock = mocks.Stub(); @@ -307,7 +307,7 @@ using (var treeViewControl = new TreeViewControl()) { // Call - var builder = new ContextMenuBuilder(applicationFeatureCommandsStub, + var builder = new ContextMenuBuilder(applicationFeatureCommands, importCommandHandlerMock, exportCommandHandlerMock, updateCommandHandlerMock, @@ -360,7 +360,7 @@ var mapDataCollection = new MapDataCollection("test data"); mapDataCollection.Add(pointData); - var applicationFeatureCommandsStub = mocks.Stub(); + var applicationFeatureCommands = mocks.Stub(); var importCommandHandlerMock = mocks.Stub(); importCommandHandlerMock.Stub(ich => ich.CanImportOn(null)).IgnoreArguments().Return(true); var exportCommandHandlerMock = mocks.Stub(); @@ -369,7 +369,7 @@ using (var treeViewControl = new TreeViewControl()) { - var builder = new ContextMenuBuilder(applicationFeatureCommandsStub, + var builder = new ContextMenuBuilder(applicationFeatureCommands, importCommandHandlerMock, exportCommandHandlerMock, updateCommandHandlerMock, @@ -432,7 +432,7 @@ mapDataCollection.Add(pointData); mapDataCollection.Add(lineData); - var applicationFeatureCommandsStub = mocks.Stub(); + var applicationFeatureCommands = mocks.Stub(); var importCommandHandlerMock = mocks.Stub(); importCommandHandlerMock.Stub(ich => ich.CanImportOn(null)).IgnoreArguments().Return(true); var exportCommandHandlerMock = mocks.Stub(); @@ -441,7 +441,7 @@ using (var treeViewControl = new TreeViewControl()) { - var builder = new ContextMenuBuilder(applicationFeatureCommandsStub, + var builder = new ContextMenuBuilder(applicationFeatureCommands, importCommandHandlerMock, exportCommandHandlerMock, updateCommandHandlerMock, Index: Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerPluginTest.cs =================================================================== diff -u -r357925a9ba2aebce58a9e03e620c6d470323672f -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerPluginTest.cs (.../ProjectExplorerPluginTest.cs) (revision 357925a9ba2aebce58a9e03e620c6d470323672f) +++ Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerPluginTest.cs (.../ProjectExplorerPluginTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -74,23 +74,23 @@ { // Setup var mocks = new MockRepository(); - var guiStub = mocks.Stub(); + var gui = mocks.Stub(); var viewHost = mocks.Stub(); - guiStub.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.GetTreeNodeInfos()).Return(Enumerable.Empty()); + gui.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.GetTreeNodeInfos()).Return(Enumerable.Empty()); viewHost.Stub(vm => vm.ToolViews).Return(new IView[0]); viewHost.Stub(vm => vm.AddToolView(Arg.Is.TypeOf, Arg.Matches(vl => vl == ToolViewLocation.Left))); viewHost.Stub(vm => vm.SetImage(null, null)).IgnoreArguments(); - guiStub.Stub(g => g.ViewHost).Return(viewHost); - guiStub.Expect(g => g.ProjectOpened += null).IgnoreArguments(); - guiStub.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); - guiStub.Stub(g => g.Project).Return(mocks.Stub()); + gui.Stub(g => g.ViewHost).Return(viewHost); + gui.Expect(g => g.ProjectOpened += null).IgnoreArguments(); + gui.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); + gui.Stub(g => g.Project).Return(mocks.Stub()); mocks.ReplayAll(); using (var plugin = new ProjectExplorerPlugin { - Gui = guiStub + Gui = gui }) { // Call @@ -107,23 +107,23 @@ { // Setup var mocks = new MockRepository(); - var guiStub = mocks.Stub(); + var gui = mocks.Stub(); var viewHost = mocks.Stub(); - guiStub.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.GetTreeNodeInfos()).Return(Enumerable.Empty()); + gui.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.GetTreeNodeInfos()).Return(Enumerable.Empty()); viewHost.Stub(vm => vm.ToolViews).Return(new IView[0]); viewHost.Stub(vm => vm.AddToolView(Arg.Is.TypeOf, Arg.Matches(vl => vl == ToolViewLocation.Left))); viewHost.Stub(vm => vm.SetImage(null, null)).IgnoreArguments(); - guiStub.Stub(g => g.ViewHost).Return(viewHost); - guiStub.Stub(g => g.ProjectOpened += null).IgnoreArguments(); - guiStub.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); - guiStub.Stub(g => g.Project).Return(mocks.Stub()); + gui.Stub(g => g.ViewHost).Return(viewHost); + gui.Stub(g => g.ProjectOpened += null).IgnoreArguments(); + gui.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); + gui.Stub(g => g.Project).Return(mocks.Stub()); mocks.ReplayAll(); using (var plugin = new ProjectExplorerPlugin { - Gui = guiStub + Gui = gui }) { plugin.Activate(); @@ -145,24 +145,24 @@ { // Setup var mocks = new MockRepository(); - var guiStub = mocks.Stub(); + var gui = mocks.Stub(); var viewHost = mocks.Stub(); - guiStub.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.GetTreeNodeInfos()).Return(Enumerable.Empty()); + gui.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.GetTreeNodeInfos()).Return(Enumerable.Empty()); viewHost.Stub(vm => vm.ToolViews).Return(new IView[0]); viewHost.Stub(vm => vm.AddToolView(Arg.Is.TypeOf, Arg.Matches(vl => vl == ToolViewLocation.Left))); viewHost.Stub(vm => vm.SetImage(null, null)).IgnoreArguments(); - guiStub.Stub(g => g.ViewHost).Return(viewHost); - guiStub.Stub(g => g.ProjectOpened += null).IgnoreArguments(); - guiStub.Stub(g => g.Project).Return(mocks.Stub()); + gui.Stub(g => g.ViewHost).Return(viewHost); + gui.Stub(g => g.ProjectOpened += null).IgnoreArguments(); + gui.Stub(g => g.Project).Return(mocks.Stub()); - guiStub.Expect(g => g.ProjectOpened -= null).IgnoreArguments(); + gui.Expect(g => g.ProjectOpened -= null).IgnoreArguments(); mocks.ReplayAll(); using (var plugin = new ProjectExplorerPlugin { - Gui = guiStub + Gui = gui }) { plugin.Activate(); @@ -224,20 +224,20 @@ { // Setup var mocks = new MockRepository(); - var guiStub = mocks.Stub(); + var gui = mocks.Stub(); var viewHost = mocks.StrictMock(); var initialProjectMock = mocks.Stub(); var newProjectMock = mocks.Stub(); - guiStub.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.GetTreeNodeInfos()).Return(new[] + gui.Stub(g => g.ApplicationCommands).Return(mocks.Stub()); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.GetTreeNodeInfos()).Return(new[] { new TreeNodeInfo { TagType = typeof(IProject) } }); - guiStub.Stub(g => g.ViewHost).Return(viewHost); + gui.Stub(g => g.ViewHost).Return(viewHost); // Activate var toolViews = new List(); @@ -248,16 +248,16 @@ // Dispose viewHost.Expect(tvc => tvc.Remove(Arg.Is.NotNull)); - guiStub.Expect(g => g.ProjectOpened += null).IgnoreArguments(); - guiStub.Expect(g => g.ProjectOpened -= null).IgnoreArguments(); - guiStub.Expect(g => g.Project).Return(initialProjectMock); - guiStub.Expect(g => g.Project).Return(newProjectMock); + gui.Expect(g => g.ProjectOpened += null).IgnoreArguments(); + gui.Expect(g => g.ProjectOpened -= null).IgnoreArguments(); + gui.Expect(g => g.Project).Return(initialProjectMock); + gui.Expect(g => g.Project).Return(newProjectMock); mocks.ReplayAll(); using (var plugin = new ProjectExplorerPlugin { - Gui = guiStub + Gui = gui }) { plugin.Activate(); @@ -267,7 +267,7 @@ Assert.AreSame(initialProjectMock, toolViews[0].Data); // Call - guiStub.Raise(s => s.ProjectOpened += null, newProjectMock); + gui.Raise(s => s.ProjectOpened += null, newProjectMock); // Assert Assert.AreSame(newProjectMock, toolViews[0].Data); Index: Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerTest.cs =================================================================== diff -u -r67284323e2785c651633d9c52049ba12a9c70e6a -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerTest.cs (.../ProjectExplorerTest.cs) (revision 67284323e2785c651633d9c52049ba12a9c70e6a) +++ Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerTest.cs (.../ProjectExplorerTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -86,7 +86,7 @@ // Setup var mocks = new MockRepository(); var viewCommands = mocks.StrictMock(); - var projectStub = mocks.Stub(); + var project = mocks.Stub(); mocks.ReplayAll(); @@ -103,10 +103,10 @@ var treeViewControl = TypeUtils.GetField(explorer, "treeViewControl"); // Call - explorer.Data = projectStub; + explorer.Data = project; // Assert - Assert.AreSame(projectStub, treeViewControl.Data); + Assert.AreSame(project, treeViewControl.Data); } mocks.VerifyAll(); } @@ -117,9 +117,9 @@ // Setup var mocks = new MockRepository(); var viewCommands = mocks.StrictMock(); - var projectStub = mocks.Stub(); + var project = mocks.Stub(); - viewCommands.Expect(vc => vc.RemoveAllViewsForItem(projectStub)); + viewCommands.Expect(vc => vc.RemoveAllViewsForItem(project)); mocks.ReplayAll(); @@ -140,13 +140,13 @@ using (var explorer = new ProjectExplorer(viewCommands, treeNodeInfos) { - Data = projectStub + Data = project }) { var treeViewControl = TypeUtils.GetField(explorer, "treeViewControl"); // Call - treeViewControl.TryRemoveNodeForData(projectStub); + treeViewControl.TryRemoveNodeForData(project); } // Assert mocks.VerifyAll(); @@ -160,7 +160,7 @@ var mocks = new MockRepository(); var viewCommands = mocks.StrictMock(); - var projectStub = mocks.Stub(); + var project = mocks.Stub(); const string stringA = "testA"; mocks.ReplayAll(); @@ -186,7 +186,7 @@ using (var explorer = new ProjectExplorer(viewCommands, treeNodeInfos) { - Data = projectStub + Data = project }) { var treeViewControl = TypeUtils.GetField(explorer, "treeViewControl"); @@ -218,7 +218,7 @@ var viewCommands = mocks.StrictMock(); viewCommands.Expect(a => a.OpenViewForSelection()); - var projectStub = mocks.Stub(); + var project = mocks.Stub(); mocks.ReplayAll(); @@ -232,7 +232,7 @@ using (var explorer = new ProjectExplorer(viewCommands, treeNodeInfos) { - Data = projectStub + Data = project }) { var form = new Form @@ -247,7 +247,7 @@ TypeUtils.GetField(treeViewControl, "treeView").Name = treeIdentifier; // Precondition - Assert.AreSame(treeViewControl.SelectedData, projectStub); + Assert.AreSame(treeViewControl.SelectedData, project); var tester = new TreeViewTester(treeIdentifier); @@ -265,7 +265,7 @@ // Setup var mocks = new MockRepository(); var viewCommands = mocks.StrictMock(); - var projectStub = mocks.Stub(); + var project = mocks.Stub(); mocks.ReplayAll(); @@ -291,7 +291,7 @@ using (var explorer = new ProjectExplorer(viewCommands, treeNodeInfos) { - Data = projectStub + Data = project }) { var treeViewControl = TypeUtils.GetField(explorer, "treeViewControl"); Index: Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerViewControllerTest.cs =================================================================== diff -u -r357925a9ba2aebce58a9e03e620c6d470323672f -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerViewControllerTest.cs (.../ProjectExplorerViewControllerTest.cs) (revision 357925a9ba2aebce58a9e03e620c6d470323672f) +++ Core/Plugins/test/Core.Plugins.ProjectExplorer.Test/ProjectExplorerViewControllerTest.cs (.../ProjectExplorerViewControllerTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -181,7 +181,7 @@ var viewController = mocks.Stub(); viewController.Stub(tvc => tvc.ViewHost).Return(viewHost); - var projectStub = mocks.Stub(); + var project = mocks.Stub(); mocks.ReplayAll(); IEnumerable treeNodeInfos = new[] @@ -197,11 +197,11 @@ controller.ToggleView(); // Call - controller.Update(projectStub); + controller.Update(project); // Assert Assert.AreEqual(1, toolViewList.Count); - Assert.AreSame(projectStub, toolViewList[0].Data); + Assert.AreSame(project, toolViewList[0].Data); } mocks.VerifyAll(); } Index: Demo/Ringtoets/test/Demo.Ringtoets.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs =================================================================== diff -u -rd6fe8399e8398224cf1bda9259052232d85b85a4 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Demo/Ringtoets/test/Demo.Ringtoets.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs (.../AddNewDemoAssessmentSectionCommandTest.cs) (revision d6fe8399e8398224cf1bda9259052232d85b85a4) +++ Demo/Ringtoets/test/Demo.Ringtoets.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs (.../AddNewDemoAssessmentSectionCommandTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -80,16 +80,16 @@ var project = new RingtoetsProject(); var mocks = new MockRepository(); - var projectOwnerStub = mocks.Stub(); - projectOwnerStub.Stub(po => po.Project).Return(project); + var projectOwner = mocks.Stub(); + projectOwner.Stub(po => po.Project).Return(project); var observerMock = mocks.StrictMock(); observerMock.Expect(o => o.UpdateObserver()); var viewCommands = mocks.Stub(); mocks.ReplayAll(); - var command = new AddNewDemoAssessmentSectionCommand(projectOwnerStub, viewCommands); + var command = new AddNewDemoAssessmentSectionCommand(projectOwner, viewCommands); project.Attach(observerMock); // Call Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ImportInfos/ClosingStructuresContextImportInfoTest.cs =================================================================== diff -u -r8cc75c049ab3c1eee50a3309e09e18073b881c95 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ImportInfos/ClosingStructuresContextImportInfoTest.cs (.../ClosingStructuresContextImportInfoTest.cs) (revision 8cc75c049ab3c1eee50a3309e09e18073b881c95) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ImportInfos/ClosingStructuresContextImportInfoTest.cs (.../ClosingStructuresContextImportInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -114,12 +114,12 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); - assessmentSectionStub.ReferenceLine = new ReferenceLine(); + var assessmentSection = mocks.Stub(); + assessmentSection.ReferenceLine = new ReferenceLine(); mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var context = new ClosingStructuresContext(failureMechanism.ClosingStructures, failureMechanism, assessmentSectionStub); + var context = new ClosingStructuresContext(failureMechanism.ClosingStructures, failureMechanism, assessmentSection); using (var plugin = new ClosingStructuresPlugin()) { @@ -139,11 +139,11 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var context = new ClosingStructuresContext(failureMechanism.ClosingStructures, failureMechanism, assessmentSectionStub); + var context = new ClosingStructuresContext(failureMechanism.ClosingStructures, failureMechanism, assessmentSection); using (var plugin = new ClosingStructuresPlugin()) { @@ -163,13 +163,13 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - assessmentSectionStub.ReferenceLine = new ReferenceLine(); + assessmentSection.ReferenceLine = new ReferenceLine(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var importTarget = new ClosingStructuresContext(failureMechanism.ClosingStructures, failureMechanism, assessmentSectionStub); + var importTarget = new ClosingStructuresContext(failureMechanism.ClosingStructures, failureMechanism, assessmentSection); using (var plugin = new ClosingStructuresPlugin()) { Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r0b02d2f718cbc5c039f130a0243fe12eb5674a31 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 0b02d2f718cbc5c039f130a0243fe12eb5674a31) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -791,7 +791,7 @@ var calculationInputObserver = mocks.StrictMock(); calculationInputObserver.Expect(o => o.UpdateObserver()); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new TestClosingStructuresFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -804,7 +804,7 @@ }; var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); @@ -841,7 +841,7 @@ // Given var calculationObserver = mocks.StrictMock(); var calculationInputObserver = mocks.StrictMock(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new TestClosingStructuresFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -856,7 +856,7 @@ var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresFailureMechanismViewInfoTest.cs =================================================================== diff -u -rf88343c0590cb04c7135ce141872940e59325927 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresFailureMechanismViewInfoTest.cs (.../ClosingStructuresFailureMechanismViewInfoTest.cs) (revision f88343c0590cb04c7135ce141872940e59325927) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresFailureMechanismViewInfoTest.cs (.../ClosingStructuresFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithClosingStructuresFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var failureMechanismContext = new ClosingStructuresFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new ClosingStructuresFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new ClosingStructuresFailureMechanismView()) { Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresScenariosViewInfoTest.cs =================================================================== diff -u -rf88343c0590cb04c7135ce141872940e59325927 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresScenariosViewInfoTest.cs (.../ClosingStructuresScenariosViewInfoTest.cs) (revision f88343c0590cb04c7135ce141872940e59325927) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresScenariosViewInfoTest.cs (.../ClosingStructuresScenariosViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -348,13 +348,13 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new ClosingStructuresScenariosView(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var failureMechanismContext = new ClosingStructuresFailureMechanismContext(new ClosingStructuresFailureMechanism(), assessmentSectionStub); + var failureMechanismContext = new ClosingStructuresFailureMechanismContext(new ClosingStructuresFailureMechanism(), assessmentSection); view.Data = failureMechanism.CalculationsGroup; @@ -370,13 +370,13 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new ClosingStructuresScenariosView(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var failureMechanismContext = new ClosingStructuresFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new ClosingStructuresFailureMechanismContext(failureMechanism, assessmentSection); view.Data = failureMechanism.CalculationsGroup; Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Service.Test/ClosingStructuresCalculationActivityTest.cs =================================================================== diff -u -r76948e8765899b35776102ecd211d3d7575a9e4d -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Service.Test/ClosingStructuresCalculationActivityTest.cs (.../ClosingStructuresCalculationActivityTest.cs) (revision 76948e8765899b35776102ecd211d3d7575a9e4d) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Service.Test/ClosingStructuresCalculationActivityTest.cs (.../ClosingStructuresCalculationActivityTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -38,14 +38,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); var calculation = new StructuresCalculation(); // Call - var activity = new ClosingStructuresCalculationActivity(calculation, "", failureMechanism, assessmentSectionStub); + var activity = new ClosingStructuresCalculationActivity(calculation, "", failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(activity); @@ -61,13 +61,13 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); // Call - TestDelegate call = () => new ClosingStructuresCalculationActivity(null, "", failureMechanism, assessmentSectionStub); + TestDelegate call = () => new ClosingStructuresCalculationActivity(null, "", failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); @@ -80,14 +80,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); var calculation = new StructuresCalculation(); // Call - TestDelegate call = () => new ClosingStructuresCalculationActivity(calculation, null, failureMechanism, assessmentSectionStub); + TestDelegate call = () => new ClosingStructuresCalculationActivity(calculation, null, failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); @@ -100,13 +100,13 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new StructuresCalculation(); // Call - TestDelegate call = () => new ClosingStructuresCalculationActivity(calculation, "", null, assessmentSectionStub); + TestDelegate call = () => new ClosingStructuresCalculationActivity(calculation, "", null, assessmentSection); // Assert var exception = Assert.Throws(call); Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/ReferenceLineContextTest.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/ReferenceLineContextTest.cs (.../ReferenceLineContextTest.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/ReferenceLineContextTest.cs (.../ReferenceLineContextTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -35,19 +35,19 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var referenceLine = new ReferenceLine(); - assessmentSectionStub.ReferenceLine = referenceLine; + assessmentSection.ReferenceLine = referenceLine; // Call - var referenceLineContext = new ReferenceLineContext(assessmentSectionStub); + var referenceLineContext = new ReferenceLineContext(assessmentSection); // Assert Assert.IsInstanceOf>(referenceLineContext); - Assert.AreSame(assessmentSectionStub, referenceLineContext.WrappedData); + Assert.AreSame(assessmentSection, referenceLineContext.WrappedData); mocks.VerifyAll(); } } Index: Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/ShouldCloseViewWithCalculationDataTester.cs =================================================================== diff -u -r385c58ec7bc0b6c79dafe874c12e28b47645b444 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/ShouldCloseViewWithCalculationDataTester.cs (.../ShouldCloseViewWithCalculationDataTester.cs) (revision 385c58ec7bc0b6c79dafe874c12e28b47645b444) +++ Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/ShouldCloseViewWithCalculationDataTester.cs (.../ShouldCloseViewWithCalculationDataTester.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -186,11 +186,11 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); IFailureMechanism failureMechanism = GetFailureMechanismContextWithCalculation().WrappedData; - assessmentSectionStub.Stub(a => a.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(a => a.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -202,7 +202,7 @@ view.Data = failureMechanism.Calculations.First(); // Call - bool closeForData = ShouldCloseMethod(view, assessmentSectionStub); + bool closeForData = ShouldCloseMethod(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -216,11 +216,11 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); IFailureMechanism failureMechanism = GetFailureMechanismContextWithCalculation().WrappedData; - assessmentSectionStub.Stub(a => a.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(a => a.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -232,7 +232,7 @@ view.Data = GetCalculation(); // Call - bool closeForData = ShouldCloseMethod(view, assessmentSectionStub); + bool closeForData = ShouldCloseMethod(view, assessmentSection); // Assert Assert.IsFalse(closeForData); Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneLocationsContextTreeNodeInfoTest.cs =================================================================== diff -u -r0b02d2f718cbc5c039f130a0243fe12eb5674a31 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneLocationsContextTreeNodeInfoTest.cs (.../DuneLocationsContextTreeNodeInfoTest.cs) (revision 0b02d2f718cbc5c039f130a0243fe12eb5674a31) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneLocationsContextTreeNodeInfoTest.cs (.../DuneLocationsContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -422,10 +422,10 @@ var builder = new CustomItemsOnlyContextMenuBuilder(); - var mainWindowStub = mocks.Stub(); + var mainWindow = mocks.Stub(); var gui = mocks.Stub(); gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(builder); - gui.Stub(g => g.MainWindow).Return(mainWindowStub); + gui.Stub(g => g.MainWindow).Return(mainWindow); var observerMock = mocks.StrictMock(); observerMock.Expect(o => o.UpdateObserver()); Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismViewInfoTest.cs =================================================================== diff -u -r330f2e86f2fb575c436cdbb46b6d31bc246ef6fc -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismViewInfoTest.cs (.../DuneErosionFailureMechanismViewInfoTest.cs) (revision 330f2e86f2fb575c436cdbb46b6d31bc246ef6fc) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismViewInfoTest.cs (.../DuneErosionFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithDuneErosionFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new DuneErosionFailureMechanism(); - var failureMechanismContext = new DuneErosionFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new DuneErosionFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new DuneErosionFailureMechanismView()) { Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneLocationsViewInfoTest.cs =================================================================== diff -u -r330f2e86f2fb575c436cdbb46b6d31bc246ef6fc -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneLocationsViewInfoTest.cs (.../DuneLocationsViewInfoTest.cs) (revision 330f2e86f2fb575c436cdbb46b6d31bc246ef6fc) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneLocationsViewInfoTest.cs (.../DuneLocationsViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -167,20 +167,20 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); - var windowsStub = mocks.Stub(); - var guiStub = mocks.Stub(); - guiStub.Stub(gs => gs.MainWindow).Return(windowsStub); + var assessmentSection = mocks.Stub(); + var window = mocks.Stub(); + var gui = mocks.Stub(); + gui.Stub(gs => gs.MainWindow).Return(window); mocks.ReplayAll(); var failureMechanism = new DuneErosionFailureMechanism(); var data = new DuneLocationsContext( new ObservableList(), failureMechanism, - assessmentSectionStub); + assessmentSection); - plugin.Gui = guiStub; + plugin.Gui = gui; plugin.Activate(); using (var view = new DuneLocationsView()) @@ -189,7 +189,7 @@ info.AfterCreate(view, data); // Assert - Assert.AreSame(assessmentSectionStub, view.AssessmentSection); + Assert.AreSame(assessmentSection, view.AssessmentSection); Assert.AreSame(failureMechanism, view.FailureMechanism); Assert.IsInstanceOf(view.CalculationGuiService); } Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r0b02d2f718cbc5c039f130a0243fe12eb5674a31 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 0b02d2f718cbc5c039f130a0243fe12eb5674a31) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -428,15 +428,15 @@ failureMechanism, assessmentSection); - var applicationFeatureCommandHandlerStub = mocks.Stub(); + var applicationFeatureCommandHandler = mocks.Stub(); var importHandler = mocks.Stub(); var exportHandler = mocks.Stub(); var updateHandler = mocks.Stub(); var viewCommandsHandler = mocks.Stub(); using (var treeViewControl = new TreeViewControl()) { - var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandlerStub, + var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler, importHandler, exportHandler, updateHandler, @@ -923,15 +923,15 @@ failureMechanism, assessmentSection); - var applicationFeatureCommandHandlerStub = mocks.Stub(); + var applicationFeatureCommandHandler = mocks.Stub(); var importHandler = mocks.Stub(); var exportHandler = mocks.Stub(); var updateHandler = mocks.Stub(); var viewCommandsHandler = mocks.Stub(); using (var treeViewControl = new TreeViewControl()) { - var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandlerStub, + var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler, importHandler, exportHandler, updateHandler, @@ -1072,15 +1072,15 @@ failureMechanism, assessmentSection); - var applicationFeatureCommandHandlerStub = mocks.Stub(); + var applicationFeatureCommandHandler = mocks.Stub(); var importHandler = mocks.Stub(); var exportHandler = mocks.Stub(); var updateHandler = mocks.Stub(); var viewCommandsHandler = mocks.Stub(); using (var treeViewControl = new TreeViewControl()) { - var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandlerStub, + var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler, importHandler, exportHandler, updateHandler, @@ -1126,15 +1126,15 @@ failureMechanism, assessmentSection); - var applicationFeatureCommandHandlerStub = mocks.Stub(); + var applicationFeatureCommandHandler = mocks.Stub(); var importHandlerMock = mocks.Stub(); var exportHandlerMock = mocks.Stub(); var updateHandlerMock = mocks.Stub(); var viewCommandsHandlerMock = mocks.Stub(); using (var treeViewControl = new TreeViewControl()) { - var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandlerStub, + var menuBuilder = new ContextMenuBuilder(applicationFeatureCommandHandler, importHandlerMock, exportHandlerMock, updateHandlerMock, @@ -1351,11 +1351,11 @@ string validFilePath = Path.Combine(testDataPath, "complete.sqlite"); - var hydraulicBoundaryDatabaseStub = mocks.Stub(); - hydraulicBoundaryDatabaseStub.FilePath = validFilePath; + var hydraulicBoundaryDatabase = mocks.Stub(); + hydraulicBoundaryDatabase.FilePath = validFilePath; var assessmentSection = mocks.Stub(); - assessmentSection.HydraulicBoundaryDatabase = hydraulicBoundaryDatabaseStub; + assessmentSection.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; var groupContext = new GrassCoverErosionInwardsCalculationGroupContext(failureMechanism.CalculationsGroup, failureMechanism, @@ -1392,7 +1392,7 @@ public void ContextMenuStrip_ClickOnCalculateAllItem_ScheduleAllChildCalculations() { // Setup - var mainWindowStub = mocks.Stub(); + var mainWindow = mocks.Stub(); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var failureMechanism = new TestGrassCoverErosionInwardsFailureMechanism(); @@ -1417,11 +1417,11 @@ string validFilePath = Path.Combine(testDataPath, "complete.sqlite"); - var hydraulicBoundaryDatabaseStub = mocks.Stub(); - hydraulicBoundaryDatabaseStub.FilePath = validFilePath; + var hydraulicBoundaryDatabase = mocks.Stub(); + hydraulicBoundaryDatabase.FilePath = validFilePath; var assessmentSection = mocks.Stub(); - assessmentSection.HydraulicBoundaryDatabase = hydraulicBoundaryDatabaseStub; + assessmentSection.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; assessmentSection.Stub(a => a.Id).Return(string.Empty); assessmentSection.Stub(a => a.FailureMechanismContribution) .Return(new FailureMechanismContribution(Enumerable.Empty(), 1)); @@ -1433,7 +1433,7 @@ using (var treeViewControl = new TreeViewControl()) { gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - gui.Stub(g => g.MainWindow).Return(mainWindowStub); + gui.Stub(g => g.MainWindow).Return(mainWindow); gui.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); int nrOfCalculators = failureMechanism.Calculations.Count(); Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsFailureMechanismViewInfoTest.cs =================================================================== diff -u -raeb6e1a439617630e7613b9ed5af152c345fa2c6 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsFailureMechanismViewInfoTest.cs (.../GrassCoverErosionInwardsFailureMechanismViewInfoTest.cs) (revision aeb6e1a439617630e7613b9ed5af152c345fa2c6) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsFailureMechanismViewInfoTest.cs (.../GrassCoverErosionInwardsFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithGrassCoverErosionInwardsFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var grassCoverErosionInwardsFailureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - var grassCoverErosionInwardsFailureMechanismContext = new GrassCoverErosionInwardsFailureMechanismContext(grassCoverErosionInwardsFailureMechanism, assessmentSectionStub); + var grassCoverErosionInwardsFailureMechanismContext = new GrassCoverErosionInwardsFailureMechanismContext(grassCoverErosionInwardsFailureMechanism, assessmentSection); using (var view = new GrassCoverErosionInwardsFailureMechanismView()) { Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsScenariosViewInfoTest.cs =================================================================== diff -u -raeb6e1a439617630e7613b9ed5af152c345fa2c6 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsScenariosViewInfoTest.cs (.../GrassCoverErosionInwardsScenariosViewInfoTest.cs) (revision aeb6e1a439617630e7613b9ed5af152c345fa2c6) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsScenariosViewInfoTest.cs (.../GrassCoverErosionInwardsScenariosViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -330,13 +330,13 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new GrassCoverErosionInwardsScenariosView(); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - var failureMechanismContext = new GrassCoverErosionInwardsFailureMechanismContext(new GrassCoverErosionInwardsFailureMechanism(), assessmentSectionStub); + var failureMechanismContext = new GrassCoverErosionInwardsFailureMechanismContext(new GrassCoverErosionInwardsFailureMechanism(), assessmentSection); view.Data = failureMechanism.CalculationsGroup; @@ -352,13 +352,13 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new GrassCoverErosionInwardsScenariosView(); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - var failureMechanismContext = new GrassCoverErosionInwardsFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new GrassCoverErosionInwardsFailureMechanismContext(failureMechanism, assessmentSection); view.Data = failureMechanism.CalculationsGroup; Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -880,7 +880,7 @@ var calculationInputObserver = mocks.StrictMock(); calculationInputObserver.Expect(o => o.UpdateObserver()); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -893,19 +893,19 @@ }; var nodeData = new GrassCoverErosionOutwardsWaveConditionsCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); using (var treeViewControl = new TreeViewControl()) { - var guiStub = mocks.Stub(); - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(cmp => cmp.MainWindow).Return(mocks.Stub()); + var gui = mocks.Stub(); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(cmp => cmp.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); - plugin.Gui = guiStub; + plugin.Gui = gui; TestForeshoreProfile.ChangeBreakWaterProperties(foreshoreProfileInput); @@ -931,7 +931,7 @@ // Given var calculationObserver = mocks.StrictMock(); var calculationInputObserver = mocks.StrictMock(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -946,7 +946,7 @@ var nodeData = new GrassCoverErosionOutwardsWaveConditionsCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -1268,7 +1268,7 @@ public void ContextMenuStrip_WithForeshoreProfileAndChanges_ContextMenuItemUpdateAllForeshoreProfilesEnabled() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var calculation = new GrassCoverErosionOutwardsWaveConditionsCalculation { @@ -1288,7 +1288,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); using (var treeViewControl = new TreeViewControl()) { @@ -1317,7 +1317,7 @@ var calculationInputObserver = mocks.StrictMock(); calculationInputObserver.Expect(o => o.UpdateObserver()); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var calculation = new GrassCoverErosionOutwardsWaveConditionsCalculation @@ -1338,7 +1338,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsFailureMechanismViewInfoTest.cs =================================================================== diff -u -rfcd32c8e949b4581cc20adcaa7cf7639fcb69d20 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsFailureMechanismViewInfoTest.cs (.../GrassCoverErosionOutwardsFailureMechanismViewInfoTest.cs) (revision fcd32c8e949b4581cc20adcaa7cf7639fcb69d20) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ViewInfos/GrassCoverErosionOutwardsFailureMechanismViewInfoTest.cs (.../GrassCoverErosionOutwardsFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithGrassCoverErosionOutwardsFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var grassCoverErosionOutwardsFailureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); - var grassCoverErosionOutwardsFailureMechanismContext = new GrassCoverErosionOutwardsFailureMechanismContext(grassCoverErosionOutwardsFailureMechanism, assessmentSectionStub); + var grassCoverErosionOutwardsFailureMechanismContext = new GrassCoverErosionOutwardsFailureMechanismContext(grassCoverErosionOutwardsFailureMechanism, assessmentSection); using (var view = new GrassCoverErosionOutwardsFailureMechanismView()) { Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresContextTest.cs =================================================================== diff -u -rcda0b786ef4c81469fb4213e7fc82cb74493fcf9 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresContextTest.cs (.../HeightStructuresContextTest.cs) (revision cda0b786ef4c81469fb4213e7fc82cb74493fcf9) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresContextTest.cs (.../HeightStructuresContextTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -38,20 +38,20 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new HeightStructuresFailureMechanism(); // Call var context = new HeightStructuresContext(failureMechanism.HeightStructures, - failureMechanism, assessmentSectionStub); + failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>>(context); Assert.AreSame(failureMechanism, context.FailureMechanism); Assert.AreSame(failureMechanism.HeightStructures, context.WrappedData); - Assert.AreSame(assessmentSectionStub, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocks.VerifyAll(); } Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs (.../HeightStructuresInputContextTest.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs (.../HeightStructuresInputContextTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -37,7 +37,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new StructuresCalculation(); @@ -47,14 +47,14 @@ var context = new HeightStructuresInputContext(calculation.InputParameters, calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); // Assert Assert.IsInstanceOf, HeightStructuresFailureMechanism>>(context); Assert.AreSame(calculation.InputParameters, context.WrappedData); Assert.AreSame(calculation, context.Calculation); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(assessmentSectionStub, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocks.VerifyAll(); } } Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r0b02d2f718cbc5c039f130a0243fe12eb5674a31 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision 0b02d2f718cbc5c039f130a0243fe12eb5674a31) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -1013,7 +1013,7 @@ // Given var calculationObserver = mocks.StrictMock(); var calculationInputObserver = mocks.StrictMock(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new TestHeightStructuresFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -1028,7 +1028,7 @@ var nodeData = new HeightStructuresCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r0b02d2f718cbc5c039f130a0243fe12eb5674a31 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 0b02d2f718cbc5c039f130a0243fe12eb5674a31) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -78,18 +78,18 @@ private const int contextMenuClearAllIndexNestedGroup = 13; private readonly string testDataPath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Common.IO, "HydraulicBoundaryDatabaseImporter"); - private IGui guiStub; + private IGui gui; private TreeNodeInfo info; private MockRepository mocks; private HeightStructuresPlugin plugin; public override void Setup() { mocks = new MockRepository(); - guiStub = mocks.Stub(); + gui = mocks.Stub(); plugin = new HeightStructuresPlugin { - Gui = guiStub + Gui = gui }; info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(HeightStructuresCalculationGroupContext)); @@ -226,9 +226,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -252,9 +252,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -326,9 +326,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -388,8 +388,8 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -417,8 +417,8 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -489,9 +489,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -531,9 +531,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); @@ -584,9 +584,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -634,9 +634,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -676,9 +676,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -719,9 +719,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -770,9 +770,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -820,9 +820,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -841,7 +841,7 @@ public void ContextMenuStrip_CalculationGroupWithCalculationWithForeshoreProfileAndInputOutOfSync_ContextMenuItemUpdateForeshoreProfilesEnabledAndToolTipSet() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new TestHeightStructuresFailureMechanism(); var calculation = new StructuresCalculation { @@ -860,15 +860,15 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); - plugin.Gui = guiStub; + plugin.Gui = gui; calculation.InputParameters.UseBreakWater = true; @@ -893,7 +893,7 @@ var calculationInputObserver = mocks.StrictMock(); calculationInputObserver.Expect(o => o.UpdateObserver()); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new TestHeightStructuresFailureMechanism(); var calculation = new StructuresCalculation @@ -913,18 +913,18 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); - plugin.Gui = guiStub; + plugin.Gui = gui; calculation.InputParameters.UseBreakWater = false; @@ -943,7 +943,7 @@ public void ContextMenuStrip_ClickOnCalculateAllItem_ScheduleAllChildCalculations() { // Setup - var mainWindowStub = mocks.Stub(); + var mainWindow = mocks.Stub(); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var failureMechanism = new TestHeightStructuresFailureMechanism(); @@ -979,9 +979,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.MainWindow).Return(mainWindowStub); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.MainWindow).Return(mainWindow); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); int nrOfCalculators = failureMechanism.Calculations.Count(); var calculatorFactory = mocks.Stub(); @@ -1065,9 +1065,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(groupContext, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); using (ContextMenuStrip contextMenu = info.ContextMenuStrip(groupContext, null, treeViewControl)) @@ -1109,9 +1109,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); group.Children.Add(calculationGroup); @@ -1155,9 +1155,9 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); group.Children.Add(calculation); @@ -1195,8 +1195,8 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -1232,8 +1232,8 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -1275,8 +1275,8 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); // Call @@ -1319,8 +1319,8 @@ using (var treeViewControl = new TreeViewControl()) { - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); mocks.ReplayAll(); ChangeStructure(testHeightStructure); @@ -1365,8 +1365,8 @@ using (var treeViewControl = new TreeViewControl()) { var mainWindow = mocks.Stub(); - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mainWindow); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mainWindow); mocks.ReplayAll(); ChangeStructure(structure); @@ -1421,8 +1421,8 @@ using (var treeViewControl = new TreeViewControl()) { var mainWindow = mocks.Stub(); - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mainWindow); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mainWindow); mocks.ReplayAll(); ChangeStructure(structure); @@ -1483,8 +1483,8 @@ using (var treeViewControl = new TreeViewControl()) { var mainWindow = mocks.Stub(); - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - guiStub.Stub(g => g.MainWindow).Return(mainWindow); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); + gui.Stub(g => g.MainWindow).Return(mainWindow); mocks.ReplayAll(); ChangeStructure(structure); @@ -1543,9 +1543,9 @@ var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.MainWindow).Return(mainWindow); - guiStub.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.MainWindow).Return(mainWindow); + gui.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); mocks.ReplayAll(); @@ -1599,9 +1599,9 @@ var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.MainWindow).Return(mainWindow); - guiStub.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.MainWindow).Return(mainWindow); + gui.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); mocks.ReplayAll(); @@ -1663,9 +1663,9 @@ var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); - guiStub.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); - guiStub.Stub(g => g.MainWindow).Return(mainWindow); - guiStub.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); + gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); + gui.Stub(g => g.MainWindow).Return(mainWindow); + gui.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); mocks.ReplayAll(); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresFailureMechanismViewInfoTest.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresFailureMechanismViewInfoTest.cs (.../HeightStructuresFailureMechanismViewInfoTest.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresFailureMechanismViewInfoTest.cs (.../HeightStructuresFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithHeightStructuresFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new HeightStructuresFailureMechanism(); - var failureMechanismContext = new HeightStructuresFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new HeightStructuresFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new HeightStructuresFailureMechanismView()) { Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -351,12 +351,12 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new HeightStructuresScenariosView(); var failureMechanism = new HeightStructuresFailureMechanism(); - var failureMechanismContext = new HeightStructuresFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new HeightStructuresFailureMechanismContext(failureMechanism, assessmentSection); view.Data = failureMechanism.CalculationsGroup; Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsPluginTest.cs =================================================================== diff -u -r71120734f3b9d5c38815221bb43be01eb2aa56b7 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsPluginTest.cs (.../RingtoetsPluginTest.cs) (revision 71120734f3b9d5c38815221bb43be01eb2aa56b7) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsPluginTest.cs (.../RingtoetsPluginTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -460,18 +460,18 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); using (var plugin = new RingtoetsPlugin()) { // Call - IEnumerable childrenWithViewDefinitions = plugin.GetChildDataWithViewDefinitions(assessmentSectionStub); + IEnumerable childrenWithViewDefinitions = plugin.GetChildDataWithViewDefinitions(assessmentSection); // Assert CollectionAssert.AreEqual(new object[] { - assessmentSectionStub.FailureMechanismContribution + assessmentSection.FailureMechanismContribution }, childrenWithViewDefinitions); } mocks.VerifyAll(); Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/DesignWaterLevelLocationsViewInfoTest.cs =================================================================== diff -u -r2d014f7589947c4c9e34140b42687e496ee04c5f -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/DesignWaterLevelLocationsViewInfoTest.cs (.../DesignWaterLevelLocationsViewInfoTest.cs) (revision 2d014f7589947c4c9e34140b42687e496ee04c5f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/DesignWaterLevelLocationsViewInfoTest.cs (.../DesignWaterLevelLocationsViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -153,12 +153,12 @@ var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); - var guiStub = mocks.Stub(); - guiStub.Stub(g => g.ProjectOpened += null).IgnoreArguments(); - guiStub.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); - guiStub.Stub(g => g.DocumentViewController).Return(mocks.Stub()); + var gui = mocks.Stub(); + gui.Stub(g => g.ProjectOpened += null).IgnoreArguments(); + gui.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.DocumentViewController).Return(mocks.Stub()); mocks.ReplayAll(); var context = new DesignWaterLevelLocationsContext(assessmentSection); @@ -169,7 +169,7 @@ using (var ringtoetsPlugin = new RingtoetsPlugin()) { info = ringtoetsPlugin.GetViewInfos().First(tni => tni.ViewType == typeof(DesignWaterLevelLocationsView)); - ringtoetsPlugin.Gui = guiStub; + ringtoetsPlugin.Gui = gui; ringtoetsPlugin.Activate(); // Call Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs =================================================================== diff -u -r802ea30d1fe8fbae93e58dff9ab054dbabca11ae -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs (.../FailureMechanismContributionViewInfoTest.cs) (revision 802ea30d1fe8fbae93e58dff9ab054dbabca11ae) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs (.../FailureMechanismContributionViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -219,9 +219,9 @@ IAssessmentSection assessmentSectionStub = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks); assessmentSectionStub.Stub(section => section.Composition).Return(AssessmentSectionComposition.Dike); - var guiStub = mocks.Stub(); - guiStub.Stub(g => g.ProjectOpened += null).IgnoreArguments(); - guiStub.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); + var gui = mocks.Stub(); + gui.Stub(g => g.ProjectOpened += null).IgnoreArguments(); + gui.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); mocks.ReplayAll(); @@ -231,7 +231,7 @@ using (var ringtoetsPlugin = new RingtoetsPlugin()) { info = ringtoetsPlugin.GetViewInfos().First(tni => tni.ViewType == typeof(FailureMechanismContributionView)); - ringtoetsPlugin.Gui = guiStub; + ringtoetsPlugin.Gui = gui; // Call info.AfterCreate(view, context); Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs =================================================================== diff -u -r802ea30d1fe8fbae93e58dff9ab054dbabca11ae -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs (.../StabilityPointStructuresFailureMechanismViewInfoTest.cs) (revision 802ea30d1fe8fbae93e58dff9ab054dbabca11ae) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs (.../StabilityPointStructuresFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithTestFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new TestFailureMechanism(); - var failureMechanismContext = new FailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new FailureMechanismContext(failureMechanism, assessmentSection); using (var view = new FailureMechanismView()) { Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs =================================================================== diff -u -r2d014f7589947c4c9e34140b42687e496ee04c5f -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.cs) (revision 2d014f7589947c4c9e34140b42687e496ee04c5f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -151,12 +151,12 @@ { // Setup var mocks = new MockRepository(); - var guiStub = mocks.Stub(); - guiStub.Stub(g => g.ProjectOpened += null).IgnoreArguments(); - guiStub.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); - guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); - guiStub.Stub(g => g.MainWindow).Return(mocks.Stub()); - guiStub.Stub(g => g.DocumentViewController).Return(mocks.Stub()); + var gui = mocks.Stub(); + gui.Stub(g => g.ProjectOpened += null).IgnoreArguments(); + gui.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); + gui.Stub(g => g.ViewCommands).Return(mocks.Stub()); + gui.Stub(g => g.MainWindow).Return(mocks.Stub()); + gui.Stub(g => g.DocumentViewController).Return(mocks.Stub()); mocks.ReplayAll(); @@ -170,7 +170,7 @@ using (var ringtoetsPlugin = new RingtoetsPlugin()) { info = ringtoetsPlugin.GetViewInfos().First(tni => tni.ViewType == typeof(WaveHeightLocationsView)); - ringtoetsPlugin.Gui = guiStub; + ringtoetsPlugin.Gui = gui; ringtoetsPlugin.Activate(); // Call Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsContextTest.cs =================================================================== diff -u -rcd90ebf744fb74f0d4b0dd6ee06f9c39b5faf213 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsContextTest.cs (.../MacroStabilityInwardsContextTest.cs) (revision cd90ebf744fb74f0d4b0dd6ee06f9c39b5faf213) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsContextTest.cs (.../MacroStabilityInwardsContextTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -42,7 +42,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); MacroStabilityInwardsSurfaceLine[] surfaceLines = @@ -60,7 +60,7 @@ var failureMechanism = new MacroStabilityInwardsFailureMechanism(); // Call - var context = new SimpleMacroStabilityInwardsContext(target, surfaceLines, soilModels, failureMechanism, assessmentSectionStub); + var context = new SimpleMacroStabilityInwardsContext(target, surfaceLines, soilModels, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(context); @@ -71,7 +71,7 @@ "It is vital that the iterator should be identical to the collection, in order to stay in sync when items are added or removed."); Assert.AreSame(target, context.WrappedData); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(assessmentSectionStub, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocks.VerifyAll(); } @@ -80,7 +80,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new MacroStabilityInwardsFailureMechanism(); @@ -90,7 +90,7 @@ null, Enumerable.Empty(), failureMechanism, - assessmentSectionStub); + assessmentSection); // Assert var exception = Assert.Throws(call); @@ -103,15 +103,15 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); // Call TestDelegate call = () => new SimpleMacroStabilityInwardsContext(new ObservableObject(), Enumerable.Empty(), null, new MacroStabilityInwardsFailureMechanism(), - assessmentSectionStub); + assessmentSection); // Assert var exception = Assert.Throws(call); @@ -124,15 +124,15 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); // Call TestDelegate call = () => new SimpleMacroStabilityInwardsContext(new ObservableObject(), Enumerable.Empty(), Enumerable.Empty(), null, - assessmentSectionStub); + assessmentSection); // Assert var exception = Assert.Throws(call); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsInputContextTest.cs =================================================================== diff -u -rcd90ebf744fb74f0d4b0dd6ee06f9c39b5faf213 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsInputContextTest.cs (.../MacroStabilityInwardsInputContextTest.cs) (revision cd90ebf744fb74f0d4b0dd6ee06f9c39b5faf213) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsInputContextTest.cs (.../MacroStabilityInwardsInputContextTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -38,7 +38,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new MacroStabilityInwardsCalculationScenario(new GeneralMacroStabilityInwardsInput()); @@ -54,14 +54,14 @@ var failureMechanism = new MacroStabilityInwardsFailureMechanism(); // Call - var context = new MacroStabilityInwardsInputContext(calculation.InputParameters, calculation, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSectionStub); + var context = new MacroStabilityInwardsInputContext(calculation.InputParameters, calculation, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(context); Assert.AreSame(calculation.InputParameters, context.WrappedData); Assert.AreSame(calculation, context.MacroStabilityInwardsCalculation); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(assessmentSectionStub, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); CollectionAssert.AreEqual(surfaceLines, context.AvailableMacroStabilityInwardsSurfaceLines); CollectionAssert.AreEqual(stochasticSoilModels, context.AvailableStochasticSoilModels); mocks.VerifyAll(); @@ -72,7 +72,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculationInput = new MacroStabilityInwardsInput(new GeneralMacroStabilityInwardsInput()); @@ -87,7 +87,7 @@ var failureMechanism = new MacroStabilityInwardsFailureMechanism(); // Call - TestDelegate call = () => new MacroStabilityInwardsInputContext(calculationInput, null, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSectionStub); + TestDelegate call = () => new MacroStabilityInwardsInputContext(calculationInput, null, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/ViewInfos/MacroStabilityInwardsFailureMechanismViewInfoTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/ViewInfos/MacroStabilityInwardsFailureMechanismViewInfoTest.cs (.../MacroStabilityInwardsFailureMechanismViewInfoTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/ViewInfos/MacroStabilityInwardsFailureMechanismViewInfoTest.cs (.../MacroStabilityInwardsFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithMacroStabilityInwardsFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var macroStabilityInwardsFailureMechanism = new MacroStabilityInwardsFailureMechanism(); - var macroStabilityInwardsFailureMechanismContext = new MacroStabilityInwardsFailureMechanismContext(macroStabilityInwardsFailureMechanism, assessmentSectionStub); + var macroStabilityInwardsFailureMechanismContext = new MacroStabilityInwardsFailureMechanismContext(macroStabilityInwardsFailureMechanism, assessmentSection); using (var view = new MacroStabilityInwardsFailureMechanismView()) { Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingContextTest.cs =================================================================== diff -u -rd6fe8399e8398224cf1bda9259052232d85b85a4 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingContextTest.cs (.../PipingContextTest.cs) (revision d6fe8399e8398224cf1bda9259052232d85b85a4) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingContextTest.cs (.../PipingContextTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -42,7 +42,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); PipingSurfaceLine[] surfaceLines = @@ -60,7 +60,7 @@ var failureMechanism = new PipingFailureMechanism(); // Call - var context = new SimplePipingContext(target, surfaceLines, soilModels, failureMechanism, assessmentSectionStub); + var context = new SimplePipingContext(target, surfaceLines, soilModels, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(context); @@ -71,7 +71,7 @@ "It is vital that the iterator should be identical to the collection, in order to stay in sync when items are added or removed."); Assert.AreSame(target, context.WrappedData); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(assessmentSectionStub, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocks.VerifyAll(); } @@ -80,7 +80,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); @@ -90,7 +90,7 @@ null, Enumerable.Empty(), failureMechanism, - assessmentSectionStub); + assessmentSection); // Assert var exception = Assert.Throws(call); @@ -103,15 +103,15 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); // Call TestDelegate call = () => new SimplePipingContext(new ObservableObject(), Enumerable.Empty(), null, new PipingFailureMechanism(), - assessmentSectionStub); + assessmentSection); // Assert var exception = Assert.Throws(call); @@ -124,15 +124,15 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); // Call TestDelegate call = () => new SimplePipingContext(new ObservableObject(), Enumerable.Empty(), Enumerable.Empty(), null, - assessmentSectionStub); + assessmentSection); // Assert var exception = Assert.Throws(call); Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingInputContextTest.cs =================================================================== diff -u -rd6fe8399e8398224cf1bda9259052232d85b85a4 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingInputContextTest.cs (.../PipingInputContextTest.cs) (revision d6fe8399e8398224cf1bda9259052232d85b85a4) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingInputContextTest.cs (.../PipingInputContextTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -38,7 +38,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -54,14 +54,14 @@ var failureMechanism = new PipingFailureMechanism(); // Call - var context = new PipingInputContext(calculation.InputParameters, calculation, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSectionStub); + var context = new PipingInputContext(calculation.InputParameters, calculation, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(context); Assert.AreSame(calculation.InputParameters, context.WrappedData); Assert.AreSame(calculation, context.PipingCalculation); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(assessmentSectionStub, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); CollectionAssert.AreEqual(surfaceLines, context.AvailablePipingSurfaceLines); CollectionAssert.AreEqual(stochasticSoilModels, context.AvailableStochasticSoilModels); mocks.VerifyAll(); @@ -72,7 +72,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculationInput = new PipingInput(new GeneralPipingInput()); @@ -87,7 +87,7 @@ var failureMechanism = new PipingFailureMechanism(); // Call - TestDelegate call = () => new PipingInputContext(calculationInput, null, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSectionStub); + TestDelegate call = () => new PipingInputContext(calculationInput, null, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismViewInfoTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismViewInfoTest.cs (.../PipingFailureMechanismViewInfoTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismViewInfoTest.cs (.../PipingFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithPipingFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingFailureMechanism = new PipingFailureMechanism(); - var pipingFailureMechanismContext = new PipingFailureMechanismContext(pipingFailureMechanism, assessmentSectionStub); + var pipingFailureMechanismContext = new PipingFailureMechanismContext(pipingFailureMechanism, assessmentSection); using (var view = new PipingFailureMechanismView()) { Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r0b02d2f718cbc5c039f130a0243fe12eb5674a31 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision 0b02d2f718cbc5c039f130a0243fe12eb5674a31) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -195,16 +195,16 @@ // Setup string validFilePath = Path.Combine(testDataPath, "complete.sqlite"); - var assessmentSectionStub = mocks.Stub(); - assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + var assessmentSection = mocks.Stub(); + assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase { FilePath = validFilePath, Version = "random" }; var failureMechanism = new TestStabilityPointStructuresFailureMechanism(); var calculation = new StructuresCalculation(); - var nodeData = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); + var nodeData = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); using (var treeViewControl = new TreeViewControl()) @@ -217,7 +217,7 @@ plugin.Gui = gui; // Call - using (ContextMenuStrip menu = info.ContextMenuStrip(nodeData, assessmentSectionStub, treeViewControl)) + using (ContextMenuStrip menu = info.ContextMenuStrip(nodeData, assessmentSection, treeViewControl)) { // Assert Assert.AreEqual(16, menu.Items.Count); @@ -423,7 +423,7 @@ // Given var calculationObserver = mocks.StrictMock(); var calculationInputObserver = mocks.StrictMock(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new TestStabilityPointStructuresFailureMechanism(); var calculation = new StructuresCalculation @@ -437,7 +437,7 @@ var nodeData = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); @@ -830,7 +830,7 @@ // Given var calculationObserver = mocks.StrictMock(); var calculationInputObserver = mocks.StrictMock(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new TestStabilityPointStructuresFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -845,7 +845,7 @@ var nodeData = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); @@ -997,8 +997,8 @@ var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); - var assessmentSectionStub = mocks.Stub(); - assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + var assessmentSection = mocks.Stub(); + assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase { FilePath = validFilePath, Version = "random", @@ -1020,7 +1020,7 @@ calculation.Attach(observer); var failureMechanism = new TestStabilityPointStructuresFailureMechanism(); - var calculationContext = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); + var calculationContext = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, assessmentSection); using (var treeViewControl = new TreeViewControl()) { Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r0b02d2f718cbc5c039f130a0243fe12eb5674a31 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 0b02d2f718cbc5c039f130a0243fe12eb5674a31) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -406,12 +406,12 @@ var failureMechanism = new TestStabilityPointStructuresFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); - var assessmentSectionStub = mocks.Stub(); - assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); + var assessmentSection = mocks.Stub(); + assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); var nodeData = new StabilityPointStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionStub); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -1081,7 +1081,7 @@ public void ContextMenuStrip_CalculationGroupWithCalculationWithForeshoreProfileAndInputOutOfSync_ContextMenuItemUpdateForeshoreProfilesEnabledAndToolTipSet() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); var calculation = new StructuresCalculation { @@ -1100,7 +1100,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); using (var treeViewControl = new TreeViewControl()) { @@ -1133,7 +1133,7 @@ var calculationInputObserver = mocks.StrictMock(); calculationInputObserver.Expect(o => o.UpdateObserver()); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); var calculation = new StructuresCalculation @@ -1153,7 +1153,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs =================================================================== diff -u -rff948d4633181ead2677ab35467a93b4118c6751 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs (.../StabilityPointStructuresFailureMechanismViewInfoTest.cs) (revision ff948d4633181ead2677ab35467a93b4118c6751) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs (.../StabilityPointStructuresFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithStabilityPointStructuresFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); - var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new StabilityPointStructuresFailureMechanismView()) { Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs =================================================================== diff -u -rff948d4633181ead2677ab35467a93b4118c6751 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs (.../StabilityPointStructuresScenariosViewInfoTest.cs) (revision ff948d4633181ead2677ab35467a93b4118c6751) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs (.../StabilityPointStructuresScenariosViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -348,13 +348,13 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new StabilityPointStructuresScenariosView(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); - var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(new StabilityPointStructuresFailureMechanism(), assessmentSectionStub); + var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(new StabilityPointStructuresFailureMechanism(), assessmentSection); view.Data = failureMechanism.CalculationsGroup; @@ -370,13 +370,13 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new StabilityPointStructuresScenariosView(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); - var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSectionStub); + var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSection); view.Data = failureMechanism.CalculationsGroup; Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Service.Test/StabilityPointStructuresCalculationActivityTest.cs =================================================================== diff -u -r76948e8765899b35776102ecd211d3d7575a9e4d -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Service.Test/StabilityPointStructuresCalculationActivityTest.cs (.../StabilityPointStructuresCalculationActivityTest.cs) (revision 76948e8765899b35776102ecd211d3d7575a9e4d) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Service.Test/StabilityPointStructuresCalculationActivityTest.cs (.../StabilityPointStructuresCalculationActivityTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -38,14 +38,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); var calculation = new StructuresCalculation(); // Call - var activity = new StabilityPointStructuresCalculationActivity(calculation, "", failureMechanism, assessmentSectionStub); + var activity = new StabilityPointStructuresCalculationActivity(calculation, "", failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(activity); @@ -61,13 +61,13 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); // Call - TestDelegate call = () => new StabilityPointStructuresCalculationActivity(null, "", failureMechanism, assessmentSectionStub); + TestDelegate call = () => new StabilityPointStructuresCalculationActivity(null, "", failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); @@ -80,14 +80,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); var calculation = new StructuresCalculation(); // Call - TestDelegate call = () => new StabilityPointStructuresCalculationActivity(calculation, null, failureMechanism, assessmentSectionStub); + TestDelegate call = () => new StabilityPointStructuresCalculationActivity(calculation, null, failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); @@ -100,13 +100,13 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new StructuresCalculation(); // Call - TestDelegate call = () => new StabilityPointStructuresCalculationActivity(calculation, "", null, assessmentSectionStub); + TestDelegate call = () => new StabilityPointStructuresCalculationActivity(calculation, "", null, assessmentSection); // Assert var exception = Assert.Throws(call); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -898,7 +898,7 @@ // Given var calculationObserver = mocks.StrictMock(); var calculationInputObserver = mocks.StrictMock(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -913,7 +913,7 @@ var nodeData = new StabilityStoneCoverWaveConditionsCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -1264,8 +1264,8 @@ var group = new CalculationGroup(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); - var assessmentSectionStub = mocks.Stub(); - assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + var assessmentSection = mocks.Stub(); + assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase { Locations = { @@ -1276,7 +1276,7 @@ var observerMock = mocks.StrictMock(); var nodeData = new StabilityStoneCoverWaveConditionsCalculationGroupContext(group, failureMechanism, - assessmentSectionStub); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); @@ -1442,7 +1442,7 @@ public void ContextMenuStrip_CalculationGroupWithCalculationWithForeshoreProfileAndInputOutOfSync_ContextMenuItemUpdateForeshoreProfilesEnabledAndToolTipSet() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); var calculation = new StabilityStoneCoverWaveConditionsCalculation { @@ -1461,7 +1461,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); using (var treeViewControl = new TreeViewControl()) { @@ -1492,7 +1492,7 @@ var calculationInputObserver = mocks.StrictMock(); calculationInputObserver.Expect(o => o.UpdateObserver()); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); var calculation = new StabilityStoneCoverWaveConditionsCalculation @@ -1512,7 +1512,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverFailureMechanismViewInfoTest.cs =================================================================== diff -u -r94f2ec1496623ae488b567f883e66b4d26243441 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverFailureMechanismViewInfoTest.cs (.../StabilityStoneCoverFailureMechanismViewInfoTest.cs) (revision 94f2ec1496623ae488b567f883e66b4d26243441) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverFailureMechanismViewInfoTest.cs (.../StabilityStoneCoverFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithStabilityStoneCoverFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var stabilityStoneCoverFailureMechanism = new StabilityStoneCoverFailureMechanism(); - var stabilityStoneCoverFailureMechanismContext = new StabilityStoneCoverFailureMechanismContext(stabilityStoneCoverFailureMechanism, assessmentSectionStub); + var stabilityStoneCoverFailureMechanismContext = new StabilityStoneCoverFailureMechanismContext(stabilityStoneCoverFailureMechanism, assessmentSection); using (var view = new StabilityStoneCoverFailureMechanismView()) { Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationServiceTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationServiceTest.cs (.../StabilityStoneCoverWaveConditionsCalculationServiceTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationServiceTest.cs (.../StabilityStoneCoverWaveConditionsCalculationServiceTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -314,14 +314,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); // Call TestDelegate test = () => new StabilityStoneCoverWaveConditionsCalculationService().Calculate(null, - assessmentSectionStub, + assessmentSection, failureMechanism.GeneralInput, validFilePath); @@ -354,14 +354,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); StabilityStoneCoverWaveConditionsCalculation calculation = GetDefaultCalculation(); // Call TestDelegate test = () => new StabilityStoneCoverWaveConditionsCalculationService().Calculate(calculation, - assessmentSectionStub, + assessmentSection, null, validFilePath); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -842,7 +842,7 @@ // Given var calculationObserver = mocks.StrictMock(); var calculationInputObserver = mocks.StrictMock(); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); var foreshoreProfileInput = new TestForeshoreProfile(true); @@ -857,7 +857,7 @@ var nodeData = new WaveImpactAsphaltCoverWaveConditionsCalculationContext(calculation, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -1273,8 +1273,8 @@ { var group = new CalculationGroup(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); - var assessmentSectionStub = mocks.Stub(); - assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + var assessmentSection = mocks.Stub(); + assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase { Locations = { @@ -1285,7 +1285,7 @@ var observerMock = mocks.StrictMock(); var nodeData = new WaveImpactAsphaltCoverWaveConditionsCalculationGroupContext(group, failureMechanism, - assessmentSectionStub); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var viewCommands = mocks.StrictMock(); @@ -1449,7 +1449,7 @@ public void ContextMenuStrip_CalculationGroupWithCalculationWithForeshoreProfileAndInputOutOfSync_ContextMenuItemUpdateForeshoreProfilesEnabledAndToolTipSet() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); var calculation = new WaveImpactAsphaltCoverWaveConditionsCalculation { @@ -1468,7 +1468,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); using (var treeViewControl = new TreeViewControl()) { @@ -1499,7 +1499,7 @@ var calculationInputObserver = mocks.StrictMock(); calculationInputObserver.Expect(o => o.UpdateObserver()); - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); var calculation = new WaveImpactAsphaltCoverWaveConditionsCalculation @@ -1519,7 +1519,7 @@ } }, failureMechanism, - assessmentSectionStub); + assessmentSection); calculation.Attach(calculationObserver); calculation.InputParameters.Attach(calculationInputObserver); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs =================================================================== diff -u -r08d25a2d4cd349395730ef39d3abf2cc51c30508 -rf7a5d22408a43c70b20a9eb5ee79cb336bacdf9e --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs) (revision 08d25a2d4cd349395730ef39d3abf2cc51c30508) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs) (revision f7a5d22408a43c70b20a9eb5ee79cb336bacdf9e) @@ -67,11 +67,11 @@ public void GetViewName_WithWaveImpactAsphaltCoverFailureMechanism_ReturnsNameOfFailureMechanism() { // Setup - var assessmentSectionStub = mocks.Stub(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var waveImpactAsphaltCoverFailureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); - var waveImpactAsphaltCoverFailureMechanismContext = new WaveImpactAsphaltCoverFailureMechanismContext(waveImpactAsphaltCoverFailureMechanism, assessmentSectionStub); + var waveImpactAsphaltCoverFailureMechanismContext = new WaveImpactAsphaltCoverFailureMechanismContext(waveImpactAsphaltCoverFailureMechanism, assessmentSection); using (var view = new WaveImpactAsphaltCoverFailureMechanismView()) {