Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresScenariosViewInfoTest.cs =================================================================== diff -u -rfb9bf56793b90226745888c194ba6ae760f83f4c -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresScenariosViewInfoTest.cs (.../ClosingStructuresScenariosViewInfoTest.cs) (revision fb9bf56793b90226745888c194ba6ae760f83f4c) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/ViewInfos/ClosingStructuresScenariosViewInfoTest.cs (.../ClosingStructuresScenariosViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -157,7 +157,7 @@ var unrelatedFailureMechanism = new ClosingStructuresFailureMechanism(); var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { unrelatedFailureMechanism }); @@ -187,7 +187,7 @@ }) { var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { relatedFailureMechanism }); Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismResultViewInfoTest.cs =================================================================== diff -u -rfb9bf56793b90226745888c194ba6ae760f83f4c -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismResultViewInfoTest.cs (.../DuneErosionFailureMechanismResultViewInfoTest.cs) (revision fb9bf56793b90226745888c194ba6ae760f83f4c) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneErosionFailureMechanismResultViewInfoTest.cs (.../DuneErosionFailureMechanismResultViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -195,7 +195,7 @@ var failureMechanism = new DuneErosionFailureMechanism(); var otherFailureMechanism = mocks.Stub("N", "C"); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] { otherFailureMechanism, failureMechanism Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsScenariosViewInfoTest.cs =================================================================== diff -u -rfb9bf56793b90226745888c194ba6ae760f83f4c -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsScenariosViewInfoTest.cs (.../GrassCoverErosionInwardsScenariosViewInfoTest.cs) (revision fb9bf56793b90226745888c194ba6ae760f83f4c) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/ViewInfos/GrassCoverErosionInwardsScenariosViewInfoTest.cs (.../GrassCoverErosionInwardsScenariosViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -139,7 +139,7 @@ var unrelatedFailureMechanism = new GrassCoverErosionInwardsFailureMechanism(); var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { unrelatedFailureMechanism }); @@ -169,7 +169,7 @@ }) { var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { relatedFailureMechanism }); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresFailureMechanismResultViewInfoTest.cs =================================================================== diff -u -r8e2eb144317c011c15783e8e850c9253d550450e -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresFailureMechanismResultViewInfoTest.cs (.../HeightStructuresFailureMechanismResultViewInfoTest.cs) (revision 8e2eb144317c011c15783e8e850c9253d550450e) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresFailureMechanismResultViewInfoTest.cs (.../HeightStructuresFailureMechanismResultViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -113,7 +113,7 @@ }; var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); @@ -139,7 +139,7 @@ Data = failureMechanism.SectionResults }; - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { otherFailureMechanism }); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs =================================================================== diff -u -r8e2eb144317c011c15783e8e850c9253d550450e -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision 8e2eb144317c011c15783e8e850c9253d550450e) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -139,7 +139,7 @@ var unrelatedFailureMechanism = new HeightStructuresFailureMechanism(); var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { unrelatedFailureMechanism }); @@ -169,7 +169,7 @@ }) { var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { relatedFailureMechanism }); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/DesignWaterLevelLocationsContextTest.cs =================================================================== diff -u -rf108fdafb5fc608358b5088edd3192b58320b8da -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/DesignWaterLevelLocationsContextTest.cs (.../DesignWaterLevelLocationsContextTest.cs) (revision f108fdafb5fc608358b5088edd3192b58320b8da) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/DesignWaterLevelLocationsContextTest.cs (.../DesignWaterLevelLocationsContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -35,15 +35,15 @@ { // Setup var mockRepository = new MockRepository(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); mockRepository.ReplayAll(); // Call - var presentationObject = new DesignWaterLevelLocationsContext(assessmentSectionMock); + var presentationObject = new DesignWaterLevelLocationsContext(assessmentSection); // Assert Assert.IsInstanceOf>(presentationObject); - Assert.AreSame(assessmentSectionMock, presentationObject.WrappedData); + Assert.AreSame(assessmentSection, presentationObject.WrappedData); mockRepository.VerifyAll(); } } Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/WaveHeightLocationsContextTest.cs =================================================================== diff -u -rf1bf048f691ca575f22e8807911ace0338fa425d -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/WaveHeightLocationsContextTest.cs (.../WaveHeightLocationsContextTest.cs) (revision f1bf048f691ca575f22e8807911ace0338fa425d) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/WaveHeightLocationsContextTest.cs (.../WaveHeightLocationsContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -35,15 +35,15 @@ { // Setup var mockRepository = new MockRepository(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); mockRepository.ReplayAll(); // Call - var presentationObject = new WaveHeightLocationsContext(assessmentSectionMock); + var presentationObject = new WaveHeightLocationsContext(assessmentSection); // Assert Assert.IsInstanceOf>(presentationObject); - Assert.AreSame(assessmentSectionMock, presentationObject.WrappedData); + Assert.AreSame(assessmentSection, presentationObject.WrappedData); mockRepository.VerifyAll(); } } Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/StandAloneFailureMechanismContextPropertiesTest.cs =================================================================== diff -u -r8509ce4290fff1f206f7bbd6eddedb37db28785b -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/StandAloneFailureMechanismContextPropertiesTest.cs (.../StandAloneFailureMechanismContextPropertiesTest.cs) (revision 8509ce4290fff1f206f7bbd6eddedb37db28785b) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/StandAloneFailureMechanismContextPropertiesTest.cs (.../StandAloneFailureMechanismContextPropertiesTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -48,7 +48,7 @@ { // Setup var mockRepository = new MockRepository(); - var assessmentSection = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); mockRepository.ReplayAll(); var failureMechanism = new TestFailureMechanism(); Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/PropertyInfos/FailureMechanismContributionPropertyInfoTest.cs =================================================================== diff -u -rc48f16746209f799f93c6fc79a5202a9e3fd419f -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/PropertyInfos/FailureMechanismContributionPropertyInfoTest.cs (.../FailureMechanismContributionPropertyInfoTest.cs) (revision c48f16746209f799f93c6fc79a5202a9e3fd419f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/PropertyInfos/FailureMechanismContributionPropertyInfoTest.cs (.../FailureMechanismContributionPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -64,7 +64,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanisms = Enumerable.Empty(); Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/ReferenceLineContextTreeNodeInfoTest.cs =================================================================== diff -u -rf2f7d22ee59276f5df1f83fd409899bd895ea163 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/ReferenceLineContextTreeNodeInfoTest.cs (.../ReferenceLineContextTreeNodeInfoTest.cs) (revision f2f7d22ee59276f5df1f83fd409899bd895ea163) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/ReferenceLineContextTreeNodeInfoTest.cs (.../ReferenceLineContextTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -82,7 +82,7 @@ public void Text_Always_ReturnsName() { // Setup - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var referenceLineContext = new ReferenceLineContext(assessmentSection); @@ -104,7 +104,7 @@ public void Image_Always_ReturnsSetImage() { // Setup - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var referenceLineContext = new ReferenceLineContext(assessmentSection); Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingCalculationGroupContextTest.cs =================================================================== diff -u -rfea3ed82dfb6dfcad535eef16efcbaa9c01564ed -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingCalculationGroupContextTest.cs (.../PipingCalculationGroupContextTest.cs) (revision fea3ed82dfb6dfcad535eef16efcbaa9c01564ed) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingCalculationGroupContextTest.cs (.../PipingCalculationGroupContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -40,7 +40,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculationGroup = new CalculationGroup(); @@ -56,7 +56,7 @@ var failureMechanism = new PipingFailureMechanism(); // Call - var groupContext = new PipingCalculationGroupContext(calculationGroup, surfaceLines, soilModels, failureMechanism, assessmentSectionMock); + var groupContext = new PipingCalculationGroupContext(calculationGroup, surfaceLines, soilModels, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(groupContext); @@ -66,7 +66,7 @@ Assert.AreSame(surfaceLines, groupContext.AvailablePipingSurfaceLines); Assert.AreSame(soilModels, groupContext.AvailableStochasticSoilModels); Assert.AreSame(failureMechanism, groupContext.FailureMechanism); - Assert.AreSame(assessmentSectionMock, groupContext.AssessmentSection); + Assert.AreSame(assessmentSection, groupContext.AssessmentSection); mocks.VerifyAll(); } } Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingCalculationScenarioContextTest.cs =================================================================== diff -u -rfea3ed82dfb6dfcad535eef16efcbaa9c01564ed -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingCalculationScenarioContextTest.cs (.../PipingCalculationScenarioContextTest.cs) (revision fea3ed82dfb6dfcad535eef16efcbaa9c01564ed) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingCalculationScenarioContextTest.cs (.../PipingCalculationScenarioContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -39,7 +39,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var surfacelines = new[] @@ -54,7 +54,7 @@ var failureMechanism = new PipingFailureMechanism(); // Call - var presentationObject = new PipingCalculationScenarioContext(calculation, surfacelines, soilModels, failureMechanism, assessmentSectionMock); + var presentationObject = new PipingCalculationScenarioContext(calculation, surfacelines, soilModels, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(presentationObject); @@ -64,7 +64,7 @@ Assert.AreSame(surfacelines, presentationObject.AvailablePipingSurfaceLines); Assert.AreSame(soilModels, presentationObject.AvailableStochasticSoilModels); Assert.AreSame(failureMechanism, presentationObject.FailureMechanism); - Assert.AreSame(assessmentSectionMock, presentationObject.AssessmentSection); + Assert.AreSame(assessmentSection, presentationObject.AssessmentSection); mocks.VerifyAll(); } } Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingFailureMechanismContextTest.cs =================================================================== diff -u -rac2a8327f9ce8b42d2e2740a0cda030385c5c63c -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingFailureMechanismContextTest.cs (.../PipingFailureMechanismContextTest.cs) (revision ac2a8327f9ce8b42d2e2740a0cda030385c5c63c) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/PipingFailureMechanismContextTest.cs (.../PipingFailureMechanismContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -37,17 +37,17 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); // Call - var context = new PipingFailureMechanismContext(failureMechanism, assessmentSectionMock); + var context = new PipingFailureMechanismContext(failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(context); - Assert.AreSame(assessmentSectionMock, context.Parent); + Assert.AreSame(assessmentSection, context.Parent); Assert.AreSame(failureMechanism, context.WrappedData); mocks.VerifyAll(); } Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/RingtoetsPipingSurfaceLinesContextTest.cs =================================================================== diff -u -rd6d1b03ce8dc3c4e6bba565a85ea310f6196adea -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/RingtoetsPipingSurfaceLinesContextTest.cs (.../RingtoetsPipingSurfaceLinesContextTest.cs) (revision d6d1b03ce8dc3c4e6bba565a85ea310f6196adea) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PresentationObjects/RingtoetsPipingSurfaceLinesContextTest.cs (.../RingtoetsPipingSurfaceLinesContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -39,20 +39,20 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); var surfaceLines = new ObservableCollectionWithSourcePath(); // Call - var context = new RingtoetsPipingSurfaceLinesContext(surfaceLines, failureMechanism, assessmentSectionMock); + var context = new RingtoetsPipingSurfaceLinesContext(surfaceLines, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>>(context); Assert.AreSame(surfaceLines, context.WrappedData); - Assert.AreSame(assessmentSectionMock, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocks.VerifyAll(); } Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilModelSelectionEditorTest.cs =================================================================== diff -u -r60d95df18eb252bf99dff07a76d9660f331c92c2 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilModelSelectionEditorTest.cs (.../PipingInputContextStochasticSoilModelSelectionEditorTest.cs) (revision 60d95df18eb252bf99dff07a76d9660f331c92c2) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilModelSelectionEditorTest.cs (.../PipingInputContextStochasticSoilModelSelectionEditorTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -50,7 +50,7 @@ var provider = mockRepository.DynamicMock(); var service = mockRepository.DynamicMock(); var context = mockRepository.DynamicMock(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); var handler = mockRepository.Stub>(); var calculationItem = new PipingCalculationScenario(new GeneralPipingInput()); @@ -68,7 +68,7 @@ new TestStochasticSoilModel() }, failureMechanism, - assessmentSectionMock); + assessmentSection); var properties = new PipingInputContextProperties(pipingInputContext, handler); @@ -99,7 +99,7 @@ var provider = mockRepository.DynamicMock(); var service = mockRepository.DynamicMock(); var context = mockRepository.DynamicMock(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); var handler = mockRepository.Stub>(); var stochasticSoilProfile = new StochasticSoilProfile(1.0, SoilProfileType.SoilProfile1D, 0) @@ -142,7 +142,7 @@ stochasticSoilModel }, failureMechanism, - assessmentSectionMock); + assessmentSection); var properties = new PipingInputContextProperties(inputParametersContext, handler); Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditorTest.cs =================================================================== diff -u -r60d95df18eb252bf99dff07a76d9660f331c92c2 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditorTest.cs (.../PipingInputContextStochasticSoilProfileSelectionEditorTest.cs) (revision 60d95df18eb252bf99dff07a76d9660f331c92c2) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditorTest.cs (.../PipingInputContextStochasticSoilProfileSelectionEditorTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -50,7 +50,7 @@ var provider = mockRepository.DynamicMock(); var service = mockRepository.DynamicMock(); var context = mockRepository.DynamicMock(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); var handler = mockRepository.Stub>(); var calculationItem = new PipingCalculationScenario(new GeneralPipingInput()); @@ -71,7 +71,7 @@ new TestStochasticSoilModel() }, failureMechanism, - assessmentSectionMock); + assessmentSection); var properties = new PipingInputContextProperties(pipingInputContext, handler); @@ -102,7 +102,7 @@ var provider = mockRepository.DynamicMock(); var service = mockRepository.DynamicMock(); var context = mockRepository.DynamicMock(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); var handler = mockRepository.Stub>(); var stochasticSoilProfile = new StochasticSoilProfile(1.0, SoilProfileType.SoilProfile1D, 0) @@ -145,7 +145,7 @@ stochasticSoilModel }, failureMechanism, - assessmentSectionMock); + assessmentSection); var properties = new PipingInputContextProperties(inputParametersContext, handler); Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextSurfaceLineSelectionEditorTest.cs =================================================================== diff -u -r60d95df18eb252bf99dff07a76d9660f331c92c2 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextSurfaceLineSelectionEditorTest.cs (.../PipingInputContextSurfaceLineSelectionEditorTest.cs) (revision 60d95df18eb252bf99dff07a76d9660f331c92c2) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/UITypeEditors/PipingInputContextSurfaceLineSelectionEditorTest.cs (.../PipingInputContextSurfaceLineSelectionEditorTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -48,7 +48,7 @@ var provider = mockRepository.DynamicMock(); var service = mockRepository.DynamicMock(); var context = mockRepository.DynamicMock(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); var handler = mockRepository.Stub>(); var calculationItem = new PipingCalculationScenario(new GeneralPipingInput()); @@ -66,7 +66,7 @@ }, Enumerable.Empty(), failureMechanism, - assessmentSectionMock); + assessmentSection); var properties = new PipingInputContextProperties(inputParametersContext, handler); @@ -97,7 +97,7 @@ var provider = mockRepository.DynamicMock(); var service = mockRepository.DynamicMock(); var context = mockRepository.DynamicMock(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); var handler = mockRepository.Stub>(); var surfaceLine = new RingtoetsPipingSurfaceLine(); @@ -121,7 +121,7 @@ }, Enumerable.Empty(), failureMechanism, - assessmentSectionMock); + assessmentSection); var properties = new PipingInputContextProperties(inputParametersContext, handler); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/PipingFailureMechanismContextPropertyInfoTest.cs =================================================================== diff -u -rc48f16746209f799f93c6fc79a5202a9e3fd419f -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/PipingFailureMechanismContextPropertyInfoTest.cs (.../PipingFailureMechanismContextPropertyInfoTest.cs) (revision c48f16746209f799f93c6fc79a5202a9e3fd419f) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/PipingFailureMechanismContextPropertyInfoTest.cs (.../PipingFailureMechanismContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -62,7 +62,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/PipingInputContextPropertyInfoTest.cs =================================================================== diff -u -rdc682a1792664507e869ee5ecda02a9cff5426ea -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/PipingInputContextPropertyInfoTest.cs (.../PipingInputContextPropertyInfoTest.cs) (revision dc682a1792664507e869ee5ecda02a9cff5426ea) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/PipingInputContextPropertyInfoTest.cs (.../PipingInputContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -63,7 +63,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var scenario = new PipingCalculationScenario(new GeneralPipingInput()); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/RingtoetsPipingSurfaceLineCollectionContextPropertyInfoTest.cs =================================================================== diff -u -r0ab02f0514e081770486d6a9b1b4fbcd9c92d642 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/RingtoetsPipingSurfaceLineCollectionContextPropertyInfoTest.cs (.../RingtoetsPipingSurfaceLineCollectionContextPropertyInfoTest.cs) (revision 0ab02f0514e081770486d6a9b1b4fbcd9c92d642) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/RingtoetsPipingSurfaceLineCollectionContextPropertyInfoTest.cs (.../RingtoetsPipingSurfaceLineCollectionContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -64,7 +64,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/StochasticSoilModelCollectionContextPropertyInfoTest.cs =================================================================== diff -u -r5ad23eae9f87bb12cbf453126070e8967e32d7ad -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/StochasticSoilModelCollectionContextPropertyInfoTest.cs (.../StochasticSoilModelCollectionContextPropertyInfoTest.cs) (revision 5ad23eae9f87bb12cbf453126070e8967e32d7ad) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PropertyInfos/StochasticSoilModelCollectionContextPropertyInfoTest.cs (.../StochasticSoilModelCollectionContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -63,7 +63,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r3239ee53997bb2ab3ca97266f6a5f83868049535 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 3239ee53997bb2ab3ca97266f6a5f83868049535) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -117,14 +117,14 @@ // Setup var group = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var groupContext = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); // Call var children = info.ChildNodeObjects(groupContext); @@ -149,15 +149,15 @@ group.Children.Add(childGroup); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); // Call var children = info.ChildNodeObjects(nodeData).ToArray(); @@ -171,7 +171,7 @@ var returnedCalculationGroupContext = (PipingCalculationGroupContext) children[2]; Assert.AreSame(childGroup, returnedCalculationGroupContext.WrappedData); Assert.AreSame(pipingFailureMechanism, returnedCalculationGroupContext.FailureMechanism); - Assert.AreSame(assessmentSectionMock, returnedCalculationGroupContext.AssessmentSection); + Assert.AreSame(assessmentSection, returnedCalculationGroupContext.AssessmentSection); } [Test] @@ -189,17 +189,17 @@ }); var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var parentNodeData = new PipingCalculationGroupContext(parentGroup, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var applicationFeatureCommandHandler = mocks.Stub(); var importHandlerMock = mocks.StrictMock(); @@ -298,12 +298,12 @@ }); var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var applicationFeatureCommandHandler = mocks.Stub(); var importHandlerMock = mocks.StrictMock(); @@ -391,7 +391,7 @@ var group = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), @@ -400,7 +400,7 @@ new TestStochasticSoilModel() }, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var gui = mocks.StrictMock(); gui.Expect(g => g.Get(nodeData, treeViewControl)).Return(menuBuilder); @@ -432,7 +432,7 @@ var group = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, new[] @@ -441,7 +441,7 @@ }, Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -475,7 +475,7 @@ var group = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, new[] @@ -487,7 +487,7 @@ new TestStochasticSoilModel() }, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -518,7 +518,7 @@ using (var treeViewControl = new TreeViewControl()) { var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var group = new CalculationGroup { Children = @@ -531,7 +531,7 @@ Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -568,7 +568,7 @@ using (var treeViewControl = new TreeViewControl()) { var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var group = new CalculationGroup { Children = @@ -581,7 +581,7 @@ Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -618,17 +618,17 @@ var group = new CalculationGroup(); var parentGroup = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var parentNodeData = new PipingCalculationGroupContext(parentGroup, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -676,17 +676,17 @@ var group = new CalculationGroup(); var parentGroup = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var parentNodeData = new PipingCalculationGroupContext(parentGroup, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -748,18 +748,18 @@ group.Children.Add(invalidCalculation); var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var parentNodeData = new PipingCalculationGroupContext(parentGroup, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -956,7 +956,7 @@ var group = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var surfaceLines = new[] { @@ -976,7 +976,7 @@ new TestStochasticSoilModel() }, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); @@ -1020,7 +1020,7 @@ using (var treeViewControl = new TreeViewControl()) { var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var surfaceLine1 = new RingtoetsPipingSurfaceLine { @@ -1078,7 +1078,7 @@ } }, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); @@ -1133,7 +1133,7 @@ var group = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var surfaceLine1 = new RingtoetsPipingSurfaceLine { @@ -1191,7 +1191,7 @@ } }, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); @@ -1243,22 +1243,22 @@ observer.Expect(o => o.UpdateObserver()); var group = new CalculationGroup(); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var parentGroup = new CalculationGroup(); parentGroup.Children.Add(group); var parentNodeData = new PipingCalculationGroupContext(parentGroup, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); parentNodeData.Attach(observer); // Precondition @@ -1291,22 +1291,22 @@ group.Children.Add(calculation); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var nodeData = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var parentGroup = pipingFailureMechanism.CalculationsGroup; parentGroup.Children.Add(group); var parentNodeData = new PipingCalculationGroupContext(parentGroup, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); parentNodeData.Attach(observer); // Precondition Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -r3239ee53997bb2ab3ca97266f6a5f83868049535 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 3239ee53997bb2ab3ca97266f6a5f83868049535) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -117,7 +117,7 @@ }; var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingCalculationContext = new PipingCalculationScenarioContext(calculation, @@ -130,7 +130,7 @@ new TestStochasticSoilModel() }, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); // Call var children = info.ChildNodeObjects(pipingCalculationContext).ToArray(); @@ -155,14 +155,14 @@ { // Setup var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingCalculationContext = new PipingCalculationScenarioContext(new PipingCalculationScenario(new GeneralPipingInput()), Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); // Precondition Assert.IsFalse(pipingCalculationContext.WrappedData.HasOutput); @@ -191,12 +191,12 @@ { var calculation = new PipingCalculationScenario(new GeneralPipingInput()); var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationScenarioContext(calculation, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var gui = mocks.StrictMock(); gui.Expect(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); @@ -231,12 +231,12 @@ SemiProbabilisticOutput = new TestPipingSemiProbabilisticOutput() }; var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationScenarioContext(calculation, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var gui = mocks.StrictMock(); gui.Expect(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); @@ -266,12 +266,12 @@ { var calculation = new PipingCalculationScenario(new GeneralPipingInput()); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationScenarioContext(calculation, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var gui = mocks.StrictMock(); gui.Expect(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); @@ -309,12 +309,12 @@ { var calculation = new PipingCalculationScenario(new GeneralPipingInput()); var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationScenarioContext(calculation, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var gui = mocks.StrictMock(); gui.Expect(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); @@ -349,12 +349,12 @@ using (var treeViewControl = new TreeViewControl()) { var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var nodeData = new PipingCalculationScenarioContext(new PipingCalculationScenario(new GeneralPipingInput()), Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilderMock = mocks.Stub(); using (mocks.Ordered()) @@ -405,19 +405,19 @@ group.Attach(observer); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculationContext = new PipingCalculationScenarioContext(elementToBeRemoved, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var groupContext = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); // Precondition Assert.IsTrue(info.CanRemove(calculationContext, groupContext)); @@ -457,19 +457,19 @@ group.Attach(observer); pipingFailureMechanism.CalculationsGroup.Children.Add(group); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculationContext = new PipingCalculationScenarioContext(elementToBeRemoved, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var groupContext = new PipingCalculationGroupContext(group, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); // Precondition Assert.IsTrue(info.CanRemove(calculationContext, groupContext)); @@ -560,13 +560,13 @@ { var calculation = new PipingCalculationScenario(new GeneralPipingInput()); var pipingFailureMechanism = new TestPipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var pipingCalculationContext = new PipingCalculationScenarioContext(calculation, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var gui = mocks.DynamicMock(); gui.Expect(cmp => cmp.Get(pipingCalculationContext, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); @@ -670,13 +670,13 @@ { var calculation = new PipingCalculationScenario(new GeneralPipingInput()); var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var pipingCalculationContext = new PipingCalculationScenarioContext(calculation, Enumerable.Empty(), Enumerable.Empty(), pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var gui = mocks.DynamicMock(); gui.Expect(cmp => cmp.Get(pipingCalculationContext, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs =================================================================== diff -u -rf2f7d22ee59276f5df1f83fd409899bd895ea163 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs (.../PipingInputContextTreeNodeInfoTest.cs) (revision f2f7d22ee59276f5df1f83fd409899bd895ea163) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs (.../PipingInputContextTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -88,14 +88,13 @@ public void Text_Always_ReturnsTextFromResource() { // Setup - var assessmentSection = mocks.StrictMock(); var pipingInputContext = new PipingInputContext( new PipingInput(new GeneralPipingInput()), new PipingCalculationScenario(new GeneralPipingInput()), Enumerable.Empty(), Enumerable.Empty(), new PipingFailureMechanism(), - assessmentSection); + mocks.Stub()); mocks.ReplayAll(); @@ -110,14 +109,13 @@ public void Image_Always_ReturnsSetImage() { // Setup - var assessmentSection = mocks.StrictMock(); var pipingInputContext = new PipingInputContext( new PipingInput(new GeneralPipingInput()), new PipingCalculationScenario(new GeneralPipingInput()), Enumerable.Empty(), Enumerable.Empty(), new PipingFailureMechanism(), - assessmentSection); + mocks.Stub()); mocks.ReplayAll(); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/RingtoetsPipingSurfaceLineCollectionTreeNodeInfoTest.cs =================================================================== diff -u -rd6d1b03ce8dc3c4e6bba565a85ea310f6196adea -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/RingtoetsPipingSurfaceLineCollectionTreeNodeInfoTest.cs (.../RingtoetsPipingSurfaceLineCollectionTreeNodeInfoTest.cs) (revision d6d1b03ce8dc3c4e6bba565a85ea310f6196adea) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/RingtoetsPipingSurfaceLineCollectionTreeNodeInfoTest.cs (.../RingtoetsPipingSurfaceLineCollectionTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -90,7 +90,7 @@ public void Text_Always_ReturnsTextFromResource() { // Setup - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); @@ -108,7 +108,7 @@ public void Image_Always_ReturnsSetImage() { // Setup - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); @@ -126,7 +126,7 @@ public void ForeColor_CollectionWithoutSurfaceLines_ReturnsGrayText() { // Setup - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); @@ -144,7 +144,7 @@ public void ForeColor_CollectionWithSurfaceLines_ReturnsControlText() { // Setup - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var ringtoetsPipingSurfaceLine1 = new RingtoetsPipingSurfaceLine(); var ringtoetsPipingSurfaceLine2 = new RingtoetsPipingSurfaceLine(); @@ -171,7 +171,7 @@ public void ChildNodeObjects_Always_ReturnsChildrenOfData() { // Setup - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var ringtoetsPipingSurfaceLine1 = new RingtoetsPipingSurfaceLine(); var ringtoetsPipingSurfaceLine2 = new RingtoetsPipingSurfaceLine(); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/StochasticSoilModelCollectionContextTreeNodeInfoTest.cs =================================================================== diff -u -r24145cb7feea063e2986e8f4b2270bb2a478b3fd -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/StochasticSoilModelCollectionContextTreeNodeInfoTest.cs (.../StochasticSoilModelCollectionContextTreeNodeInfoTest.cs) (revision 24145cb7feea063e2986e8f4b2270bb2a478b3fd) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/StochasticSoilModelCollectionContextTreeNodeInfoTest.cs (.../StochasticSoilModelCollectionContextTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -281,7 +281,7 @@ using (var treeViewControl = new TreeViewControl()) { var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var stochasticSoilModelCollection = new ObservableCollectionWithSourcePath(); if (sourcePathSet) @@ -291,7 +291,7 @@ var nodeData = new StochasticSoilModelCollectionContext(stochasticSoilModelCollection, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -329,13 +329,13 @@ using (var treeViewControl = new TreeViewControl()) { var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var stochasticSoilModelCollection = new ObservableCollectionWithSourcePath(); stochasticSoilModelCollection.AddRange(Enumerable.Empty(), somePath); var nodeData = new StochasticSoilModelCollectionContext(stochasticSoilModelCollection, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -380,13 +380,13 @@ using (var treeViewControl = new TreeViewControl()) { var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var stochasticSoilModelCollection = new ObservableCollectionWithSourcePath(); stochasticSoilModelCollection.AddRange(Enumerable.Empty(), existingFilePath); var nodeData = new StochasticSoilModelCollectionContext(stochasticSoilModelCollection, pipingFailureMechanism, - assessmentSectionMock); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingCalculationsViewInfoTest.cs =================================================================== diff -u -rc08afe034d3fc27faa6f866f4f267f18284fa3ca -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingCalculationsViewInfoTest.cs (.../PipingCalculationsViewInfoTest.cs) (revision c08afe034d3fc27faa6f866f4f267f18284fa3ca) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingCalculationsViewInfoTest.cs (.../PipingCalculationsViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -157,8 +157,8 @@ public void CloseForData_AssessmentSectionRemovedWithoutPipingFailureMechanism_ReturnsFalse() { // Setup - var assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); var handler = mocks.Stub>(); mocks.ReplayAll(); @@ -179,8 +179,8 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { new PipingFailureMechanism() }); @@ -206,7 +206,7 @@ // Setup var assessmentSection = mocks.Stub(); var failureMechanism = new PipingFailureMechanism(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { failureMechanism }); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismResultViewInfoTest.cs =================================================================== diff -u -rf64dceaa32788bad28dcf09f4a1c3150595f1327 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismResultViewInfoTest.cs (.../PipingFailureMechanismResultViewInfoTest.cs) (revision f64dceaa32788bad28dcf09f4a1c3150595f1327) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismResultViewInfoTest.cs (.../PipingFailureMechanismResultViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -140,8 +140,8 @@ public void CloseForData_AssessmentSectionRemovedWithoutFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); @@ -152,7 +152,7 @@ }) { // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -164,12 +164,12 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var failureMechanismMock = mocks.Stub("N", "C"); + var otherFailureMechanism = mocks.Stub("N", "C"); - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { - failureMechanismMock + otherFailureMechanism }); mocks.ReplayAll(); @@ -182,7 +182,7 @@ }) { // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -196,8 +196,8 @@ // Setup var failureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] { new TestFailureMechanism(), failureMechanism @@ -211,7 +211,7 @@ }) { // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -260,11 +260,11 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); - var failureMechanismContext = new PipingFailureMechanismContext(failureMechanism, assessmentSectionMock); + var failureMechanismContext = new PipingFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new PipingFailureMechanismResultView { Data = failureMechanism.SectionResults @@ -283,7 +283,7 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); @@ -294,7 +294,7 @@ { var failureMechanismContext = new PipingFailureMechanismContext( new PipingFailureMechanism(), - assessmentSectionMock); + assessmentSection); // Call bool closeForData = info.CloseForData(view, failureMechanismContext); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismViewInfoTest.cs =================================================================== diff -u -r5beaf82d10f6c265a99ca67e11ffb5d407adde64 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismViewInfoTest.cs (.../PipingFailureMechanismViewInfoTest.cs) (revision 5beaf82d10f6c265a99ca67e11ffb5d407adde64) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingFailureMechanismViewInfoTest.cs (.../PipingFailureMechanismViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -88,20 +88,20 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionStub = mocks.Stub(); - var otherAssessmentSectionMock = mocks.Stub(); + var assessmentSection = mocks.Stub(); + var otherAssessmentSection = 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 { Data = pipingFailureMechanismContext }) { // Call - bool closeForData = info.CloseForData(view, otherAssessmentSectionMock); + bool closeForData = info.CloseForData(view, otherAssessmentSection); // Assert Assert.IsFalse(closeForData); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs =================================================================== diff -u -racfa9d23d1770ca3171668552ddbe6d63fdd0dcd -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs (.../PipingInputViewInfoTest.cs) (revision acfa9d23d1770ca3171668552ddbe6d63fdd0dcd) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs (.../PipingInputViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -85,7 +85,7 @@ public void GetViewData_Always_ReturnsWrappedCalculation() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingInput = new PipingInput(new GeneralPipingInput()); @@ -108,7 +108,7 @@ public void CloseForData_ViewCorrespondingToRemovedPipingCalculationScenarioContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingCalculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -136,7 +136,7 @@ public void CloseForData_ViewNotCorrespondingToRemovedPipingCalculationScenarioContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingCalculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -211,7 +211,7 @@ public void CloseForData_ViewCorrespondingWithRemovedPipingCalculationGroupContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -241,7 +241,7 @@ public void CloseForData_ViewNotCorrespondingWithRemovedPipingCalculationGroupContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -271,7 +271,7 @@ public void CloseForData_NestedViewCorrespondingWithRemovedParentPipingCalculationGroupContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -303,7 +303,7 @@ public void CloseForData_NestedViewNotCorrespondingWithRemovedParentPipingCalculationGroupContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -335,7 +335,7 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -362,7 +362,7 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -389,7 +389,7 @@ public void CloseForData_NestedViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -419,7 +419,7 @@ public void CloseForData_NestedViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -543,8 +543,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -573,8 +573,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -606,8 +606,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculationGroup); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -639,8 +639,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculationGroup); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism }); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingScenariosViewInfoTest.cs =================================================================== diff -u -rf64dceaa32788bad28dcf09f4a1c3150595f1327 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingScenariosViewInfoTest.cs (.../PipingScenariosViewInfoTest.cs) (revision f64dceaa32788bad28dcf09f4a1c3150595f1327) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingScenariosViewInfoTest.cs (.../PipingScenariosViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -133,8 +133,8 @@ // Setup var pipingCalculationsGroup = new CalculationGroup(); - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); @@ -144,7 +144,7 @@ }) { // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -159,8 +159,8 @@ var pipingFailureMechanism = new PipingFailureMechanism(); var pipingCalculationsGroup = new CalculationGroup(); - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { pipingFailureMechanism }); @@ -173,7 +173,7 @@ }) { // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -187,8 +187,8 @@ // Setup var pipingFailureMechanism = new PipingFailureMechanism(); - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { pipingFailureMechanism }); @@ -201,7 +201,7 @@ }) { // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -251,11 +251,11 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); - var failureMechanismContext = new PipingFailureMechanismContext(new PipingFailureMechanism(), assessmentSectionMock); + var failureMechanismContext = new PipingFailureMechanismContext(new PipingFailureMechanism(), assessmentSection); using (var view = new PipingScenariosView { @@ -275,11 +275,11 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new PipingFailureMechanism(); - var failureMechanismContext = new PipingFailureMechanismContext(failureMechanism, assessmentSectionMock); + var failureMechanismContext = new PipingFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new PipingScenariosView { Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresCalculationContextTest.cs =================================================================== diff -u -rab20c4eb4ca81bd3845d50210d2bdb301177af6a -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresCalculationContextTest.cs (.../StabilityPointStructuresCalculationContextTest.cs) (revision ab20c4eb4ca81bd3845d50210d2bdb301177af6a) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresCalculationContextTest.cs (.../StabilityPointStructuresCalculationContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -37,21 +37,21 @@ { // Setup var mocksRepository = new MockRepository(); - var assessmentSectionMock = mocksRepository.Stub(); + var assessmentSection = mocksRepository.Stub(); mocksRepository.ReplayAll(); var calculation = new StructuresCalculation(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); // Call - var context = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); + var context = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf, StabilityPointStructuresFailureMechanism>>(context); Assert.IsInstanceOf, StabilityPointStructuresFailureMechanism>>(context); Assert.AreSame(calculation, context.WrappedData); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(assessmentSectionMock, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocksRepository.VerifyAll(); } } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresCalculationGroupContextTest.cs =================================================================== diff -u -rca23b1b155ca87c0aa4665fd919727570f31c781 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresCalculationGroupContextTest.cs (.../StabilityPointStructuresCalculationGroupContextTest.cs) (revision ca23b1b155ca87c0aa4665fd919727570f31c781) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresCalculationGroupContextTest.cs (.../StabilityPointStructuresCalculationGroupContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -37,21 +37,21 @@ { // Setup var mockRepository = new MockRepository(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); mockRepository.ReplayAll(); var calculationGroup = new CalculationGroup(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); // Call - var groupContext = new StabilityPointStructuresCalculationGroupContext(calculationGroup, failureMechanism, assessmentSectionMock); + var groupContext = new StabilityPointStructuresCalculationGroupContext(calculationGroup, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(groupContext); Assert.IsInstanceOf>(groupContext); Assert.AreSame(calculationGroup, groupContext.WrappedData); Assert.AreSame(failureMechanism, groupContext.FailureMechanism); - Assert.AreSame(assessmentSectionMock, groupContext.AssessmentSection); + Assert.AreSame(assessmentSection, groupContext.AssessmentSection); mockRepository.VerifyAll(); } } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresFailureMechanismContextTest.cs =================================================================== diff -u -re5f4a598d201934e48ab71795fb3b19cb9a960b1 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresFailureMechanismContextTest.cs (.../StabilityPointStructuresFailureMechanismContextTest.cs) (revision e5f4a598d201934e48ab71795fb3b19cb9a960b1) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresFailureMechanismContextTest.cs (.../StabilityPointStructuresFailureMechanismContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -36,17 +36,17 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); // Call - var context = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSectionMock); + var context = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(context); - Assert.AreSame(assessmentSectionMock, context.Parent); + Assert.AreSame(assessmentSection, context.Parent); Assert.AreSame(failureMechanism, context.WrappedData); mocks.VerifyAll(); } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresInputContextTest.cs =================================================================== diff -u -r0ff7a1a433c8c0835cbf2657cec049d6f2b168c7 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresInputContextTest.cs (.../StabilityPointStructuresInputContextTest.cs) (revision 0ff7a1a433c8c0835cbf2657cec049d6f2b168c7) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PresentationObjects/StabilityPointStructuresInputContextTest.cs (.../StabilityPointStructuresInputContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -44,22 +44,22 @@ public void ConstructorWithData_Always_ExpectedPropertiesSet() { // Setup - var assessmentSectionMock = mocksRepository.Stub(); + var assessmentSection = mocksRepository.Stub(); mocksRepository.ReplayAll(); var input = new StabilityPointStructuresInput(); var calculation = new StructuresCalculation(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); // Call - var context = new StabilityPointStructuresInputContext(input, calculation, failureMechanism, assessmentSectionMock); + var context = new StabilityPointStructuresInputContext(input, calculation, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf, StabilityPointStructuresFailureMechanism>>(context); Assert.AreSame(input, context.WrappedData); Assert.AreSame(calculation, context.Calculation); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(assessmentSectionMock, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocksRepository.VerifyAll(); } } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/PropertyInfos/StabilityPointStructuresFailureMechanismContextPropertyInfoTest.cs =================================================================== diff -u -r0ff7a1a433c8c0835cbf2657cec049d6f2b168c7 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/PropertyInfos/StabilityPointStructuresFailureMechanismContextPropertyInfoTest.cs (.../StabilityPointStructuresFailureMechanismContextPropertyInfoTest.cs) (revision 0ff7a1a433c8c0835cbf2657cec049d6f2b168c7) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/PropertyInfos/StabilityPointStructuresFailureMechanismContextPropertyInfoTest.cs (.../StabilityPointStructuresFailureMechanismContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -62,7 +62,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/PropertyInfos/StabilityPointStructuresInputContextPropertyInfoTest.cs =================================================================== diff -u -r0ff7a1a433c8c0835cbf2657cec049d6f2b168c7 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/PropertyInfos/StabilityPointStructuresInputContextPropertyInfoTest.cs (.../StabilityPointStructuresInputContextPropertyInfoTest.cs) (revision 0ff7a1a433c8c0835cbf2657cec049d6f2b168c7) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/PropertyInfos/StabilityPointStructuresInputContextPropertyInfoTest.cs (.../StabilityPointStructuresInputContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -63,7 +63,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new TestStabilityPointStructuresCalculation(); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r08d1e0071c50b67ff8c6a6eba6ec47734d714182 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision 08d1e0071c50b67ff8c6a6eba6ec47734d714182) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -214,7 +214,7 @@ // Setup var guiMock = mocks.StrictMock(); var failureMechanism = new TestStabilityPointStructuresFailureMechanism(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var calculation = new StructuresCalculation(); var nodeData = new StabilityPointStructuresCalculationContext(calculation, failureMechanism, assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -223,11 +223,11 @@ using (var treeViewControl = new TreeViewControl()) { guiMock.Expect(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); - assessmentSection.Stub(asm => asm.HydraulicBoundaryDatabase).Return(new HydraulicBoundaryDatabase + assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase { FilePath = validFilePath, Version = "random" - }); + }; mocks.ReplayAll(); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresInputContextTreeNodeInfoTest.cs =================================================================== diff -u -rf2f7d22ee59276f5df1f83fd409899bd895ea163 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresInputContextTreeNodeInfoTest.cs (.../StabilityPointStructuresInputContextTreeNodeInfoTest.cs) (revision f2f7d22ee59276f5df1f83fd409899bd895ea163) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresInputContextTreeNodeInfoTest.cs (.../StabilityPointStructuresInputContextTreeNodeInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -87,12 +87,11 @@ public void Text_Always_ReturnsTextFromResource() { // Setup - var assessmentSectionMock = mocksRepository.Stub(); var stabilityPointStructuresInputContext = new StabilityPointStructuresInputContext( mocksRepository.Stub(), mocksRepository.Stub>(), new StabilityPointStructuresFailureMechanism(), - assessmentSectionMock); + mocksRepository.Stub()); mocksRepository.ReplayAll(); @@ -107,12 +106,11 @@ public void Image_Always_ReturnsSetImage() { // Setup - var assessmentSectionMock = mocksRepository.Stub(); var stabilityPointStructuresInputContext = new StabilityPointStructuresInputContext( mocksRepository.Stub(), mocksRepository.Stub>(), new StabilityPointStructuresFailureMechanism(), - assessmentSectionMock); + mocksRepository.Stub()); mocksRepository.ReplayAll(); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs =================================================================== diff -u -r8c1fffbb415e7c2470be6d3fa2971103777d418e -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs (.../StabilityPointStructuresFailureMechanismViewInfoTest.cs) (revision 8c1fffbb415e7c2470be6d3fa2971103777d418e) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresFailureMechanismViewInfoTest.cs (.../StabilityPointStructuresFailureMechanismViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -87,20 +87,20 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionStub = mocks.Stub(); - var otherAssessmentSectionMock = mocks.Stub(); + var assessmentSection = mocks.Stub(); + var otherAssessmentSection = 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 { Data = failureMechanismContext }) { // Call - bool closeForData = info.CloseForData(view, otherAssessmentSectionMock); + bool closeForData = info.CloseForData(view, otherAssessmentSection); // Assert Assert.IsFalse(closeForData); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresResultViewInfoTest.cs =================================================================== diff -u -re5f4a598d201934e48ab71795fb3b19cb9a960b1 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresResultViewInfoTest.cs (.../StabilityPointStructuresResultViewInfoTest.cs) (revision e5f4a598d201934e48ab71795fb3b19cb9a960b1) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresResultViewInfoTest.cs (.../StabilityPointStructuresResultViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -137,8 +137,8 @@ public void CloseForData_AssessmentSectionRemovedWithoutFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); using (var view = new StabilityPointStructuresFailureMechanismResultView()) @@ -147,7 +147,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -159,13 +159,13 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - var failureMechanismMock = mocks.Stub("N", "C"); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); + var otherFailureMechanism = mocks.Stub("N", "C"); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { - failureMechanismMock + otherFailureMechanism }); mocks.ReplayAll(); @@ -175,7 +175,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -187,10 +187,10 @@ public void CloseForData_ViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] { new TestFailureMechanism(), failureMechanism @@ -203,7 +203,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -249,11 +249,11 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); - var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSectionMock); + var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(failureMechanism, assessmentSection); using (var view = new StabilityPointStructuresFailureMechanismResultView()) { @@ -272,12 +272,12 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); var failureMechanismContext = new StabilityPointStructuresFailureMechanismContext(new StabilityPointStructuresFailureMechanism(), - assessmentSectionMock); + assessmentSection); using (var view = new StabilityPointStructuresFailureMechanismResultView()) { Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs =================================================================== diff -u -r8c1fffbb415e7c2470be6d3fa2971103777d418e -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs (.../StabilityPointStructuresScenariosViewInfoTest.cs) (revision 8c1fffbb415e7c2470be6d3fa2971103777d418e) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs (.../StabilityPointStructuresScenariosViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -157,7 +157,7 @@ var unrelatedFailureMechanism = new StabilityPointStructuresFailureMechanism(); var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { unrelatedFailureMechanism }); @@ -187,7 +187,7 @@ }) { var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { relatedFailureMechanism }); @@ -244,8 +244,8 @@ public void CloseForData_AssessmentSectionRemovedWithoutStabilityPointStructuresFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); var view = new StabilityPointStructuresScenariosView @@ -254,7 +254,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -265,8 +265,8 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { new StabilityPointStructuresFailureMechanism() }); @@ -279,7 +279,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -290,9 +290,9 @@ public void CloseForData_ViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -305,7 +305,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/PropertyInfos/StabilityStoneCoverFailureMechanismContextPropertyInfoTest.cs =================================================================== diff -u -rc48f16746209f799f93c6fc79a5202a9e3fd419f -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/PropertyInfos/StabilityStoneCoverFailureMechanismContextPropertyInfoTest.cs (.../StabilityStoneCoverFailureMechanismContextPropertyInfoTest.cs) (revision c48f16746209f799f93c6fc79a5202a9e3fd419f) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/PropertyInfos/StabilityStoneCoverFailureMechanismContextPropertyInfoTest.cs (.../StabilityStoneCoverFailureMechanismContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -53,11 +53,11 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); - var context = new StabilityStoneCoverFailureMechanismContext(failureMechanism, assessmentSectionMock); + var context = new StabilityStoneCoverFailureMechanismContext(failureMechanism, assessmentSection); using (var plugin = new StabilityStoneCoverPlugin()) { Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverFailureMechanismViewInfoTest.cs =================================================================== diff -u -r8c1fffbb415e7c2470be6d3fa2971103777d418e -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverFailureMechanismViewInfoTest.cs (.../StabilityStoneCoverFailureMechanismViewInfoTest.cs) (revision 8c1fffbb415e7c2470be6d3fa2971103777d418e) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverFailureMechanismViewInfoTest.cs (.../StabilityStoneCoverFailureMechanismViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -88,20 +88,20 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionStub = mocks.Stub(); - var otherAssessmentSectionMock = mocks.Stub(); + var assessmentSection = mocks.Stub(); + var otherAssessmentSection = 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 { Data = stabilityStoneCoverFailureMechanismContext }) { // Call - bool closeForData = info.CloseForData(view, otherAssessmentSectionMock); + bool closeForData = info.CloseForData(view, otherAssessmentSection); // Assert Assert.IsFalse(closeForData); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverResultViewInfoTest.cs =================================================================== diff -u -r1ff2f27e84cbd5da25a9da66d478467a773cb573 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverResultViewInfoTest.cs (.../StabilityStoneCoverResultViewInfoTest.cs) (revision 1ff2f27e84cbd5da25a9da66d478467a773cb573) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/ViewInfos/StabilityStoneCoverResultViewInfoTest.cs (.../StabilityStoneCoverResultViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -139,10 +139,10 @@ public void CloseForData_AssessmentSectionRemovedWithoutFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); @@ -151,7 +151,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -163,23 +163,23 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - var failureMechanismMock = mocks.Stub("N", "C"); + var assessmentSection = mocks.Stub(); + var failureMechanism = new StabilityStoneCoverFailureMechanism(); + var otherFailureMechanism = mocks.Stub("N", "C"); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { - failureMechanismMock + otherFailureMechanism }); mocks.ReplayAll(); using (var view = new StabilityStoneCoverResultView()) { - var failureMechanism = new StabilityStoneCoverFailureMechanism(); view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -191,10 +191,10 @@ public void CloseForData_ViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] { new StabilityStoneCoverFailureMechanism(), failureMechanism @@ -207,7 +207,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationActivityTest.cs =================================================================== diff -u -r03ec489f1a084da620f85271fdbd28e081ea0eb5 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationActivityTest.cs (.../StabilityStoneCoverWaveConditionsCalculationActivityTest.cs) (revision 03ec489f1a084da620f85271fdbd28e081ea0eb5) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationActivityTest.cs (.../StabilityStoneCoverWaveConditionsCalculationActivityTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -37,14 +37,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); var calculation = new StabilityStoneCoverWaveConditionsCalculation(); // Call - var activity = new StabilityStoneCoverWaveConditionsCalculationActivity(calculation, string.Empty, failureMechanism, assessmentSectionMock); + var activity = new StabilityStoneCoverWaveConditionsCalculationActivity(calculation, string.Empty, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(activity); @@ -60,13 +60,13 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); // Call - TestDelegate call = () => new StabilityStoneCoverWaveConditionsCalculationActivity(null, "", failureMechanism, assessmentSectionMock); + TestDelegate call = () => new StabilityStoneCoverWaveConditionsCalculationActivity(null, "", failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); @@ -79,14 +79,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new StabilityStoneCoverFailureMechanism(); var calculation = new StabilityStoneCoverWaveConditionsCalculation(); // Call - TestDelegate call = () => new StabilityStoneCoverWaveConditionsCalculationActivity(calculation, null, failureMechanism, assessmentSectionMock); + TestDelegate call = () => new StabilityStoneCoverWaveConditionsCalculationActivity(calculation, null, failureMechanism, assessmentSection); // Assert var exception = Assert.Throws(call); @@ -99,13 +99,13 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new StabilityStoneCoverWaveConditionsCalculation(); // Call - TestDelegate call = () => new StabilityStoneCoverWaveConditionsCalculationActivity(calculation, "", null, assessmentSectionMock); + TestDelegate call = () => new StabilityStoneCoverWaveConditionsCalculationActivity(calculation, "", null, assessmentSection); // Assert var exception = Assert.Throws(call); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverCalculationContextTest.cs =================================================================== diff -u -r047a56dd0274ea50de6f06ebad47fbe75ba86ba5 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverCalculationContextTest.cs (.../WaveImpactAsphaltCoverCalculationContextTest.cs) (revision 047a56dd0274ea50de6f06ebad47fbe75ba86ba5) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverCalculationContextTest.cs (.../WaveImpactAsphaltCoverCalculationContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -36,21 +36,21 @@ { // Setup var mocksRepository = new MockRepository(); - var assessmentSectionMock = mocksRepository.StrictMock(); + var assessmentSection = mocksRepository.Stub(); mocksRepository.ReplayAll(); var calculation = new WaveImpactAsphaltCoverWaveConditionsCalculation(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); // Call - var context = new WaveImpactAsphaltCoverWaveConditionsCalculationContext(calculation, failureMechanism, assessmentSectionMock); + var context = new WaveImpactAsphaltCoverWaveConditionsCalculationContext(calculation, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(context); Assert.IsInstanceOf>(context); Assert.AreEqual(calculation, context.WrappedData); Assert.AreEqual(failureMechanism, context.FailureMechanism); - Assert.AreEqual(assessmentSectionMock, context.AssessmentSection); + Assert.AreEqual(assessmentSection, context.AssessmentSection); mocksRepository.VerifyAll(); } } Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverCalculationGroupContextTest.cs =================================================================== diff -u -r047a56dd0274ea50de6f06ebad47fbe75ba86ba5 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverCalculationGroupContextTest.cs (.../WaveImpactAsphaltCoverCalculationGroupContextTest.cs) (revision 047a56dd0274ea50de6f06ebad47fbe75ba86ba5) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverCalculationGroupContextTest.cs (.../WaveImpactAsphaltCoverCalculationGroupContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -37,21 +37,21 @@ { // Setup var mockRepository = new MockRepository(); - var assessmentSectionMock = mockRepository.StrictMock(); + var assessmentSection = mockRepository.Stub(); mockRepository.ReplayAll(); var calculationGroup = new CalculationGroup(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); // Call - var groupContext = new WaveImpactAsphaltCoverWaveConditionsCalculationGroupContext(calculationGroup, failureMechanism, assessmentSectionMock); + var groupContext = new WaveImpactAsphaltCoverWaveConditionsCalculationGroupContext(calculationGroup, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(groupContext); Assert.IsInstanceOf>(groupContext); Assert.AreSame(calculationGroup, groupContext.WrappedData); Assert.AreSame(failureMechanism, groupContext.FailureMechanism); - Assert.AreSame(assessmentSectionMock, groupContext.AssessmentSection); + Assert.AreSame(assessmentSection, groupContext.AssessmentSection); Assert.AreSame(failureMechanism.ForeshoreProfiles, groupContext.ForeshoreProfiles); mockRepository.VerifyAll(); } Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverContextTest.cs =================================================================== diff -u -re182f6f394aa75e739467a77e7bcacd9a8b25429 -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverContextTest.cs (.../WaveImpactAsphaltCoverContextTest.cs) (revision e182f6f394aa75e739467a77e7bcacd9a8b25429) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverContextTest.cs (.../WaveImpactAsphaltCoverContextTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -46,19 +46,19 @@ public void ParameteredConstructor_ExpectedValues() { // Setup - var assessmentSectionMock = mockRepository.Stub(); + var assessmentSection = mockRepository.Stub(); var target = mockRepository.StrictMock(); mockRepository.ReplayAll(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); // Call - var context = new SimpleWaveImpactAsphaltCoverContext(target, failureMechanism, assessmentSectionMock); + var context = new SimpleWaveImpactAsphaltCoverContext(target, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(context); Assert.AreSame(target, context.WrappedData); - Assert.AreSame(assessmentSectionMock, context.AssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); Assert.AreSame(failureMechanism, context.FailureMechanism); CollectionAssert.IsEmpty(context.HydraulicBoundaryLocations); mockRepository.VerifyAll(); @@ -68,12 +68,12 @@ public void ParameteredConstructor_FailureMechanismIsNull_ThrowsArgumentNullException() { // Setup - var assessmentSectionMock = mockRepository.Stub(); + var assessmentSection = mockRepository.Stub(); var observableObject = mockRepository.StrictMock(); mockRepository.ReplayAll(); // Call - TestDelegate call = () => new SimpleWaveImpactAsphaltCoverContext(observableObject, null, assessmentSectionMock); + TestDelegate call = () => new SimpleWaveImpactAsphaltCoverContext(observableObject, null, assessmentSection); // Assert var exception = Assert.Throws(call); @@ -105,13 +105,13 @@ var hydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); hydraulicBoundaryDatabase.Locations.Add(new HydraulicBoundaryLocation(1, "name", 1.1, 2.2)); - var assessmentSectionMock = mockRepository.Stub(); - assessmentSectionMock.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; + var assessmentSection = mockRepository.Stub(); + assessmentSection.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; var target = mockRepository.StrictMock(); mockRepository.ReplayAll(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); - var context = new SimpleWaveImpactAsphaltCoverContext(target, failureMechanism, assessmentSectionMock); + var context = new SimpleWaveImpactAsphaltCoverContext(target, failureMechanism, assessmentSection); // Call var availableHydraulicBoundaryLocations = context.HydraulicBoundaryLocations; Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/PropertyInfos/WaveImpactAsphaltCoverFailureMechanismContextPropertyInfoTest.cs =================================================================== diff -u -rc48f16746209f799f93c6fc79a5202a9e3fd419f -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/PropertyInfos/WaveImpactAsphaltCoverFailureMechanismContextPropertyInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismContextPropertyInfoTest.cs) (revision c48f16746209f799f93c6fc79a5202a9e3fd419f) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/PropertyInfos/WaveImpactAsphaltCoverFailureMechanismContextPropertyInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismContextPropertyInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -53,11 +53,11 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); - var context = new WaveImpactAsphaltCoverFailureMechanismContext(failureMechanism, assessmentSectionMock); + var context = new WaveImpactAsphaltCoverFailureMechanismContext(failureMechanism, assessmentSection); using (var plugin = new WaveImpactAsphaltCoverPlugin()) { Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs =================================================================== diff -u -r8c1fffbb415e7c2470be6d3fa2971103777d418e -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs) (revision 8c1fffbb415e7c2470be6d3fa2971103777d418e) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -88,20 +88,20 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionStub = mocks.Stub(); - var otherAssessmentSectionMock = mocks.Stub(); + var assessmentSection = mocks.Stub(); + var otherAssessmentSection = 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 { Data = waveImpactAsphaltCoverFailureMechanismContext }) { // Call - bool closeForData = info.CloseForData(view, otherAssessmentSectionMock); + bool closeForData = info.CloseForData(view, otherAssessmentSection); // Assert Assert.IsFalse(closeForData); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverResultViewInfoTest.cs =================================================================== diff -u -r7ae9100ff4e61169edcefaeb01b72d492431742f -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverResultViewInfoTest.cs (.../WaveImpactAsphaltCoverResultViewInfoTest.cs) (revision 7ae9100ff4e61169edcefaeb01b72d492431742f) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverResultViewInfoTest.cs (.../WaveImpactAsphaltCoverResultViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -137,8 +137,8 @@ public void CloseForData_AssessmentSectionRemovedWithoutFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); @@ -148,7 +148,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -160,23 +160,23 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - var failureMechanismMock = mocks.Stub("N", "C"); + var assessmentSection = mocks.Stub(); + var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); + var otherFailureMechanism = mocks.Stub("N", "C"); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { - failureMechanismMock + otherFailureMechanism }); mocks.ReplayAll(); using (var view = new WaveImpactAsphaltCoverFailureMechanismResultView()) { - var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -188,10 +188,10 @@ public void CloseForData_ViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[] { new WaveImpactAsphaltCoverFailureMechanism(), failureMechanism @@ -204,7 +204,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSectionMock); + var closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverWaveConditionsCalculationActivityTest.cs =================================================================== diff -u -ra8c48040ef69edbc103390432fbd921244e92afd -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverWaveConditionsCalculationActivityTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationActivityTest.cs) (revision a8c48040ef69edbc103390432fbd921244e92afd) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverWaveConditionsCalculationActivityTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationActivityTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -37,14 +37,14 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); var calculation = new WaveImpactAsphaltCoverWaveConditionsCalculation(); // Call - var activity = new WaveImpactAsphaltCoverWaveConditionsCalculationActivity(calculation, string.Empty, failureMechanism, assessmentSectionMock); + var activity = new WaveImpactAsphaltCoverWaveConditionsCalculationActivity(calculation, string.Empty, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf(activity); @@ -60,7 +60,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); @@ -79,7 +79,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new WaveImpactAsphaltCoverWaveConditionsCalculation(); @@ -99,7 +99,7 @@ { // Setup var mocks = new MockRepository(); - var assessmentSection = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new WaveImpactAsphaltCoverWaveConditionsCalculation();