Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rf8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e -r8900f570b33f0de1a512fc5b2509771e1201672c --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision f8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 8900f570b33f0de1a512fc5b2509771e1201672c) @@ -572,7 +572,7 @@ { InputParameters = { - DikeProfile = new TestDikeProfile() + DikeProfile = DikeProfileTestFactory.CreateDikeProfile() } } } @@ -609,7 +609,7 @@ public void ContextMenuStrip_CalculationGroupWithCalculationWithDikeProfileAndInputOutOfSync_ContextMenuItemUpdateDikeProfilesEnabledAndToolTipSet() { // Setup - var testDikeProfile = new TestDikeProfile(); + DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile(); var group = new CalculationGroup { Children = @@ -618,7 +618,7 @@ { InputParameters = { - DikeProfile = testDikeProfile + DikeProfile = dikeProfile } } } @@ -638,7 +638,7 @@ plugin.Gui = gui; - ChangeDikeProfile(testDikeProfile); + ChangeDikeProfile(dikeProfile); // Call using (ContextMenuStrip contextMenu = info.ContextMenuStrip(nodeData, null, treeViewControl)) @@ -664,7 +664,7 @@ var calculation1Observer = mocks.StrictMock(); var calculation2Observer = mocks.StrictMock(); - var dikeProfile = new TestDikeProfile(); + DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile(); var calculation1 = new GrassCoverErosionInwardsCalculation { InputParameters = @@ -736,7 +736,7 @@ var calculation1Observer = mocks.StrictMock(); var calculation2Observer = mocks.StrictMock(); - var dikeProfile = new TestDikeProfile(); + DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile(); var calculation1 = new GrassCoverErosionInwardsCalculation { InputParameters = @@ -828,7 +828,7 @@ var calculation2Observer = mocks.StrictMock(); calculation2Observer.Expect(obs => obs.UpdateObserver()); - var dikeProfile = new TestDikeProfile(); + DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile(); var calculation1 = new GrassCoverErosionInwardsCalculation { InputParameters = @@ -1306,7 +1306,7 @@ var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); failureMechanism.DikeProfiles.AddRange(new[] { - new TestDikeProfile() + DikeProfileTestFactory.CreateDikeProfile() }, dikeProfileCollectionPath); var assessmentSection = mocks.Stub(); @@ -1349,7 +1349,7 @@ InputParameters = { HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - DikeProfile = new TestDikeProfile() + DikeProfile = DikeProfileTestFactory.CreateDikeProfile() } }); failureMechanism.CalculationsGroup.Children.Add(new GrassCoverErosionInwardsCalculation @@ -1358,7 +1358,7 @@ InputParameters = { HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - DikeProfile = new TestDikeProfile() + DikeProfile = DikeProfileTestFactory.CreateDikeProfile() } }); @@ -1418,7 +1418,7 @@ InputParameters = { HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - DikeProfile = new TestDikeProfile() + DikeProfile = DikeProfileTestFactory.CreateDikeProfile() } }); failureMechanism.CalculationsGroup.Children.Add(new GrassCoverErosionInwardsCalculation @@ -1427,7 +1427,7 @@ InputParameters = { HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - DikeProfile = new TestDikeProfile() + DikeProfile = DikeProfileTestFactory.CreateDikeProfile() } }); @@ -1600,8 +1600,8 @@ var assessmentSection = mocks.Stub(); - DikeProfile dikeProfile1 = new TestDikeProfile("Dike profile 1", "id1"); - DikeProfile dikeProfile2 = new TestDikeProfile("Dike profile 2", "id2"); + DikeProfile dikeProfile1 = DikeProfileTestFactory.CreateDikeProfile("Dike profile 1", "id1"); + DikeProfile dikeProfile2 = DikeProfileTestFactory.CreateDikeProfile("Dike profile 2", "id2"); var existingCalculationGroup = new CalculationGroup(); var existingCalculation = new GrassCoverErosionInwardsCalculation(); @@ -1671,8 +1671,8 @@ // Given var assessmentSection = mocks.Stub(); - DikeProfile dikeProfile1 = new TestDikeProfile("Dike profile 1", "id1"); - DikeProfile dikeProfile2 = new TestDikeProfile("Dike profile 2", "id2"); + DikeProfile dikeProfile1 = DikeProfileTestFactory.CreateDikeProfile("Dike profile 1", "id1"); + DikeProfile dikeProfile2 = DikeProfileTestFactory.CreateDikeProfile("Dike profile 2", "id2"); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); failureMechanism.DikeProfiles.AddRange(new[] @@ -1729,7 +1729,7 @@ var assessmentSection = mocks.Stub(); const string existingCalculationName = "Dike profile"; - DikeProfile dikeProfile = new TestDikeProfile(existingCalculationName); + DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile(existingCalculationName); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism {