Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/WaveConditions/ExportableWaveConditionsFactory.cs
===================================================================
diff -u -rfaee3de18c59589d2380809cccd379c5c8aa76ce -r0590c2c613c7295ef616fce95fefcdaf87967331
--- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/WaveConditions/ExportableWaveConditionsFactory.cs (.../ExportableWaveConditionsFactory.cs) (revision faee3de18c59589d2380809cccd379c5c8aa76ce)
+++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/WaveConditions/ExportableWaveConditionsFactory.cs (.../ExportableWaveConditionsFactory.cs) (revision 0590c2c613c7295ef616fce95fefcdaf87967331)
@@ -167,5 +167,47 @@
return output.Select(waveConditionsOutput => new ExportableWaveConditions(name, waveConditionsInput, waveConditionsOutput, coverType)).ToArray();
}
+
+ ///
+ /// Create a collection of .
+ ///
+ /// The name of the calculation to which the objects belong.
+ /// The used in the calculations.
+ /// The objects resulting from the calculations.
+ /// The type of cover.
+ /// A container of objects.
+ /// Thrown when:
+ ///
+ /// - any parameter is null
+ /// - any item in is null
+ ///
+ /// Thrown when
+ /// is null for .
+ public static IEnumerable CreateExportableWaveConditionsCollection(
+ string name, AssessmentSectionCategoryWaveConditionsInput waveConditionsInput,
+ IEnumerable output, CoverType coverType)
+ {
+ if (name == null)
+ {
+ throw new ArgumentNullException(nameof(name));
+ }
+
+ if (waveConditionsInput == null)
+ {
+ throw new ArgumentNullException(nameof(waveConditionsInput));
+ }
+
+ if (output == null)
+ {
+ throw new ArgumentNullException(nameof(output));
+ }
+
+ if (coverType == null)
+ {
+ throw new ArgumentNullException(nameof(coverType));
+ }
+
+ return output.Select(waveConditionsOutput => new ExportableWaveConditions(name, waveConditionsInput, waveConditionsOutput, coverType)).ToArray();
+ }
}
}
\ No newline at end of file