Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs =================================================================== diff -u -reabf1a800431a23b06c8d81dfbf0f46a71bb659b -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs (.../ClosingStructuresFailureMechanismViewTest.cs) (revision eabf1a800431a23b06c8d81dfbf0f46a71bb659b) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs (.../ClosingStructuresFailureMechanismViewTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -254,16 +254,16 @@ failureMechanism.AddSection(new FailureMechanismSection("B", geometryPoints.Skip(1).Take(2))); failureMechanism.AddSection(new FailureMechanismSection("C", geometryPoints.Skip(2).Take(2))); - var profile1 = new TestForeshoreProfile(new[] + var profile1 = new TestForeshoreProfile("profile1 ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "profile1 ID"); - var profile2 = new TestForeshoreProfile(new[] + }); + var profile2 = new TestForeshoreProfile("profile2 ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "profile2 ID"); + }); failureMechanism.ForeshoreProfiles.AddRange(new[] { profile1, @@ -518,11 +518,11 @@ failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("originalProfile ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "originalProfile ID") + }) }, "path"); view.Data = failureMechanismContext; @@ -535,11 +535,11 @@ // Call failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("newProfile ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "newProfile ID") + }) }, "path"); failureMechanism.ForeshoreProfiles.NotifyObservers(); Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestDikeProfileTest.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestDikeProfileTest.cs (.../TestDikeProfileTest.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestDikeProfileTest.cs (.../TestDikeProfileTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -142,7 +142,7 @@ CollectionAssert.IsEmpty(testProfile.ForeshoreGeometry); Assert.IsFalse(testProfile.HasBreakWater); Assert.AreEqual(id, testProfile.Id); - Assert.AreEqual(id, testProfile.Name); + Assert.AreEqual("name", testProfile.Name); Assert.AreEqual(0, testProfile.Orientation.Value); Assert.AreEqual(point, testProfile.WorldReferencePoint); Assert.AreEqual(0, testProfile.X0); @@ -195,7 +195,7 @@ Assert.AreEqual(0, testProfile.DikeHeight.Value); CollectionAssert.AreEqual(foreshoreProfileGeometry, testProfile.ForeshoreGeometry); Assert.IsFalse(testProfile.HasBreakWater); - Assert.AreEqual("id", testProfile.Name); + Assert.AreEqual("name", testProfile.Name); Assert.AreEqual(0, testProfile.Orientation.Value); Assert.AreEqual(new Point2D(0, 0), testProfile.WorldReferencePoint); Assert.AreEqual(0, testProfile.X0); @@ -225,7 +225,7 @@ CollectionAssert.AreEqual(foreshoreProfileGeometry, testProfile.ForeshoreGeometry); Assert.IsFalse(testProfile.HasBreakWater); Assert.AreEqual(id, testProfile.Id); - Assert.AreEqual(id, testProfile.Name); + Assert.AreEqual("name", testProfile.Name); Assert.AreEqual(0, testProfile.Orientation.Value); Assert.AreEqual(new Point2D(0, 0), testProfile.WorldReferencePoint); Assert.AreEqual(0, testProfile.X0); @@ -253,7 +253,7 @@ CollectionAssert.IsEmpty(testProfile.ForeshoreGeometry); Assert.IsFalse(testProfile.HasBreakWater); Assert.AreEqual("id", testProfile.Id); - Assert.AreEqual("id", testProfile.Name); + Assert.AreEqual("name", testProfile.Name); Assert.AreEqual(0, testProfile.Orientation.Value); Assert.AreEqual(new Point2D(0, 0), testProfile.WorldReferencePoint); Assert.AreEqual(0, testProfile.X0); Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestForeshoreProfileTest.cs =================================================================== diff -u -r7179946a6b62ebb33a90167c52af7c32f1100d73 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestForeshoreProfileTest.cs (.../TestForeshoreProfileTest.cs) (revision 7179946a6b62ebb33a90167c52af7c32f1100d73) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestForeshoreProfileTest.cs (.../TestForeshoreProfileTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -37,7 +37,7 @@ // Assert Assert.IsEmpty(profile.Geometry); Assert.AreEqual("id", profile.Id); - Assert.AreEqual("id", profile.Name); + Assert.AreEqual("name", profile.Name); Assert.IsFalse(profile.HasBreakWater); Assert.AreEqual(0.0, profile.X0); Assert.AreEqual(0.0, profile.Orientation.Value); @@ -53,7 +53,7 @@ // Assert Assert.IsEmpty(profile.Geometry); Assert.AreEqual("id", profile.Id); - Assert.AreEqual("id", profile.Name); + Assert.AreEqual("name", profile.Name); Assert.IsTrue(profile.HasBreakWater); Assert.IsNotNull(profile.BreakWater); Assert.AreEqual(BreakWaterType.Dam, profile.BreakWater.Type); @@ -138,7 +138,7 @@ // Assert Assert.IsEmpty(profile.Geometry); Assert.AreEqual("id", profile.Id); - Assert.AreEqual("id", profile.Name); + Assert.AreEqual("name", profile.Name); Assert.AreSame(breakWater, profile.BreakWater); Assert.IsTrue(profile.HasBreakWater); Assert.AreEqual(0.0, profile.X0); @@ -162,7 +162,7 @@ // Assert CollectionAssert.AreEqual(geometry, profile.Geometry); Assert.AreEqual("id", profile.Id); - Assert.AreEqual("id", profile.Name); + Assert.AreEqual("name", profile.Name); Assert.IsFalse(profile.HasBreakWater); Assert.AreEqual(0.0, profile.X0); Assert.AreEqual(0.0, profile.Orientation.Value); @@ -182,12 +182,12 @@ const string id = "Dike Profile ID"; // Call - ForeshoreProfile profile = new TestForeshoreProfile(geometry, id); + ForeshoreProfile profile = new TestForeshoreProfile(id, geometry); // Assert CollectionAssert.AreEqual(geometry, profile.Geometry); Assert.AreEqual(id, profile.Id); - Assert.AreEqual(id, profile.Name); + Assert.AreEqual("name", profile.Name); Assert.IsFalse(profile.HasBreakWater); Assert.AreEqual(0.0, profile.X0); Assert.AreEqual(0.0, profile.Orientation.Value); Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestDikeProfile.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestDikeProfile.cs (.../TestDikeProfile.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestDikeProfile.cs (.../TestDikeProfile.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -71,15 +71,15 @@ /// Thrown when is /// null, empty, or consists of whitespace. public TestDikeProfile(Point2D point, string id) - : this(id, null, point, Enumerable.Empty(), Enumerable.Empty()) {} + : this(id, "name", point, Enumerable.Empty(), Enumerable.Empty()) {} /// /// Initializes default at the world origin with /// a specified foreshore profile geometry. /// /// The geometry of the . public TestDikeProfile(IEnumerable foreshoreProfileGeometry) - : this("id", null, new Point2D(0, 0), Enumerable.Empty(), foreshoreProfileGeometry) {} + : this("id", "name", new Point2D(0, 0), Enumerable.Empty(), foreshoreProfileGeometry) {} /// /// Initializes default at the world origin with @@ -90,15 +90,15 @@ /// Thrown when is /// null, empty, or consists of whitespace. public TestDikeProfile(IEnumerable foreshoreProfileGeometry, string id) - : this(id, null, new Point2D(0, 0), Enumerable.Empty(), foreshoreProfileGeometry) {} + : this(id, "name", new Point2D(0, 0), Enumerable.Empty(), foreshoreProfileGeometry) {} /// /// Initializes default at the world origin with /// a specified dike profile geometry. /// /// The geometry of the . public TestDikeProfile(IEnumerable dikeGeometry) - : this("id", null, new Point2D(0, 0), dikeGeometry, Enumerable.Empty()) {} + : this("id", "name", new Point2D(0, 0), dikeGeometry, Enumerable.Empty()) {} /// /// Initializes default at the world location. Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestForeshoreProfile.cs =================================================================== diff -u -r96a8dc21967335724f15f4606e7403057478164c -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestForeshoreProfile.cs (.../TestForeshoreProfile.cs) (revision 96a8dc21967335724f15f4606e7403057478164c) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestForeshoreProfile.cs (.../TestForeshoreProfile.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -40,20 +40,20 @@ /// Thrown when /// is null. public TestForeshoreProfile(Point2D worldReferencePoint) - : this("id", null, worldReferencePoint, null, Enumerable.Empty()) {} + : this("id", "name", worldReferencePoint, null, Enumerable.Empty()) {} /// /// Creates a new instance of . /// /// If true, create the ForeshoreProfile with a default . public TestForeshoreProfile(bool useBreakWater = false) - : this("id", null, new Point2D(0, 0), useBreakWater ? new BreakWater(BreakWaterType.Dam, 10) : null, Enumerable.Empty()) {} + : this("id", "name", new Point2D(0, 0), useBreakWater ? new BreakWater(BreakWaterType.Dam, 10) : null, Enumerable.Empty()) {} /// /// Creates a new instance of the with a given /// name and no . /// - /// Id of the profile. + /// The id of the profile. /// Thrown when /// is null, empty or whitespaces. public TestForeshoreProfile(string profileId) @@ -63,32 +63,20 @@ /// Creates a new instance of the with a given /// name and id and no . /// - /// Name of the profile. + /// The name of the profile. /// The id of the profile. /// Thrown when /// is null, empty or whitespaces. public TestForeshoreProfile(string profileName, string id) : this(id, profileName, new Point2D(0, 0), null, Enumerable.Empty()) {} - /// - /// Creates a new instance of the with a given - /// name and geometry. - /// - /// Name of the profile. - /// The geometry of the profile. - /// Thrown when - /// is null. - /// Thrown when - /// contains null elements. - public TestForeshoreProfile(string profileId, IEnumerable geometry) - : this(profileId, "name", new Point2D(0, 0), null, geometry) {} /// /// Creates a new instance of with a specified . /// /// The which needs to be set on the . public TestForeshoreProfile(BreakWater breakWater) - : this("id", null, new Point2D(0, 0), breakWater, Enumerable.Empty()) {} + : this("id", "name", new Point2D(0, 0), breakWater, Enumerable.Empty()) {} /// /// Creates a new instance of with a specified geometry. @@ -97,24 +85,25 @@ /// Thrown when /// is null. /// Thrown when - /// contains null elements. + /// any element of is null. public TestForeshoreProfile(IEnumerable geometry) - : this("id", null, new Point2D(0, 0), null, geometry) {} + : this("id", "name", new Point2D(0, 0), null, geometry) {} /// - /// Creates a new instance of with a specified geometry and id. + /// Creates a new instance of the with a given + /// name and geometry. /// + /// The id of the profile. /// The geometry of the profile. - /// The id of the foreshore profile. /// Thrown when /// is null. /// Thrown when: /// - /// is null, empty or whitespaces. - /// contains null elements. + /// Any element of is null. + /// is null, empty or whitespaces. /// - public TestForeshoreProfile(IEnumerable geometry, string id) : - this(id, null, new Point2D(0, 0), null, geometry) {} + public TestForeshoreProfile(string profileId, IEnumerable geometry) + : this(profileId, "name", new Point2D(0, 0), null, geometry) { } /// /// Instantiates a with given properties. Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/Helpers/WaveReductionConversionExtensionsTest.cs =================================================================== diff -u -r7179946a6b62ebb33a90167c52af7c32f1100d73 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/Helpers/WaveReductionConversionExtensionsTest.cs (.../WaveReductionConversionExtensionsTest.cs) (revision 7179946a6b62ebb33a90167c52af7c32f1100d73) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/Helpers/WaveReductionConversionExtensionsTest.cs (.../WaveReductionConversionExtensionsTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -133,7 +133,7 @@ configuration.SetConfigurationForeshoreProfileDependendProperties(structureInput); // Assert - Assert.AreEqual(structureInput.ForeshoreProfile.Name, configuration.ForeshoreProfileId); + Assert.AreEqual(structureInput.ForeshoreProfile.Id, configuration.ForeshoreProfileId); WaveReductionConfiguration waveReduction = configuration.WaveReduction; Assert.AreEqual(structureInput.UseBreakWater, waveReduction.UseBreakWater); Assert.AreEqual(structureInput.UseForeshore, waveReduction.UseForeshoreProfile); Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismViewTest.cs =================================================================== diff -u -red4b032b9903f394deb9691c2c39a9f2122ab0f5 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismViewTest.cs (.../GrassCoverErosionOutwardsFailureMechanismViewTest.cs) (revision ed4b032b9903f394deb9691c2c39a9f2122ab0f5) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismViewTest.cs (.../GrassCoverErosionOutwardsFailureMechanismViewTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -234,16 +234,16 @@ failureMechanism.AddSection(new FailureMechanismSection("B", geometryPoints.Skip(1).Take(2))); failureMechanism.AddSection(new FailureMechanismSection("C", geometryPoints.Skip(2).Take(2))); - var profile1 = new TestForeshoreProfile(new[] + var profile1 = new TestForeshoreProfile("profile1 ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "profile1 ID"); - var profile2 = new TestForeshoreProfile(new[] + }); + var profile2 = new TestForeshoreProfile("profile2 ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "profile2 ID"); + }); failureMechanism.ForeshoreProfiles.AddRange(new[] { profile1, @@ -401,11 +401,11 @@ failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("originalProfile ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "originalProfile ID") + }) }, "path"); view.Data = failureMechanismContext; @@ -418,11 +418,11 @@ // Call failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("newProfile ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "newProfile ID") + }) }, "path"); failureMechanism.ForeshoreProfiles.NotifyObservers(); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismViewTest.cs =================================================================== diff -u -r20e9bfea15dfe132ee137283a9f24bc4c413ce4a -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismViewTest.cs (.../HeightStructuresFailureMechanismViewTest.cs) (revision 20e9bfea15dfe132ee137283a9f24bc4c413ce4a) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismViewTest.cs (.../HeightStructuresFailureMechanismViewTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -252,16 +252,16 @@ failureMechanism.AddSection(new FailureMechanismSection("B", geometryPoints.Skip(1).Take(2))); failureMechanism.AddSection(new FailureMechanismSection("C", geometryPoints.Skip(2).Take(2))); - var profile1 = new TestForeshoreProfile(new[] + var profile1 = new TestForeshoreProfile("profile1 ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "profile1 ID"); - var profile2 = new TestForeshoreProfile(new[] + }); + var profile2 = new TestForeshoreProfile("profile2 ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "profile2 ID"); + }); failureMechanism.ForeshoreProfiles.AddRange(new[] { profile1, @@ -531,11 +531,11 @@ failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("originalProfile ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "originalProfile ID") + }) }, "path"); view.Data = failureMechanismContext; @@ -549,11 +549,11 @@ // Call failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("newProfile ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "newProfile ID") + }) }, "path"); failureMechanism.ForeshoreProfiles.NotifyObservers(); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismViewTest.cs =================================================================== diff -u -red4b032b9903f394deb9691c2c39a9f2122ab0f5 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismViewTest.cs (.../StabilityPointStructuresFailureMechanismViewTest.cs) (revision ed4b032b9903f394deb9691c2c39a9f2122ab0f5) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismViewTest.cs (.../StabilityPointStructuresFailureMechanismViewTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -252,16 +252,16 @@ failureMechanism.AddSection(new FailureMechanismSection("B", geometryPoints.Skip(1).Take(2))); failureMechanism.AddSection(new FailureMechanismSection("C", geometryPoints.Skip(2).Take(2))); - var profile1 = new TestForeshoreProfile(new[] + var profile1 = new TestForeshoreProfile("profile1 ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "profile1 ID"); - var profile2 = new TestForeshoreProfile(new[] + }); + var profile2 = new TestForeshoreProfile("profile2 ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "profile2 ID"); + }); failureMechanism.ForeshoreProfiles.AddRange(new[] { profile1, @@ -517,11 +517,11 @@ failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("originalProfile ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "originalProfile ID") + }) }, "path"); view.Data = failureMechanismContext; @@ -534,11 +534,11 @@ // Call failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("newProfile ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "newProfile ID") + }) }, "path"); failureMechanism.ForeshoreProfiles.NotifyObservers(); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverFailureMechanismViewTest.cs =================================================================== diff -u -red4b032b9903f394deb9691c2c39a9f2122ab0f5 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverFailureMechanismViewTest.cs (.../StabilityStoneCoverFailureMechanismViewTest.cs) (revision ed4b032b9903f394deb9691c2c39a9f2122ab0f5) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverFailureMechanismViewTest.cs (.../StabilityStoneCoverFailureMechanismViewTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -244,16 +244,16 @@ failureMechanism.AddSection(new FailureMechanismSection("B", geometryPoints.Skip(1).Take(2))); failureMechanism.AddSection(new FailureMechanismSection("C", geometryPoints.Skip(2).Take(2))); - var profile1 = new TestForeshoreProfile(new[] + var profile1 = new TestForeshoreProfile("profile1 ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "profile1 ID"); - var profile2 = new TestForeshoreProfile(new[] + }); + var profile2 = new TestForeshoreProfile("profile2 ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "profile2 ID"); + }); failureMechanism.ForeshoreProfiles.AddRange(new[] { profile1, @@ -460,11 +460,11 @@ failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("originalProfile ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "originalProfile ID") + }) }, "path"); view.Data = failureMechanismContext; @@ -477,11 +477,11 @@ // Call failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("newProfile ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "newProfile ID") + }) }, "path"); failureMechanism.ForeshoreProfiles.NotifyObservers(); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismViewTest.cs =================================================================== diff -u -red4b032b9903f394deb9691c2c39a9f2122ab0f5 -r6678115bc8c06dcc0b676429038e1839b128d6f2 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismViewTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewTest.cs) (revision ed4b032b9903f394deb9691c2c39a9f2122ab0f5) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismViewTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewTest.cs) (revision 6678115bc8c06dcc0b676429038e1839b128d6f2) @@ -244,16 +244,16 @@ failureMechanism.AddSection(new FailureMechanismSection("B", geometryPoints.Skip(1).Take(2))); failureMechanism.AddSection(new FailureMechanismSection("C", geometryPoints.Skip(2).Take(2))); - var profile1 = new TestForeshoreProfile(new[] + var profile1 = new TestForeshoreProfile("profile1 ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "profile1 ID"); - var profile2 = new TestForeshoreProfile(new[] + }); + var profile2 = new TestForeshoreProfile("profile2 ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "profile2 ID"); + }); failureMechanism.ForeshoreProfiles.AddRange(new[] { profile1, @@ -461,11 +461,11 @@ failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("originalProfile ID", new[] { new Point2D(0, 0), new Point2D(1, 1) - }, "originalProfile ID") + }) }, "path"); view.Data = failureMechanismContext; @@ -478,11 +478,11 @@ // Call failureMechanism.ForeshoreProfiles.AddRange(new[] { - new TestForeshoreProfile(new[] + new TestForeshoreProfile("newProfile ID", new[] { new Point2D(2, 2), new Point2D(3, 3) - }, "newProfile ID") + }) }, "path"); failureMechanism.ForeshoreProfiles.NotifyObservers();