Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/AssessmentSectionHelperTest.cs
===================================================================
diff -u -reee4fec4eafb113cdb3cd7fa6bd38e8f4ad968b2 -r22698a70d1838fdba7389a33eb2ad47be945249f
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/AssessmentSectionHelperTest.cs (.../AssessmentSectionHelperTest.cs) (revision eee4fec4eafb113cdb3cd7fa6bd38e8f4ad968b2)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/AssessmentSectionHelperTest.cs (.../AssessmentSectionHelperTest.cs) (revision 22698a70d1838fdba7389a33eb2ad47be945249f)
@@ -126,27 +126,5 @@
Assert.AreEqual(NormType.LowerLimit, contribution.NormativeNorm);
mocks.VerifyAll();
}
-
- [Test]
- public void CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms_ReturnsStubbedAssessmentSectionWithoutHRDOrFailureMechanisms()
- {
- var mocks = new MockRepository();
-
- // Call
- IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
- mocks.ReplayAll();
-
- // Assert
- Assert.IsNotNull(assessmentSection);
- Assert.AreEqual("21", assessmentSection.Id);
- Assert.IsFalse(assessmentSection.HydraulicBoundaryDatabase.IsCoupled());
- CollectionAssert.IsEmpty(assessmentSection.GetFailureMechanisms());
-
- FailureMechanismContribution contribution = assessmentSection.FailureMechanismContribution;
- Assert.AreEqual(1.0 / 10, contribution.LowerLimitNorm);
- Assert.AreEqual(1.0 / 30000, contribution.SignalingNorm);
- Assert.AreEqual(NormType.LowerLimit, contribution.NormativeNorm);
- mocks.VerifyAll();
- }
}
}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/AssessmentSectionHelper.cs
===================================================================
diff -u -r5b6f07fc655e3315bed031f15622419c3587324e -r22698a70d1838fdba7389a33eb2ad47be945249f
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/AssessmentSectionHelper.cs (.../AssessmentSectionHelper.cs) (revision 5b6f07fc655e3315bed031f15622419c3587324e)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/AssessmentSectionHelper.cs (.../AssessmentSectionHelper.cs) (revision 22698a70d1838fdba7389a33eb2ad47be945249f)
@@ -34,17 +34,6 @@
public static class AssessmentSectionHelper
{
///
- /// Creates a stub of without
- /// or set.
- ///
- /// The mock repository to create the stub with.
- /// A stubbed .
- public static IAssessmentSection CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(MockRepository mockRepository)
- {
- return CreateAssessmentSectionStub(null, mockRepository, false, null);
- }
-
- ///
/// Creates a stub of without the set.
///
/// The failure mechanism to set the contribution for.
Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs
===================================================================
diff -u -r85fcfb3e47d742a46200fcfb93f7cd4b155b9a94 -r22698a70d1838fdba7389a33eb2ad47be945249f
--- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs (.../FailureMechanismContributionViewInfoTest.cs) (revision 85fcfb3e47d742a46200fcfb93f7cd4b155b9a94)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs (.../FailureMechanismContributionViewInfoTest.cs) (revision 22698a70d1838fdba7389a33eb2ad47be945249f)
@@ -63,7 +63,7 @@
{
// Setup
var viewCommands = mocks.Stub();
- IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
+ IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase(null, mocks);
mocks.ReplayAll();
var view = new FailureMechanismContributionView(viewCommands);
@@ -120,7 +120,7 @@
public void GetViewData_Always_Returns_FailureMechanismContribution()
{
// Setup
- IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
+ IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase(null, mocks);
mocks.ReplayAll();
var context = new FailureMechanismContributionContext(assessmentSection.FailureMechanismContribution, assessmentSection);
@@ -138,7 +138,7 @@
{
// Setup
var viewCommands = mocks.Stub();
- IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
+ IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase(null, mocks);
assessmentSection.Stub(section => section.Composition)
.Return(AssessmentSectionComposition.Dike);
@@ -165,11 +165,11 @@
// Setup
var viewCommands = mocks.Stub();
- IAssessmentSection assessmentSection1 = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
+ IAssessmentSection assessmentSection1 = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase(null, mocks);
assessmentSection1.Stub(section => section.Composition)
.Return(AssessmentSectionComposition.DikeAndDune);
- IAssessmentSection assessmentSection2 = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
+ IAssessmentSection assessmentSection2 = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase(null, mocks);
assessmentSection2.Stub(section => section.Composition)
.Return(AssessmentSectionComposition.DikeAndDune);
mocks.ReplayAll();
@@ -196,7 +196,7 @@
// Setup
var viewCommands = mocks.Stub();
- IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
+ IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase(null, mocks);
mocks.ReplayAll();
using (var view = new FailureMechanismContributionView(viewCommands))
@@ -216,7 +216,7 @@
// Setup
var viewCommands = mocks.Stub();
- IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabaseOrFailureMechanisms(mocks);
+ IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase(null, mocks);
assessmentSection.Stub(section => section.Composition).Return(AssessmentSectionComposition.Dike);
var gui = mocks.Stub();