Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -rc482712c0ff06d5654836fc8d9af535641d63ffb -r3292a560d2d391d3a7cfa75dd6c484f8f632a481 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision c482712c0ff06d5654836fc8d9af535641d63ffb) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision 3292a560d2d391d3a7cfa75dd6c484f8f632a481) @@ -53,10 +53,12 @@ ) { // Setup - var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection()); - sectionResult.AssessmentLayerOne = assessmentLayerOneResult; - sectionResult.AssessmentLayerTwoA = assessmentLayerTwoAResult; - sectionResult.AssessmentLayerThree = (RoundedDouble) assessmentLayerThreeResult; + var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection()) + { + AssessmentLayerOne = assessmentLayerOneResult, + AssessmentLayerTwoA = assessmentLayerTwoAResult, + AssessmentLayerThree = (RoundedDouble) assessmentLayerThreeResult + }; // Call var result = sectionResult.Create(new PersistenceRegistry()); @@ -71,8 +73,10 @@ public void Create_WithNaNLevel3Result_ReturnsEntityWithExpectedResults() { // Setup - var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection()); - sectionResult.AssessmentLayerThree = (RoundedDouble) double.NaN; + var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection()) + { + AssessmentLayerThree = (RoundedDouble) double.NaN + }; // Call var result = sectionResult.Create(new PersistenceRegistry());