Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Data/StabilityStoneCoverFailureMechanismSectionResult.cs
===================================================================
diff -u -r74079d4f6f6d6f6ed1e3ebf887688335e5c127e9 -r35ddc36a68fc09f771111cd8f646c7f667546bb9
--- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Data/StabilityStoneCoverFailureMechanismSectionResult.cs (.../StabilityStoneCoverFailureMechanismSectionResult.cs) (revision 74079d4f6f6d6f6ed1e3ebf887688335e5c127e9)
+++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Data/StabilityStoneCoverFailureMechanismSectionResult.cs (.../StabilityStoneCoverFailureMechanismSectionResult.cs) (revision 35ddc36a68fc09f771111cd8f646c7f667546bb9)
@@ -58,31 +58,31 @@
///
/// Gets or sets the value of the detailed assessment of safety per failure mechanism section
- /// for the factorized signaling norm (Cat Iv- IIv).
+ /// for the factorized signaling norm (Cat Iv - IIv).
///
public DetailedAssessmentResultType DetailedAssessmentResultForFactorizedSignalingNorm { get; set; }
///
/// Gets or sets the value of the detailed assessment of safety per failure mechanism section
- /// for the factorized signaling norm (Cat IIv- IIIv).
+ /// for the factorized signaling norm (Cat IIv - IIIv).
///
public DetailedAssessmentResultType DetailedAssessmentResultForSignalingNorm { get; set; }
///
/// Gets or sets the value of the detailed assessment of safety per failure mechanism section
- /// for the factorized signaling norm (Cat IIIv- IVv).
+ /// for the factorized signaling norm (Cat IIIv - IVv).
///
public DetailedAssessmentResultType DetailedAssessmentResultForMechanismSpecificLowerLimitNorm { get; set; }
///
/// Gets or sets the value of the detailed assessment of safety per failure mechanism section
- /// for the factorized signaling norm (Cat IVv- Vv).
+ /// for the factorized signaling norm (Cat IVv - Vv).
///
public DetailedAssessmentResultType DetailedAssessmentResultForLowerLimitNorm { get; set; }
///
/// Gets or sets the value of the detailed assessment of safety per failure mechanism section
- /// for the factorized signaling norm (Cat Vv- VIv).
+ /// for the factorized signaling norm (Cat Vv - VIv).
///
public DetailedAssessmentResultType DetailedAssessmentResultForFactorizedLowerLimitNorm { get; set; }
Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs
===================================================================
diff -u -rc0331cb4c6b2a18992f780cc9e4007f15eeea1a2 -r35ddc36a68fc09f771111cd8f646c7f667546bb9
--- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs (.../StabilityStoneCoverSectionResultRow.cs) (revision c0331cb4c6b2a18992f780cc9e4007f15eeea1a2)
+++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs (.../StabilityStoneCoverSectionResultRow.cs) (revision 35ddc36a68fc09f771111cd8f646c7f667546bb9)
@@ -62,7 +62,7 @@
///
/// Gets or sets the value of the detailed assessment of safety per failure mechanism section
- /// for the factorized signaling norm (Cat Iv- IIv).
+ /// for the factorized signaling norm (Cat Iv - IIv).
///
public DetailedAssessmentResultType DetailedAssessmentResultForFactorizedSignalingNorm
{
@@ -78,6 +78,23 @@
}
///
+ /// Gets or sets the value of the detailed assessment of safety per failure mechanism section
+ /// for the signaling norm (Cat IIv - IIIv).
+ ///
+ public DetailedAssessmentResultType DetailedAssessmentResultForSignalingNorm
+ {
+ get
+ {
+ return SectionResult.DetailedAssessmentResultForSignalingNorm;
+ }
+ set
+ {
+ SectionResult.DetailedAssessmentResultForSignalingNorm = value;
+ UpdateInternalData();
+ }
+ }
+
+ ///
/// Gets the assessment layer two a of the .
///
public AssessmentLayerTwoAResult AssessmentLayerTwoA
Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs
===================================================================
diff -u -rc0331cb4c6b2a18992f780cc9e4007f15eeea1a2 -r35ddc36a68fc09f771111cd8f646c7f667546bb9
--- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision c0331cb4c6b2a18992f780cc9e4007f15eeea1a2)
+++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision 35ddc36a68fc09f771111cd8f646c7f667546bb9)
@@ -52,6 +52,7 @@
Assert.IsInstanceOf>(row);
Assert.AreEqual(result.SimpleAssessmentResult, row.SimpleAssessmentResult);
Assert.AreEqual(result.DetailedAssessmentResultForFactorizedSignalingNorm, row.DetailedAssessmentResultForFactorizedSignalingNorm);
+ Assert.AreEqual(result.DetailedAssessmentResultForSignalingNorm, row.DetailedAssessmentResultForSignalingNorm);
Assert.AreEqual(result.AssessmentLayerThree, row.AssessmentLayerThree);
TestHelper.AssertTypeConverter();
+ observer.Expect(o => o.UpdateObserver());
+ mocks.ReplayAll();
+
+ var random = new Random(39);
+ var newValue = random.NextEnumValue();
+
+ FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection();
+ var result = new StabilityStoneCoverFailureMechanismSectionResult(section);
+ result.Attach(observer);
+
+ var row = new StabilityStoneCoverSectionResultRow(result);
+
+ // Call
+ row.DetailedAssessmentResultForSignalingNorm = newValue;
+
+ // Assert
+ Assert.AreEqual(newValue, result.DetailedAssessmentResultForSignalingNorm);
+ mocks.VerifyAll();
+ }
+
+ [Test]
public void AssessmentLayerThree_AlwaysOnChange_ResultPropertyChanged()
{
// Setup