Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Providers/NumericsSettingsProvider.cs =================================================================== diff -u -r67aa825f436900190ff7324c7ad0d30338dda6ff -r2a90d576840ec1028b7b7fcc051a635cff9c2cb0 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Providers/NumericsSettingsProvider.cs (.../NumericsSettingsProvider.cs) (revision 67aa825f436900190ff7324c7ad0d30338dda6ff) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Providers/NumericsSettingsProvider.cs (.../NumericsSettingsProvider.cs) (revision 2a90d576840ec1028b7b7fcc051a635cff9c2cb0) @@ -33,16 +33,13 @@ internal class NumericsSettingsProvider { private readonly IDictionary>> fileNumericsSettings; - private readonly FailureMechanismDefaultsProvider failureMechanismDefaultsProvider; private IDictionary> defaultNumericsSettings; /// /// Creates a new instance of the class. /// public NumericsSettingsProvider() { - failureMechanismDefaultsProvider = new FailureMechanismDefaultsProvider(); - InitializeDefaultNumericsSettings(); fileNumericsSettings = new NumericsSettingsCsvReader(Resources.NumericsSettings).ReadSettings(); @@ -51,13 +48,13 @@ /// /// Returns based on the provided and sub mechanism id. /// - /// The to obtain the for. - /// The sub mechanism id to obtain the for. - /// The ring id to obtain the for. - /// The corresponding to the provided and sub mechanism id. + /// The to obtain the for. + /// The sub mechanism id to obtain the for. + /// The ring id to obtain the for. + /// The corresponding to the provided and sub mechanism id. public NumericsSettings GetNumericsSettings(HydraRingFailureMechanismType failureMechanismType, int subMechanismId, string ringId) { - var mechanismId = failureMechanismDefaultsProvider.GetFailureMechanismDefaults(failureMechanismType).MechanismId; + var mechanismId = new FailureMechanismDefaultsProvider().GetFailureMechanismDefaults(failureMechanismType).MechanismId; if (fileNumericsSettings.ContainsKey(mechanismId) && fileNumericsSettings[mechanismId].ContainsKey(subMechanismId) &&