2using System.Collections.Generic;
3using System.Xml.Serialization;
12[XmlType(TypeName =
"mathematicalModelFormulationSelectionResult")]
15 private readonly List<string> _diagnostics =
36 [XmlAttribute(
"requestedFormulationId")]
46 [XmlAttribute(
"selectedFormulationId")]
56 [XmlAttribute(
"selectedFormulationName")]
67 [XmlAttribute(
"isSuccessful")]
78 [XmlAttribute(
"usedFallback")]
89 [XmlArray(
"diagnostics")]
90 [XmlArrayItem(
"diagnostic")]
119 if (!
string.IsNullOrWhiteSpace(
148 string requestedFormulationId,
152 ArgumentNullException.ThrowIfNull(
158 requestedFormulationId?.Trim() ??
192 string requestedFormulationId,
199 requestedFormulationId?.Trim() ??
206 result.AddDiagnostic(