Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresContextTest.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -re46bec50706f5ea1a7754bbaebfc892745d8604a --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresContextTest.cs (.../HeightStructuresContextTest.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresContextTest.cs (.../HeightStructuresContextTest.cs) (revision e46bec50706f5ea1a7754bbaebfc892745d8604a) @@ -24,6 +24,7 @@ using Core.Common.Controls.PresentationObjects; using NUnit.Framework; using Rhino.Mocks; +using Ringtoets.Common.Data; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.HeightStructures.Data; using Ringtoets.HeightStructures.Forms.PresentationObjects; @@ -44,12 +45,13 @@ var failureMechanism = new HeightStructuresFailureMechanism(); // Call - var context = new HeightStructuresContext(failureMechanism.HeightStructures, failureMechanism, assessmentSectionStub); + var context = new HeightStructuresContext(failureMechanism.HeightStructuresCollection, + failureMechanism, assessmentSectionStub); // Assert - Assert.IsInstanceOf>>(context); + Assert.IsInstanceOf>>(context); Assert.AreSame(failureMechanism, context.FailureMechanism); - Assert.AreSame(failureMechanism.HeightStructures, context.WrappedData); + Assert.AreSame(failureMechanism.HeightStructuresCollection, context.WrappedData); Assert.AreSame(assessmentSectionStub, context.AssessmentSection); mocks.VerifyAll(); } @@ -62,7 +64,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var heightStructures = new ObservableList(); + var heightStructures = new StructureCollection(); // Call TestDelegate test = () => new HeightStructuresContext(heightStructures, null, assessmentSection); @@ -80,7 +82,8 @@ var failureMechanism = new HeightStructuresFailureMechanism(); // Call - TestDelegate test = () => new HeightStructuresContext(failureMechanism.HeightStructures, failureMechanism, null); + TestDelegate test = () => new HeightStructuresContext(failureMechanism.HeightStructuresCollection, + failureMechanism, null); // Assert var exception = Assert.Throws(test);