Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableFailureMechanismSection.cs =================================================================== diff -u -r2a28064a44daa277c25e597f4b3eea1edd52e37c -rfb23c7e9b2fde4f4439e758e56ae5ed957385a71 --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableFailureMechanismSection.cs (.../SerializableFailureMechanismSection.cs) (revision 2a28064a44daa277c25e597f4b3eea1edd52e37c) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableFailureMechanismSection.cs (.../SerializableFailureMechanismSection.cs) (revision fb23c7e9b2fde4f4439e758e56ae5ed957385a71) @@ -38,10 +38,7 @@ /// /// Creates a new instance of . /// - public SerializableFailureMechanismSection() - { - FailureMechanismSectionType = Resources.FailureMechanismSectionType_FailureMechanism; - } + public SerializableFailureMechanismSection() {} /// /// Creates a new instance of . @@ -51,14 +48,17 @@ /// The distance over the reference line where this section starts in meters. /// The distance over the reference line where this section ends in meters. /// The geometry of the section. + /// The type of the section. /// The assembly method used to create this section. - /// Thrown when any parameter is null. + /// Thrown when , , + /// or is null. public SerializableFailureMechanismSection(string id, SerializableFailureMechanismSectionCollection failureMechanismSectionCollection, double startDistance, double endDistance, IEnumerable geometry, - SerializableAssemblyMethod? assemblyMethod = null) : this() + SerializableFailureMechanismSectionType sectionType, + SerializableAssemblyMethod? assemblyMethod = null) { if (id == null) { @@ -82,6 +82,7 @@ Geometry = new SerializableLine(geometry); Length = new SerializableMeasure("m", Math2D.Length(geometry)); AssemblyMethod = assemblyMethod; + FailureMechanismSectionType = sectionType; } /// @@ -124,7 +125,7 @@ /// Gets or sets the section type. /// [XmlElement(AssemblyXmlIdentifiers.FailureMechanismSectionType)] - public string FailureMechanismSectionType { get; set; } + public SerializableFailureMechanismSectionType FailureMechanismSectionType { get; set; } /// /// Gets or sets the assembly method used to create this section.