Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs =================================================================== diff -u -r7f4ee0fa245a18426c81c11c8f9ea18e73e42d07 -re775448bfb8290e43d62340a53a08723bbc035c6 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs (.../HeightStructuresInputContextTest.cs) (revision 7f4ee0fa245a18426c81c11c8f9ea18e73e42d07) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs (.../HeightStructuresInputContextTest.cs) (revision e775448bfb8290e43d62340a53a08723bbc035c6) @@ -24,7 +24,6 @@ using NUnit.Framework; using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; -using Ringtoets.Common.Data.Calculation; using Ringtoets.HeightStructures.Data; using Ringtoets.HeightStructures.Forms.PresentationObjects; using Ringtoets.HeightStructures.Forms.Properties; @@ -46,20 +45,21 @@ public void ConstructorWithData_Always_ExpectedPropertiesSet() { // Setup - var input = new HeightStructuresInput(); - var calculationMock = mocksRepository.StrictMock(); - var failureMechanismMock = mocksRepository.StrictMock(); var assessmentSectionMock = mocksRepository.StrictMock(); mocksRepository.ReplayAll(); + var input = new HeightStructuresInput(); + var calculation = new HeightStructuresCalculation(); + var failureMechanism = new HeightStructuresFailureMechanism(); + // Call - var context = new HeightStructuresInputContext(input, calculationMock, failureMechanismMock, assessmentSectionMock); + var context = new HeightStructuresInputContext(input, calculation, failureMechanism, assessmentSectionMock); // Assert Assert.IsInstanceOf>(context); Assert.AreEqual(input, context.WrappedData); - Assert.AreEqual(calculationMock, context.Calculation); - Assert.AreEqual(failureMechanismMock, context.FailureMechanism); + Assert.AreEqual(calculation, context.Calculation); + Assert.AreEqual(failureMechanism, context.FailureMechanism); Assert.AreEqual(assessmentSectionMock, context.AssessmentSection); mocksRepository.VerifyAll(); } @@ -68,13 +68,14 @@ public void Constructor_NullCalculation_ThrowsArgumentNullException() { // Setup - var input = new HeightStructuresInput(); - var failureMechanismMock = mocksRepository.StrictMock(); var assessmentSectionMock = mocksRepository.StrictMock(); mocksRepository.ReplayAll(); + var input = new HeightStructuresInput(); + var failureMechanism = new HeightStructuresFailureMechanism(); + // Call - TestDelegate test = () => new HeightStructuresInputContext(input, null, failureMechanismMock, assessmentSectionMock); + TestDelegate test = () => new HeightStructuresInputContext(input, null, failureMechanism, assessmentSectionMock); // Assert var message = String.Format(Resources.HeightStructuresContext_AssertInputsAreNotNull_DataDescription_0_cannot_be_null,