Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/StructuresOutputProperties.cs
===================================================================
diff -u -rac96d7c315129af851634ed5a4a6800b59ede718 -rf25edcfd0994057ea8faad1f3dae989bbfb32d75
--- Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/StructuresOutputProperties.cs (.../StructuresOutputProperties.cs) (revision ac96d7c315129af851634ed5a4a6800b59ede718)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/StructuresOutputProperties.cs (.../StructuresOutputProperties.cs) (revision f25edcfd0994057ea8faad1f3dae989bbfb32d75)
@@ -38,14 +38,14 @@
///
/// ViewModel of for properties panel.
///
- public class StructuresOutputProperties : ObjectProperties
+ public abstract class StructuresOutputProperties : ObjectProperties
{
///
/// Creates a new instance of .
///
/// The structures output to create the object properties for.
/// Thrown when is null.
- public StructuresOutputProperties(StructuresOutput structuresOutput)
+ protected StructuresOutputProperties(StructuresOutput structuresOutput)
{
if (structuresOutput == null)
{
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/StructuresOutputPropertiesTest.cs
===================================================================
diff -u -r54803fcc28ee6d1283ef1ab2eaf50e49e0eb54c6 -rf25edcfd0994057ea8faad1f3dae989bbfb32d75
--- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/StructuresOutputPropertiesTest.cs (.../StructuresOutputPropertiesTest.cs) (revision 54803fcc28ee6d1283ef1ab2eaf50e49e0eb54c6)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/StructuresOutputPropertiesTest.cs (.../StructuresOutputPropertiesTest.cs) (revision f25edcfd0994057ea8faad1f3dae989bbfb32d75)
@@ -59,7 +59,7 @@
var structuresOutput = new StructuresOutput(0, new TestProbabilityAssessmentOutput(), null);
// Call
- var properties = new StructuresOutputProperties(structuresOutput);
+ var properties = new SimpleStructuresOutputProperties(structuresOutput);
// Assert
Assert.IsInstanceOf>(properties);
@@ -70,7 +70,7 @@
public void Constructor_StructuresOutputNull_ThrowsArgumentNullException()
{
// Call
- TestDelegate test = () => new StructuresOutputProperties(null);
+ TestDelegate test = () => new SimpleStructuresOutputProperties(null);
// Assert
var exception = Assert.Throws(test);
@@ -99,7 +99,7 @@
var structuresOutput = new StructuresOutput(reliability, probabilityAssessmentOutput, generalResult);
// Call
- var properties = new StructuresOutputProperties(structuresOutput);
+ var properties = new SimpleStructuresOutputProperties(structuresOutput);
// Assert
Assert.AreEqual(ProbabilityFormattingHelper.Format(requiredProbability), properties.RequiredProbability);
@@ -135,7 +135,7 @@
{
// Setup
var structuresOutput = new StructuresOutput(0, new TestProbabilityAssessmentOutput(), null);
- var properties = new StructuresOutputProperties(structuresOutput);
+ var properties = new SimpleStructuresOutputProperties(structuresOutput);
// Call
TopLevelFaultTreeIllustrationPointProperties[] illustrationPoints = properties.IllustrationPoints;
@@ -153,7 +153,7 @@
var structuresOutput = new StructuresOutput(0, probabilityAssessmentOutput, generalResult);
// Call
- var properties = new StructuresOutputProperties(structuresOutput);
+ var properties = new SimpleStructuresOutputProperties(structuresOutput);
// Assert
PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties);
@@ -231,7 +231,7 @@
var structuresOutput = new StructuresOutput(0, probabilityAssessmentOutput, null);
// Call
- var properties = new StructuresOutputProperties(structuresOutput);
+ var properties = new SimpleStructuresOutputProperties(structuresOutput);
// Assert
PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties);
@@ -272,5 +272,11 @@
"De veiligheidsfactor voor deze berekening.",
true);
}
+
+ private class SimpleStructuresOutputProperties : StructuresOutputProperties
+ {
+ public SimpleStructuresOutputProperties(StructuresOutput structuresOutput)
+ : base(structuresOutput) {}
+ }
}
}
\ No newline at end of file