Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionView.cs
===================================================================
diff -u -ra8237d30c7cb1cae20b2530f0f7c67ae60669d4b -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionView.cs (.../AssemblyResultPerSectionView.cs) (revision a8237d30c7cb1cae20b2530f0f7c67ae60669d4b)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionView.cs (.../AssemblyResultPerSectionView.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -177,7 +177,7 @@
dataGridViewControl.AddTextBoxColumn(nameof(CombinedFailureMechanismSectionAssemblyResultRow.StabilityPointStructures),
StabilityPointStructuresDataResources.StabilityPointStructuresFailureMechanism_Code,
true);
- dataGridViewControl.AddTextBoxColumn(nameof(CombinedFailureMechanismSectionAssemblyResultRow.StrengthStabilityLengthwise),
+ dataGridViewControl.AddTextBoxColumn(nameof(CombinedFailureMechanismSectionAssemblyResultRow.StrengthStabilityLengthwiseConstruction),
IntegrationDataResources.StrengthStabilityLengthwiseConstructionFailureMechanism_Code,
true);
dataGridViewControl.AddTextBoxColumn(nameof(CombinedFailureMechanismSectionAssemblyResultRow.DuneErosion),
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/CombinedFailureMechanismSectionAssemblyResultRow.cs
===================================================================
diff -u -r82677f34a19358f3fd29d731f416fe12ea3e96ba -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/CombinedFailureMechanismSectionAssemblyResultRow.cs (.../CombinedFailureMechanismSectionAssemblyResultRow.cs) (revision 82677f34a19358f3fd29d731f416fe12ea3e96ba)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/CombinedFailureMechanismSectionAssemblyResultRow.cs (.../CombinedFailureMechanismSectionAssemblyResultRow.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -51,7 +51,7 @@
private const int closingStructuresIndex = 15;
private const int pipingStructureIndex = 16;
private const int stabilityPointStructuresIndex = 17;
- private const int strengthStabilityLengthwiseIndex = 18;
+ private const int strengthStabilityLengthwiseConstructionIndex = 18;
private const int duneErosionIndex = 19;
private const int technicalInnovationIndex = 20;
@@ -280,9 +280,9 @@
}
///
- /// Gets the assembly result for strength stability lengthwise.
+ /// Gets the assembly result for strength stability lengthwise construction.
///
- public string StrengthStabilityLengthwise
+ public string StrengthStabilityLengthwiseConstruction
{
get
{
@@ -332,7 +332,7 @@
ColumnStateDefinitions.Add(closingStructuresIndex, CreateDefaultDataGridViewColumnStateDefinition());
ColumnStateDefinitions.Add(pipingStructureIndex, CreateDefaultDataGridViewColumnStateDefinition());
ColumnStateDefinitions.Add(stabilityPointStructuresIndex, CreateDefaultDataGridViewColumnStateDefinition());
- ColumnStateDefinitions.Add(strengthStabilityLengthwiseIndex, CreateDefaultDataGridViewColumnStateDefinition());
+ ColumnStateDefinitions.Add(strengthStabilityLengthwiseConstructionIndex, CreateDefaultDataGridViewColumnStateDefinition());
ColumnStateDefinitions.Add(duneErosionIndex, CreateDefaultDataGridViewColumnStateDefinition());
ColumnStateDefinitions.Add(technicalInnovationIndex, CreateDefaultDataGridViewColumnStateDefinition());
}
@@ -363,7 +363,7 @@
ColumnStateDefinitions[closingStructuresIndex].Style = CreateCellStyle(combinedFailureMechanismSectionAssemblyResult.ClosingStructures);
ColumnStateDefinitions[pipingStructureIndex].Style = CreateCellStyle(combinedFailureMechanismSectionAssemblyResult.PipingStructure);
ColumnStateDefinitions[stabilityPointStructuresIndex].Style = CreateCellStyle(combinedFailureMechanismSectionAssemblyResult.StabilityPointStructures);
- ColumnStateDefinitions[strengthStabilityLengthwiseIndex].Style = CreateCellStyle(combinedFailureMechanismSectionAssemblyResult.StrengthStabilityLengthwiseConstruction);
+ ColumnStateDefinitions[strengthStabilityLengthwiseConstructionIndex].Style = CreateCellStyle(combinedFailureMechanismSectionAssemblyResult.StrengthStabilityLengthwiseConstruction);
ColumnStateDefinitions[duneErosionIndex].Style = CreateCellStyle(combinedFailureMechanismSectionAssemblyResult.DuneErosion);
ColumnStateDefinitions[technicalInnovationIndex].Style = CreateCellStyle(combinedFailureMechanismSectionAssemblyResult.TechnicalInnovation);
}
Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Assembly/AssessmentSectionAssemblyFactoryTest.cs
===================================================================
diff -u -r82677f34a19358f3fd29d731f416fe12ea3e96ba -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Assembly/AssessmentSectionAssemblyFactoryTest.cs (.../AssessmentSectionAssemblyFactoryTest.cs) (revision 82677f34a19358f3fd29d731f416fe12ea3e96ba)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Assembly/AssessmentSectionAssemblyFactoryTest.cs (.../AssessmentSectionAssemblyFactoryTest.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -309,7 +309,7 @@
public void AssembleCombinedPerFailureMechanismSection_WithAssessmentSection_SetsInputOnCalculator()
{
var random = new Random(21);
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(random.NextEnumValue());
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(random.NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
{
@@ -345,7 +345,7 @@
public void AssembleCombinedPerFailureMechanismSection_AssemblyRan_ReturnsOutput()
{
var random = new Random(21);
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(random.NextEnumValue());
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(random.NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
{
@@ -402,7 +402,7 @@
{
// Setup
var random = new Random(21);
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(random.NextEnumValue());
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(random.NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Assembly/CombinedAssemblyFailureMechanismSectionFactoryTest.cs
===================================================================
diff -u -r548fd3a9c2e2609a1f8103eb424504bd1a87f2a9 -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Assembly/CombinedAssemblyFailureMechanismSectionFactoryTest.cs (.../CombinedAssemblyFailureMechanismSectionFactoryTest.cs) (revision 548fd3a9c2e2609a1f8103eb424504bd1a87f2a9)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Assembly/CombinedAssemblyFailureMechanismSectionFactoryTest.cs (.../CombinedAssemblyFailureMechanismSectionFactoryTest.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -48,7 +48,7 @@
}
[Test]
- public void CreateInput_failureMechanismsNull_ThrowsArgumentNullException()
+ public void CreateInput_FailureMechanismsNull_ThrowsArgumentNullException()
{
// Setup
var assessmentSection = new AssessmentSection(new Random(21).NextEnumValue());
@@ -65,7 +65,7 @@
public void CreateInput_WithAllFailureMechanisms_ReturnsInputCollection()
{
// Setup
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
new Random(21).NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
@@ -76,41 +76,41 @@
// Assert
Assert.AreEqual(18, inputs.Length);
- AssertSections(assessmentSection.Piping.SectionResults.ToArray(), inputs[0].ToArray());
- AssertSections(assessmentSection.GrassCoverErosionInwards.SectionResults.ToArray(), inputs[1].ToArray());
- AssertSections(assessmentSection.MacroStabilityInwards.SectionResults.ToArray(), inputs[2].ToArray());
- AssertSections(assessmentSection.MacroStabilityOutwards.SectionResults.ToArray(), inputs[3].ToArray());
- AssertSections(assessmentSection.Microstability.SectionResults.ToArray(), inputs[4].ToArray());
- AssertSections(assessmentSection.StabilityStoneCover.SectionResults.ToArray(), inputs[5].ToArray());
- AssertSections(assessmentSection.WaveImpactAsphaltCover.SectionResults.ToArray(), inputs[6].ToArray());
- AssertSections(assessmentSection.WaterPressureAsphaltCover.SectionResults.ToArray(), inputs[7].ToArray());
- AssertSections(assessmentSection.GrassCoverErosionOutwards.SectionResults.ToArray(), inputs[8].ToArray());
- AssertSections(assessmentSection.GrassCoverSlipOffOutwards.SectionResults.ToArray(), inputs[9].ToArray());
- AssertSections(assessmentSection.GrassCoverSlipOffInwards.SectionResults.ToArray(), inputs[10].ToArray());
- AssertSections(assessmentSection.HeightStructures.SectionResults.ToArray(), inputs[11].ToArray());
- AssertSections(assessmentSection.ClosingStructures.SectionResults.ToArray(), inputs[12].ToArray());
- AssertSections(assessmentSection.PipingStructure.SectionResults.ToArray(), inputs[13].ToArray());
- AssertSections(assessmentSection.StabilityPointStructures.SectionResults.ToArray(), inputs[14].ToArray());
- AssertSections(assessmentSection.StrengthStabilityLengthwiseConstruction.SectionResults.ToArray(), inputs[15].ToArray());
- AssertSections(assessmentSection.DuneErosion.SectionResults.ToArray(), inputs[16].ToArray());
- AssertSections(assessmentSection.TechnicalInnovation.SectionResults.ToArray(), inputs[17].ToArray());
+ AssertSections(assessmentSection.Piping.SectionResults, inputs[0]);
+ AssertSections(assessmentSection.GrassCoverErosionInwards.SectionResults, inputs[1]);
+ AssertSections(assessmentSection.MacroStabilityInwards.SectionResults, inputs[2]);
+ AssertSections(assessmentSection.MacroStabilityOutwards.SectionResults, inputs[3]);
+ AssertSections(assessmentSection.Microstability.SectionResults, inputs[4]);
+ AssertSections(assessmentSection.StabilityStoneCover.SectionResults, inputs[5]);
+ AssertSections(assessmentSection.WaveImpactAsphaltCover.SectionResults, inputs[6]);
+ AssertSections(assessmentSection.WaterPressureAsphaltCover.SectionResults, inputs[7]);
+ AssertSections(assessmentSection.GrassCoverErosionOutwards.SectionResults, inputs[8]);
+ AssertSections(assessmentSection.GrassCoverSlipOffOutwards.SectionResults, inputs[9]);
+ AssertSections(assessmentSection.GrassCoverSlipOffInwards.SectionResults, inputs[10]);
+ AssertSections(assessmentSection.HeightStructures.SectionResults, inputs[11]);
+ AssertSections(assessmentSection.ClosingStructures.SectionResults, inputs[12]);
+ AssertSections(assessmentSection.PipingStructure.SectionResults, inputs[13]);
+ AssertSections(assessmentSection.StabilityPointStructures.SectionResults, inputs[14]);
+ AssertSections(assessmentSection.StrengthStabilityLengthwiseConstruction.SectionResults, inputs[15]);
+ AssertSections(assessmentSection.DuneErosion.SectionResults, inputs[16]);
+ AssertSections(assessmentSection.TechnicalInnovation.SectionResults, inputs[17]);
}
}
- private static void AssertSections(T[] originalSectionResults, CombinedAssemblyFailureMechanismSection[] inputSections)
+ private static void AssertSections(IEnumerable originalSectionResults, IEnumerable inputSections)
where T : FailureMechanismSectionResult
{
- Assert.AreEqual(originalSectionResults.Length, inputSections.Length);
+ Assert.AreEqual(originalSectionResults.Count(), inputSections.Count());
double expectedSectionStart = 0;
- for (var i = 0; i < originalSectionResults.Length; i++)
+ for (var i = 0; i < originalSectionResults.Count(); i++)
{
- double expectedSectionEnd = expectedSectionStart + originalSectionResults[i].Section.Length;
+ double expectedSectionEnd = expectedSectionStart + originalSectionResults.ElementAt(i).Section.Length;
- Assert.AreEqual(expectedSectionStart, inputSections[i].SectionStart);
- Assert.AreEqual(expectedSectionEnd, inputSections[i].SectionEnd);
- Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroup.VIv, inputSections[i].CategoryGroup);
+ Assert.AreEqual(expectedSectionStart, inputSections.ElementAt(i).SectionStart);
+ Assert.AreEqual(expectedSectionEnd, inputSections.ElementAt(i).SectionEnd);
+ Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroup.VIv, inputSections.ElementAt(i).CategoryGroup);
expectedSectionStart = expectedSectionEnd;
}
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionViewTest.cs
===================================================================
diff -u -ra8237d30c7cb1cae20b2530f0f7c67ae60669d4b -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionViewTest.cs (.../AssemblyResultPerSectionViewTest.cs) (revision a8237d30c7cb1cae20b2530f0f7c67ae60669d4b)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionViewTest.cs (.../AssemblyResultPerSectionViewTest.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -108,7 +108,7 @@
public void Constructor_WithAssessmentSection_ExpectedValues()
{
// Setup
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
new Random(21).NextEnumValue());
// Call
@@ -220,7 +220,7 @@
public void GivenFormWithAssemblyResultPerSectionViewWithOutdatedContent_WhenRefreshingAssemblyResults_ThenRefreshButtonDisabledAndWarningCleared()
{
// Given
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
new Random(21).NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
@@ -248,7 +248,7 @@
public void GivenFormWithAssemblyResultPerSectionView_WhenAssessmentSectionNotifiesObservers_ThenRefreshButtonEnabledAndWarningSet()
{
// Given
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
new Random(21).NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
@@ -275,7 +275,7 @@
{
// Given
var random = new Random(21);
- var assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ var assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
random.NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
@@ -302,7 +302,7 @@
public void GivenFormWithAssemblyResultPerSectionView_WhenCalculationNotifiesObservers_ThenRefreshButtonEnabledAndWarningSet()
{
// Given
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
new Random(21).NextEnumValue());
var calculation = new TestHeightStructuresCalculation();
assessmentSection.HeightStructures.CalculationsGroup.Children.Add(calculation);
@@ -332,7 +332,7 @@
public void GivenFormWithAssemblyResultPerSectionView_WithOrWithoutErrorSetAndObserverNotified_ThenWarningSetWithPadding(bool withError, int expectedPadding)
{
// Given
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
new Random(21).NextEnumValue());
using (new AssemblyToolCalculatorFactoryConfig())
@@ -391,7 +391,7 @@
private AssemblyResultPerSectionView ShowAssemblyResultPerSectionView()
{
- return ShowAssemblyResultPerSectionView(TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ return ShowAssemblyResultPerSectionView(TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
new Random(21).NextEnumValue()));
}
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/CombinedFailureMechanismSectionAssemblyResultRowTest.cs
===================================================================
diff -u -r82677f34a19358f3fd29d731f416fe12ea3e96ba -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/CombinedFailureMechanismSectionAssemblyResultRowTest.cs (.../CombinedFailureMechanismSectionAssemblyResultRowTest.cs) (revision 82677f34a19358f3fd29d731f416fe12ea3e96ba)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/CombinedFailureMechanismSectionAssemblyResultRowTest.cs (.../CombinedFailureMechanismSectionAssemblyResultRowTest.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -122,7 +122,7 @@
Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroupHelper.GetCategoryGroupDisplayname(result.ClosingStructures), row.ClosingStructures);
Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroupHelper.GetCategoryGroupDisplayname(result.PipingStructure), row.PipingStructure);
Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroupHelper.GetCategoryGroupDisplayname(result.StabilityPointStructures), row.StabilityPointStructures);
- Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroupHelper.GetCategoryGroupDisplayname(result.StrengthStabilityLengthwiseConstruction), row.StrengthStabilityLengthwise);
+ Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroupHelper.GetCategoryGroupDisplayname(result.StrengthStabilityLengthwiseConstruction), row.StrengthStabilityLengthwiseConstruction);
Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroupHelper.GetCategoryGroupDisplayname(result.DuneErosion), row.DuneErosion);
Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroupHelper.GetCategoryGroupDisplayname(result.TechnicalInnovation), row.TechnicalInnovation);
}
Index: Ringtoets/Integration/test/Ringtoets.Integration.TestUtil.Test/TestDataGeneratorTest.cs
===================================================================
diff -u -rcb3799f37404d194b1c1ae38002e054d6dbb3629 -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/test/Ringtoets.Integration.TestUtil.Test/TestDataGeneratorTest.cs (.../TestDataGeneratorTest.cs) (revision cb3799f37404d194b1c1ae38002e054d6dbb3629)
+++ Ringtoets/Integration/test/Ringtoets.Integration.TestUtil.Test/TestDataGeneratorTest.cs (.../TestDataGeneratorTest.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -143,7 +143,7 @@
public void GetAssessmenSectionWithAllFailureMechanismSectionsAndResults_DefaultComposition_ReturnAssessmentSection()
{
// Call
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults();
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults();
// Assert
AssertAssessmenSectionWithAllFailureMechanismSectionsAndResults(assessmentSection);
@@ -156,7 +156,7 @@
public void GetAssessmenSectionWithAllFailureMechanismSectionsAndResults_CompositionGiven_ReturnAssessmentSection(AssessmentSectionComposition composition)
{
// Call
- AssessmentSection assessmentSection = TestDataGenerator.GetAssessmensectionWithAllFailureMechanismSectionsAndResults(composition);
+ AssessmentSection assessmentSection = TestDataGenerator.GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(composition);
// Assert
AssertAssessmenSectionWithAllFailureMechanismSectionsAndResults(assessmentSection);
Index: Ringtoets/Integration/test/Ringtoets.Integration.TestUtil/TestDataGenerator.cs
===================================================================
diff -u -r9ac057f20b9a85200bfa921bd36ea0026f07ebe3 -rb4ef5ef0339a13b0996d567c6d4347c4441a62cc
--- Ringtoets/Integration/test/Ringtoets.Integration.TestUtil/TestDataGenerator.cs (.../TestDataGenerator.cs) (revision 9ac057f20b9a85200bfa921bd36ea0026f07ebe3)
+++ Ringtoets/Integration/test/Ringtoets.Integration.TestUtil/TestDataGenerator.cs (.../TestDataGenerator.cs) (revision b4ef5ef0339a13b0996d567c6d4347c4441a62cc)
@@ -235,7 +235,7 @@
/// The desired
/// to initialize the with.
/// The configured .
- public static AssessmentSection GetAssessmensectionWithAllFailureMechanismSectionsAndResults(
+ public static AssessmentSection GetAssessmenSectionWithAllFailureMechanismSectionsAndResults(
AssessmentSectionComposition composition = AssessmentSectionComposition.Dike)
{
var assessmentSection = new AssessmentSection(composition)
@@ -253,16 +253,14 @@
private static ReferenceLine GetReferenceLine()
{
- IEnumerable points = new[]
+ var referenceLine = new ReferenceLine();
+ referenceLine.SetGeometry(new[]
{
new Point2D(-1, -1),
new Point2D(5, 5),
new Point2D(10, 10),
new Point2D(-3, 2)
- };
-
- var referenceLine = new ReferenceLine();
- referenceLine.SetGeometry(points);
+ });
return referenceLine;
}