Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj =================================================================== diff -u -r41a37c93cb0b3e36ff7023c9f42b4e6225598b55 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj (.../Application.Ringtoets.Storage.csproj) (revision 41a37c93cb0b3e36ff7023c9f42b4e6225598b55) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj (.../Application.Ringtoets.Storage.csproj) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -343,8 +343,8 @@ - - + + Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensions.cs =================================================================== diff -u --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensions.cs (revision 0) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensions.cs (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -0,0 +1,56 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Application.Ringtoets.Storage.DbContext; +using Core.Common.Base.Data; +using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Integration.Data.StandAlone.SectionResults; + +namespace Application.Ringtoets.Storage.Read.DuneErosion +{ + /// + /// This class defines extension methods for read operations for a based on the + /// . + /// + internal static class DuneErosionSectionResultEntityReadExtensions + { + /// + /// Reads the and use the information to update a + /// . + /// + /// The to create for. + /// The target of the read operation. + /// A new . + /// Thrown when is null. + internal static void Read(this DuneErosionSectionResultEntity entity, DuneErosionFailureMechanismSectionResult sectionResult) + { + if (sectionResult == null) + { + throw new ArgumentNullException("sectionResult"); + } + + sectionResult.AssessmentLayerOne = Convert.ToBoolean(entity.LayerOne); + sectionResult.AssessmentLayerTwoA = (AssessmentLayerTwoAResult)entity.LayerTwoA; + sectionResult.AssessmentLayerThree = (RoundedDouble) entity.LayerThree.ToNullAsNaN(); + } + } +} \ No newline at end of file Fisheye: Tag fd75ff7d1794c6a64fd3ce1aa1f159effba2e102 refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/Read/DuneErosionSectionResultEntityReadExtensions.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs =================================================================== diff -u -r0bc3d23ba7c6e8521df5786cc2680911e5865259 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs (.../FailureMechanismEntityReadExtensions.cs) (revision 0bc3d23ba7c6e8521df5786cc2680911e5865259) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs (.../FailureMechanismEntityReadExtensions.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -24,11 +24,13 @@ using System.Linq; using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.Read.ClosingStructures; +using Application.Ringtoets.Storage.Read.DuneErosion; using Application.Ringtoets.Storage.Read.GrassCoverErosionInwards; using Application.Ringtoets.Storage.Read.GrassCoverErosionOutwards; using Application.Ringtoets.Storage.Read.HeightStructures; using Application.Ringtoets.Storage.Read.Piping; using Application.Ringtoets.Storage.Read.StabilityPointStructures; +using Application.Ringtoets.Storage.Read.StabilityStoneCover; using Application.Ringtoets.Storage.Read.WaveImpactAsphaltCover; using Core.Common.Base; using Ringtoets.ClosingStructures.Data; Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StabilityStoneCover/StabilityStoneCoverSectionResultEntityReadExtensions.cs =================================================================== diff -u --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StabilityStoneCover/StabilityStoneCoverSectionResultEntityReadExtensions.cs (revision 0) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StabilityStoneCover/StabilityStoneCoverSectionResultEntityReadExtensions.cs (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -0,0 +1,56 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Application.Ringtoets.Storage.DbContext; +using Core.Common.Base.Data; +using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.StabilityStoneCover.Data; + +namespace Application.Ringtoets.Storage.Read.StabilityStoneCover +{ + /// + /// This class defines extension methods for read operations for a based on the + /// . + /// + internal static class StabilityStoneCoverSectionResultEntityReadExtensions + { + /// + /// Reads the and use the information to update a + /// . + /// + /// The to create for. + /// The target of the read operation. + /// A new . + /// Thrown when is null. + internal static void Read(this StabilityStoneCoverSectionResultEntity entity, StabilityStoneCoverFailureMechanismSectionResult sectionResult) + { + if (sectionResult == null) + { + throw new ArgumentNullException("sectionResult"); + } + + sectionResult.AssessmentLayerOne = Convert.ToBoolean(entity.LayerOne); + sectionResult.AssessmentLayerTwoA = (AssessmentLayerTwoAResult)entity.LayerTwoA; + sectionResult.AssessmentLayerThree = (RoundedDouble) entity.LayerThree.ToNullAsNaN(); + } + } +} \ No newline at end of file Fisheye: Tag fd75ff7d1794c6a64fd3ce1aa1f159effba2e102 refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StabilityStoneCoverSectionResultEntityReadExtensions.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj =================================================================== diff -u -r41a37c93cb0b3e36ff7023c9f42b4e6225598b55 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision 41a37c93cb0b3e36ff7023c9f42b4e6225598b55) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -195,7 +195,7 @@ - + Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -r41a37c93cb0b3e36ff7023c9f42b4e6225598b55 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs (.../DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs) (revision 41a37c93cb0b3e36ff7023c9f42b4e6225598b55) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs (.../DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -47,12 +47,12 @@ } [Test] - public void Create_WithDifferentResults_ReturnsEntityWithExpectedResults( - [Values(true, false)] bool assessmentLayerOneResult, - [Values(AssessmentLayerTwoAResult.NotCalculated, AssessmentLayerTwoAResult.Failed)] AssessmentLayerTwoAResult assessmentLayerTwoAResult, - [Values(3.2, 4.5)] double assessmentLayerThreeResult) + public void Create_ValidData_ReturnsEntityEqualData() { // Setup + const bool assessmentLayerOneResult = false; + AssessmentLayerTwoAResult assessmentLayerTwoAResult = AssessmentLayerTwoAResult.Failed; + var assessmentLayerThreeResult = 3.2; var sectionResult = new DuneErosionFailureMechanismSectionResult(new TestFailureMechanismSection()) { AssessmentLayerOne = assessmentLayerOneResult, Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StabilityStoneCover/StabilityStoneCoverFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -r41a37c93cb0b3e36ff7023c9f42b4e6225598b55 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StabilityStoneCover/StabilityStoneCoverFailureMechanismSectionResultCreateExtensionsTest.cs (.../StabilityStoneCoverFailureMechanismSectionResultCreateExtensionsTest.cs) (revision 41a37c93cb0b3e36ff7023c9f42b4e6225598b55) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StabilityStoneCover/StabilityStoneCoverFailureMechanismSectionResultCreateExtensionsTest.cs (.../StabilityStoneCoverFailureMechanismSectionResultCreateExtensionsTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -47,12 +47,12 @@ } [Test] - public void Create_WithDifferentResults_ReturnsEntityWithExpectedResults( - [Values(true, false)] bool assessmentLayerOneResult, - [Values(AssessmentLayerTwoAResult.NotCalculated, AssessmentLayerTwoAResult.Failed)] AssessmentLayerTwoAResult assessmentLayerTwoAResult, - [Values(3.2, 4.5)] double assessmentLayerThreeResult) + public void Create_ValidData_ReturnsEntityEqualData() { // Setup + const bool assessmentLayerOneResult = false; + AssessmentLayerTwoAResult assessmentLayerTwoAResult = AssessmentLayerTwoAResult.Failed; + var assessmentLayerThreeResult = 3.2; var sectionResult = new StabilityStoneCoverFailureMechanismSectionResult(new TestFailureMechanismSection()) { AssessmentLayerOne = assessmentLayerOneResult, Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensionsTest.cs =================================================================== diff -u --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensionsTest.cs (revision 0) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensionsTest.cs (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -0,0 +1,105 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Application.Ringtoets.Storage.DbContext; +using Application.Ringtoets.Storage.Read; +using Application.Ringtoets.Storage.Read.DuneErosion; +using Application.Ringtoets.Storage.TestUtil; +using NUnit.Framework; +using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Integration.Data.StandAlone.SectionResults; + +namespace Application.Ringtoets.Storage.Test.Read.DuneErosion +{ + [TestFixture] + public class DuneErosionSectionResultEntityReadExtensionsTest + { + [Test] + public void Read_SectionResultIsNull_ThrowArgumentNullException() + { + // Setup + var entity = new DuneErosionSectionResultEntity(); + + // Call + TestDelegate call = () => entity.Read(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("sectionResult", paramName); + } + + [Test] + [TestCase(true, AssessmentLayerTwoAResult.Failed)] + [TestCase(false, AssessmentLayerTwoAResult.Successful)] + [TestCase(false, AssessmentLayerTwoAResult.Failed)] + public void Read_WithDecimalParameterValues_ReturnDuneErosionSectionResultWithDoubleParameterValues(bool layerOne, AssessmentLayerTwoAResult layerTwoA) + { + // Setup + var random = new Random(21); + double layerThree = random.NextDouble(); + var collector = new ReadConversionCollector(); + + var failureMechanismSectionEntity = new FailureMechanismSectionEntity(); + collector.Read(failureMechanismSectionEntity, new TestFailureMechanismSection()); + var entity = new DuneErosionSectionResultEntity + { + LayerOne = Convert.ToByte(layerOne), + LayerTwoA = Convert.ToByte(layerTwoA), + LayerThree = layerThree, + FailureMechanismSectionEntity = failureMechanismSectionEntity + }; + var sectionResult = new DuneErosionFailureMechanismSectionResult(new TestFailureMechanismSection()); + + // Call + entity.Read(sectionResult); + + // Assert + Assert.AreEqual(layerOne, sectionResult.AssessmentLayerOne); + Assert.AreEqual(layerTwoA, sectionResult.AssessmentLayerTwoA); + Assert.AreEqual(layerThree, sectionResult.AssessmentLayerThree, 1e-6); + Assert.IsNotNull(sectionResult); + } + + [Test] + public void Read_WithNullLayerThree_ReturnDuneErosionSectionResultWithNullParameters() + { + // Setup + var collector = new ReadConversionCollector(); + var failureMechanismSectionEntity = new FailureMechanismSectionEntity(); + collector.Read(failureMechanismSectionEntity, new TestFailureMechanismSection()); + var entity = new DuneErosionSectionResultEntity + { + LayerOne = Convert.ToByte(false), + LayerTwoA = Convert.ToByte(AssessmentLayerTwoAResult.Failed), + LayerThree = null, + FailureMechanismSectionEntity = failureMechanismSectionEntity + }; + var sectionResult = new DuneErosionFailureMechanismSectionResult(new TestFailureMechanismSection()); + + // Call + entity.Read(sectionResult); + + // Assert + Assert.IsNaN(sectionResult.AssessmentLayerThree); + } + } +} \ No newline at end of file Fisheye: Tag fd75ff7d1794c6a64fd3ce1aa1f159effba2e102 refers to a dead (removed) revision in file `Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/DuneErosionSectionResultEntityReadExtensionsTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StabilityStoneCover/StabilityStoneCoverSectionResultEntityReadExtensionsTest.cs =================================================================== diff -u -rfdd03cdaf7c9eed6fccaa5aa591f71deddcb2b74 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StabilityStoneCover/StabilityStoneCoverSectionResultEntityReadExtensionsTest.cs (.../StabilityStoneCoverSectionResultEntityReadExtensionsTest.cs) (revision fdd03cdaf7c9eed6fccaa5aa591f71deddcb2b74) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StabilityStoneCover/StabilityStoneCoverSectionResultEntityReadExtensionsTest.cs (.../StabilityStoneCoverSectionResultEntityReadExtensionsTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -22,6 +22,7 @@ using System; using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.Read; +using Application.Ringtoets.Storage.Read.StabilityStoneCover; using Application.Ringtoets.Storage.TestUtil; using NUnit.Framework; using Ringtoets.Common.Data.FailureMechanism; Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -r0bc3d23ba7c6e8521df5786cc2680911e5865259 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 0bc3d23ba7c6e8521df5786cc2680911e5865259) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -154,7 +154,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } } @@ -164,7 +164,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } } @@ -174,7 +174,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } } @@ -184,7 +184,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } } @@ -194,7 +194,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } } @@ -204,7 +204,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = (RoundedDouble) random.NextDouble(); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -215,7 +215,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = (RoundedDouble) random.NextDouble(); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -228,7 +228,7 @@ { var randomLayer2AResult = (AssessmentLayerTwoAResult) random.Next(0, Enum.GetValues(typeof(AssessmentLayerTwoAResult)).Length); - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = randomLayer2AResult; sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -241,7 +241,7 @@ { var randomLayer2AResult = (AssessmentLayerTwoAResult) random.Next(0, Enum.GetValues(typeof(AssessmentLayerTwoAResult)).Length); - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = randomLayer2AResult; sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -254,7 +254,7 @@ { var randomLayer2AResult = (AssessmentLayerTwoAResult) random.Next(0, Enum.GetValues(typeof(AssessmentLayerTwoAResult)).Length); - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = randomLayer2AResult; sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -267,7 +267,7 @@ { var randomLayer2AResult = (AssessmentLayerTwoAResult) random.Next(0, Enum.GetValues(typeof(AssessmentLayerTwoAResult)).Length); - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = randomLayer2AResult; sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -280,7 +280,7 @@ { var randomLayer2AResult = (AssessmentLayerTwoAResult) random.Next(0, Enum.GetValues(typeof(AssessmentLayerTwoAResult)).Length); - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = randomLayer2AResult; sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -291,7 +291,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = (RoundedDouble) random.NextDouble(); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -615,7 +615,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } } @@ -749,7 +749,7 @@ foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); if (!firstSectionResultHasCalculation) { @@ -844,7 +844,7 @@ { var randomLayer2AResult = (AssessmentLayerTwoAResult) random.Next(0, Enum.GetValues(typeof(AssessmentLayerTwoAResult)).Length); - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = randomLayer2AResult; sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -933,7 +933,7 @@ { var randomLayer2AResult = (AssessmentLayerTwoAResult) random.Next(0, Enum.GetValues(typeof(AssessmentLayerTwoAResult)).Length); - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = randomLayer2AResult; sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } @@ -1016,7 +1016,7 @@ var random = new Random(21); foreach (var sectionResult in sectionResults) { - sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); + sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 1)); sectionResult.AssessmentLayerTwoA = (RoundedDouble) random.NextDouble(); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs =================================================================== diff -u -rfe1332c1e9b14365a62f6ce03c9494393223179e -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision fe1332c1e9b14365a62f6ce03c9494393223179e) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -41,7 +41,7 @@ public ClosingStructuresFailureMechanismSectionResultRow(ClosingStructuresFailureMechanismSectionResult sectionResult) : base(sectionResult) {} /// - /// Gets the assessment layer two a of the . + /// Gets the . /// [TypeConverter(typeof(FailureMechanismSectionResultNoProbabilityValueDoubleConverter))] public double AssessmentLayerTwoA Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestFailureMechanismSectionResultTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestFailureMechanismSectionResultTest.cs (.../TestFailureMechanismSectionResultTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestFailureMechanismSectionResultTest.cs (.../TestFailureMechanismSectionResultTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using Core.Common.Base.Data; using Core.Common.Base.Geometry; using NUnit.Framework; using Ringtoets.Common.Data.FailureMechanism; @@ -54,6 +55,8 @@ // Assert Assert.IsInstanceOf(result); + Assert.IsFalse(result.AssessmentLayerOne); + Assert.AreEqual(RoundedDouble.NaN, result.AssessmentLayerThree); Assert.AreSame(section, result.Section); } } Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/DuneErosionSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new DuneErosionFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new DuneErosionFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ { // Setup var newValue = AssessmentLayerTwoAResult.Successful; - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new DuneErosionFailureMechanismSectionResult(section); var row = new DuneErosionSectionResultRow(result); @@ -91,7 +91,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new DuneErosionFailureMechanismSectionResult(section); var row = new DuneErosionSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs (.../GrassCoverSlipOffInwardsSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs (.../GrassCoverSlipOffInwardsSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffInwardsFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffInwardsFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ { // Setup var newValue = AssessmentLayerTwoAResult.Successful; - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffInwardsFailureMechanismSectionResult(section); var row = new GrassCoverSlipOffInwardsSectionResultRow(result); @@ -91,7 +91,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffInwardsFailureMechanismSectionResult(section); var row = new GrassCoverSlipOffInwardsSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs (.../GrassCoverSlipOffOutwardsSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs (.../GrassCoverSlipOffOutwardsSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffOutwardsFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffOutwardsFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ { // Setup var newValue = AssessmentLayerTwoAResult.Successful; - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffOutwardsFailureMechanismSectionResult(section); var row = new GrassCoverSlipOffOutwardsSectionResultRow(result); @@ -91,7 +91,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new GrassCoverSlipOffOutwardsFailureMechanismSectionResult(section); var row = new GrassCoverSlipOffOutwardsSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacrostabilityInwardsSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacrostabilityInwardsSectionResultRowTest.cs (.../MacrostabilityInwardsSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacrostabilityInwardsSectionResultRowTest.cs (.../MacrostabilityInwardsSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -42,7 +42,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityInwardsFailureMechanismSectionResult(section); // Call @@ -56,7 +56,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityInwardsFailureMechanismSectionResult(section); // Call @@ -82,7 +82,7 @@ public void AssessmentLayerTwoA_ForValidValues_ResultPropertyChanged(double value) { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityInwardsFailureMechanismSectionResult(section); var row = new MacrostabilityInwardsSectionResultRow(result); @@ -101,7 +101,7 @@ public void AssessmentLayerTwoA_ForInvalidValues_ThrowsArgumentException(double value) { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityInwardsFailureMechanismSectionResult(section); var row = new MacrostabilityInwardsSectionResultRow(result); @@ -120,7 +120,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityInwardsFailureMechanismSectionResult(section); var row = new MacrostabilityInwardsSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacrostabilityOutwardsSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacrostabilityOutwardsSectionResultRowTest.cs (.../MacrostabilityOutwardsSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacrostabilityOutwardsSectionResultRowTest.cs (.../MacrostabilityOutwardsSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -42,7 +42,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityOutwardsFailureMechanismSectionResult(section); // Call @@ -56,7 +56,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityOutwardsFailureMechanismSectionResult(section); // Call @@ -82,7 +82,7 @@ public void AssessmentLayerTwoA_ForValidValues_ResultPropertyChanged(double value) { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityOutwardsFailureMechanismSectionResult(section); var row = new MacrostabilityOutwardsSectionResultRow(result); @@ -101,7 +101,7 @@ public void AssessmentLayerTwoA_ForInvalidValues_ThrowsArgumentException(double value) { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityOutwardsFailureMechanismSectionResult(section); var row = new MacrostabilityOutwardsSectionResultRow(result); @@ -120,7 +120,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MacrostabilityOutwardsFailureMechanismSectionResult(section); var row = new MacrostabilityOutwardsSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs (.../MicrostabilitySectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs (.../MicrostabilitySectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MicrostabilityFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MicrostabilityFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ { // Setup var newValue = AssessmentLayerTwoAResult.Successful; - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MicrostabilityFailureMechanismSectionResult(section); var row = new MicrostabilitySectionResultRow(result); @@ -91,7 +91,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new MicrostabilityFailureMechanismSectionResult(section); var row = new MicrostabilitySectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs (.../PipingStructureSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs (.../PipingStructureSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new PipingStructureFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new PipingStructureFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ { // Setup var newValue = AssessmentLayerTwoAResult.Successful; - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new PipingStructureFailureMechanismSectionResult(section); var row = new PipingStructureSectionResultRow(result); @@ -91,7 +91,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new PipingStructureFailureMechanismSectionResult(section); var row = new PipingStructureSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section); var row = new StrengthStabilityLengthwiseConstructionSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs (.../TechnicalInnovationSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs (.../TechnicalInnovationSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new TechnicalInnovationFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new TechnicalInnovationFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new TechnicalInnovationFailureMechanismSectionResult(section); var row = new TechnicalInnovationSectionResultRow(result); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs (.../WaterPressureAsphaltCoverSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs (.../WaterPressureAsphaltCoverSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new WaterPressureAsphaltCoverFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new WaterPressureAsphaltCoverFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new WaterPressureAsphaltCoverFailureMechanismSectionResult(section); var row = new WaterPressureAsphaltCoverSectionResultRow(result); Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/PipingCalculationScenarioFactoryTest.cs =================================================================== diff -u -re42bdf3dd379c46bab9212eb7b30f4754c9bc91c -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/PipingCalculationScenarioFactoryTest.cs (.../PipingCalculationScenarioFactoryTest.cs) (revision e42bdf3dd379c46bab9212eb7b30f4754c9bc91c) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/PipingCalculationScenarioFactoryTest.cs (.../PipingCalculationScenarioFactoryTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -48,7 +48,7 @@ public void CreatePipingCalculationScenario_WithSection_CreatesRelevantCalculationWithOutputSet(double probability) { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); // Call var scenario = PipingCalculationScenarioFactory.CreatePipingCalculationScenario(probability, section); @@ -75,7 +75,7 @@ public void CreateFailedPipingCalculationScenario_WithSection_CreatesRelevantCalculationWithOutputSetToNaN() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); // Call var scenario = PipingCalculationScenarioFactory.CreateFailedPipingCalculationScenario(section); @@ -102,7 +102,7 @@ public void CreateIrreleveantPipingCalculationScenario_WithSection_CreatesIrrelevantCalculation() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); // Call var scenario = PipingCalculationScenarioFactory.CreateIrreleveantPipingCalculationScenario(section); @@ -126,7 +126,7 @@ public void CreateNotCalculatedPipingCalculationScenario_WithSection_CreatesRelevantCalculationWithoutOutput() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); // Call var scenario = PipingCalculationScenarioFactory.CreateNotCalculatedPipingCalculationScenario(section); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs =================================================================== diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) @@ -40,7 +40,7 @@ public void Constructor_WithSectionResult_ExpectedValues() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new StabilityStoneCoverFailureMechanismSectionResult(section); // Call @@ -54,7 +54,7 @@ public void Constructor_WithSectionResult_PropertiesFromSectionAndResult() { // Setup - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new StabilityStoneCoverFailureMechanismSectionResult(section); // Call @@ -74,7 +74,7 @@ { // Setup var newValue = AssessmentLayerTwoAResult.Successful; - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new StabilityStoneCoverFailureMechanismSectionResult(section); var row = new StabilityStoneCoverSectionResultRow(result); @@ -91,7 +91,7 @@ // Setup var random = new Random(21); var newValue = random.NextDouble(); - var section = CreateSection(); + FailureMechanismSection section = CreateSection(); var result = new StabilityStoneCoverFailureMechanismSectionResult(section); var row = new StabilityStoneCoverSectionResultRow(result);