Index: Riskeer/HydraRing/src/Riskeer.HydraRing.Calculation/Services/HydraRingConfigurationService.cs =================================================================== diff -u -re4e66781f64493a4cd56c3fd123390870b947d48 -r3001ff202b83ef9cecc8d3b55b2f9db01208ad4b --- Riskeer/HydraRing/src/Riskeer.HydraRing.Calculation/Services/HydraRingConfigurationService.cs (.../HydraRingConfigurationService.cs) (revision e4e66781f64493a4cd56c3fd123390870b947d48) +++ Riskeer/HydraRing/src/Riskeer.HydraRing.Calculation/Services/HydraRingConfigurationService.cs (.../HydraRingConfigurationService.cs) (revision 3001ff202b83ef9cecc8d3b55b2f9db01208ad4b) @@ -447,7 +447,7 @@ double correlationLength = double.IsNaN(variableDefaults.CorrelationLength) ? hydraRingCalculationInput.Section.SectionLength : variableDefaults.CorrelationLength; - + orderDictionaries.Add(new OrderedDictionary { { @@ -652,7 +652,7 @@ orderedDictionaries.Add(CreateFaultTreeModelsRecord(hydraRingCalculationInput.Section.SectionId, failureMechanismDefaults.MechanismId, - failureMechanismDefaults.FaultTreeModelId)); + hydraRingCalculationInput.FaultTreeModelId)); if (hydraRingCalculationInput.PreprocessorSetting.RunPreprocessor) { Index: Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.Test/Services/HydraRingConfigurationServiceTest.cs =================================================================== diff -u -r04749301623fd604b20474329c328239f42c656e -r3001ff202b83ef9cecc8d3b55b2f9db01208ad4b --- Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.Test/Services/HydraRingConfigurationServiceTest.cs (.../HydraRingConfigurationServiceTest.cs) (revision 04749301623fd604b20474329c328239f42c656e) +++ Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.Test/Services/HydraRingConfigurationServiceTest.cs (.../HydraRingConfigurationServiceTest.cs) (revision 3001ff202b83ef9cecc8d3b55b2f9db01208ad4b) @@ -165,7 +165,7 @@ "INSERT INTO [CalculationProfiles] VALUES (1, 2, 11.1, 22.2, 33.3);" + Environment.NewLine + Environment.NewLine + "DELETE FROM [SectionFaultTreeModels];" + Environment.NewLine + - "INSERT INTO [SectionFaultTreeModels] VALUES (1, 1, 1, 1, 1);" + Environment.NewLine + + "INSERT INTO [SectionFaultTreeModels] VALUES (1, 1, 1, 1, 6);" + Environment.NewLine + (runPreprocessor ? "INSERT INTO [SectionFaultTreeModels] VALUES (1, 1, 1, 1, 9);" + Environment.NewLine : string.Empty) + @@ -358,15 +358,15 @@ "INSERT INTO [CalculationProfiles] VALUES (3, 2, 11.1, 22.2, 33.3);" + Environment.NewLine + Environment.NewLine + "DELETE FROM [SectionFaultTreeModels];" + Environment.NewLine + - "INSERT INTO [SectionFaultTreeModels] VALUES (1, 1, 1, 1, 1);" + Environment.NewLine + + "INSERT INTO [SectionFaultTreeModels] VALUES (1, 1, 1, 1, 6);" + Environment.NewLine + (runPreprocessor ? "INSERT INTO [SectionFaultTreeModels] VALUES (1, 1, 1, 1, 9);" + Environment.NewLine : string.Empty) + - "INSERT INTO [SectionFaultTreeModels] VALUES (2, 1, 1, 1, 1);" + Environment.NewLine + + "INSERT INTO [SectionFaultTreeModels] VALUES (2, 1, 1, 1, 6);" + Environment.NewLine + (runPreprocessor ? "INSERT INTO [SectionFaultTreeModels] VALUES (2, 1, 1, 1, 9);" + Environment.NewLine : string.Empty) + - "INSERT INTO [SectionFaultTreeModels] VALUES (3, 1, 1, 1, 1);" + Environment.NewLine + + "INSERT INTO [SectionFaultTreeModels] VALUES (3, 1, 1, 1, 6);" + Environment.NewLine + (runPreprocessor ? "INSERT INTO [SectionFaultTreeModels] VALUES (3, 1, 1, 1, 9);" + Environment.NewLine : string.Empty) +