Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rd337718251f4330d447d555eb1c70df226dd9823 -rf8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision d337718251f4330d447d555eb1c70df226dd9823) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision f8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e) @@ -83,26 +83,6 @@ private MockRepository mocks; private GrassCoverErosionInwardsPlugin plugin; - public override void Setup() - { - mocks = new MockRepository(); - gui = mocks.Stub(); - plugin = new GrassCoverErosionInwardsPlugin - { - Gui = gui - }; - - info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionInwardsCalculationGroupContext)); - } - - public override void TearDown() - { - plugin.Dispose(); - mocks.VerifyAll(); - - base.TearDown(); - } - [Test] public void Initialized_Always_ExpectedPropertiesSet() { @@ -1384,8 +1364,10 @@ string validFilePath = Path.Combine(testDataPath, "complete.sqlite"); - var hydraulicBoundaryDatabase = mocks.Stub(); - hydraulicBoundaryDatabase.FilePath = validFilePath; + var hydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + { + FilePath = validFilePath + }; var assessmentSection = mocks.Stub(); assessmentSection.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; @@ -1451,8 +1433,10 @@ string validFilePath = Path.Combine(testDataPath, "complete.sqlite"); - var hydraulicBoundaryDatabase = mocks.Stub(); - hydraulicBoundaryDatabase.FilePath = validFilePath; + var hydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + { + FilePath = validFilePath + }; var assessmentSection = mocks.Stub(); assessmentSection.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; @@ -1473,7 +1457,7 @@ int nrOfCalculators = failureMechanism.Calculations.Count(); var calculatorFactory = mocks.Stub(); - calculatorFactory.Expect(cf => cf.CreateOvertoppingCalculator(testDataPath)) + calculatorFactory.Expect(cf => cf.CreateOvertoppingCalculator(testDataPath, string.Empty)) .Return(new TestOvertoppingCalculator()) .Repeat .Times(nrOfCalculators); @@ -1918,6 +1902,26 @@ Assert.IsNull(result.Calculation); } + public override void Setup() + { + mocks = new MockRepository(); + gui = mocks.Stub(); + plugin = new GrassCoverErosionInwardsPlugin + { + Gui = gui + }; + + info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionInwardsCalculationGroupContext)); + } + + public override void TearDown() + { + plugin.Dispose(); + mocks.VerifyAll(); + + base.TearDown(); + } + private static void ChangeDikeProfile(DikeProfile dikeProfile) { dikeProfile.CopyProperties(new DikeProfile(dikeProfile.WorldReferencePoint,