Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/PipingCalculationScenarioContext.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/PipingInputContext.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationContext.cs =================================================================== diff -u --- Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationContext.cs (revision 0) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationContext.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,87 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 System.Collections.Generic; +using Core.Common.Controls.PresentationObjects; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Common.Data.Calculation; +using Riskeer.Common.Forms.PresentationObjects; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.Probabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.PresentationObjects.Probabilistic +{ + /// + /// Presentation object for all data required to configure an instance of + /// in order to prepare it for performing a calculation. + /// + public class ProbabilisticPipingCalculationContext : PipingContext, + ICalculationContext + { + /// + /// Creates a new instance of . + /// + /// The instance wrapped by this context object. + /// The that owns the wrapped calculation. + /// The surface lines available within the piping context. + /// The stochastic soil models available within the piping context. + /// The piping failure mechanism which the piping context belongs to. + /// The assessment section which the piping context belongs to. + /// Thrown when any input argument is null. + public ProbabilisticPipingCalculationContext(ProbabilisticPipingCalculation calculation, + CalculationGroup parent, + IEnumerable surfaceLines, + IEnumerable stochasticSoilModels, + PipingFailureMechanism pipingFailureMechanism, + IAssessmentSection assessmentSection) + : base(calculation, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection) + { + if (parent == null) + { + throw new ArgumentNullException(nameof(parent)); + } + + Parent = parent; + } + + public CalculationGroup Parent { get; } + + public override bool Equals(WrappedObjectContextBase other) + { + return base.Equals(other) + && other is ProbabilisticPipingCalculationContext context + && ReferenceEquals(Parent, context.Parent); + } + + public override bool Equals(object obj) + { + return Equals(obj as ProbabilisticPipingCalculationContext); + } + + public override int GetHashCode() + { + return base.GetHashCode() ^ Parent.GetHashCode(); + } + } +} \ No newline at end of file Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingInputContext.cs =================================================================== diff -u --- Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingInputContext.cs (revision 0) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingInputContext.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,71 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 System.Collections.Generic; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.Probabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.PresentationObjects.Probabilistic +{ + /// + /// A presentation layer object wrapping an instance of + /// and allowing for selecting a surface line or soil profile based on data available + /// in a piping failure mechanism. + /// + public class ProbabilisticPipingInputContext : PipingContext + { + /// + /// Creates a new instance of + /// + /// The piping input instance wrapped by this context object. + /// The calculation the belongs to. + /// The surface lines available within the piping context. + /// The stochastic soil models available within the piping context. + /// The failure mechanism which the piping context belongs to. + /// The assessment section which the piping context belongs to. + /// Thrown when any input argument is null. + public ProbabilisticPipingInputContext(ProbabilisticPipingInput pipingInput, + ProbabilisticPipingCalculation calculation, + IEnumerable surfaceLines, + IEnumerable stochasticSoilModels, + PipingFailureMechanism pipingFailureMechanism, + IAssessmentSection assessmentSection) + : base(pipingInput, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection) + { + if (calculation == null) + { + throw new ArgumentNullException(nameof(calculation)); + } + + PipingCalculation = calculation; + } + + /// + /// Gets the calculation which the piping context belongs to. + /// + public ProbabilisticPipingCalculation PipingCalculation { get; } + } +} \ No newline at end of file Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/ProbabilisticPipingCalculationContext.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/ProbabilisticPipingInputContext.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/PipingCalculationScenarioContext.cs =================================================================== diff -u --- Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/PipingCalculationScenarioContext.cs (revision 0) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/PipingCalculationScenarioContext.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,87 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 System.Collections.Generic; +using Core.Common.Controls.PresentationObjects; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Common.Data.Calculation; +using Riskeer.Common.Forms.PresentationObjects; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.SemiProbabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic +{ + /// + /// Presentation object for all data required to configure an instance of + /// in order to prepare it for performing a calculation. + /// + public class PipingCalculationScenarioContext : PipingContext, + ICalculationContext + { + /// + /// Initializes a new instance of the class. + /// + /// The instance wrapped by this context object. + /// The that owns the wrapped scenario. + /// The surface lines available within the piping context. + /// The stochastic soil models available within the piping context. + /// The piping failure mechanism which the piping context belongs to. + /// The assessment section which the piping context belongs to. + /// Thrown when any input argument is null. + public PipingCalculationScenarioContext(SemiProbabilisticPipingCalculationScenario calculation, + CalculationGroup parent, + IEnumerable surfaceLines, + IEnumerable stochasticSoilModels, + PipingFailureMechanism pipingFailureMechanism, + IAssessmentSection assessmentSection) + : base(calculation, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection) + { + if (parent == null) + { + throw new ArgumentNullException(nameof(parent)); + } + + Parent = parent; + } + + public CalculationGroup Parent { get; } + + public override bool Equals(WrappedObjectContextBase other) + { + return base.Equals(other) + && other is PipingCalculationScenarioContext + && ReferenceEquals(Parent, ((PipingCalculationScenarioContext) other).Parent); + } + + public override bool Equals(object obj) + { + return Equals(obj as PipingCalculationScenarioContext); + } + + public override int GetHashCode() + { + return base.GetHashCode() ^ Parent.GetHashCode(); + } + } +} \ No newline at end of file Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/PipingInputContext.cs =================================================================== diff -u --- Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/PipingInputContext.cs (revision 0) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/PipingInputContext.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,70 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 System.Collections.Generic; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.SemiProbabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic +{ + /// + /// A presentation layer object wrapping an instance of + /// and allowing for selecting a surface line or soil profile based on data available + /// in a piping failure mechanism. + /// + public class PipingInputContext : PipingContext + { + /// + /// Creates a new instance of + /// + /// The piping input instance wrapped by this context object. + /// The calculation scenario the belongs to. + /// The surface lines available within the piping context. + /// The stochastic soil models available within the piping context. + /// The failure mechanism which the piping context belongs to. + /// The assessment section which the piping context belongs to. + /// Thrown when any input argument is null. + public PipingInputContext(SemiProbabilisticPipingInput pipingInput, + SemiProbabilisticPipingCalculationScenario calculation, + IEnumerable surfaceLines, + IEnumerable stochasticSoilModels, + PipingFailureMechanism pipingFailureMechanism, + IAssessmentSection assessmentSection) + : base(pipingInput, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection) + { + if (calculation == null) + { + throw new ArgumentNullException(nameof(calculation)); + } + + PipingCalculation = calculation; + } + + /// + /// Gets the calculation scenario which the piping context belongs to. + /// + public SemiProbabilisticPipingCalculationScenario PipingCalculation { get; } + } +} \ No newline at end of file Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs =================================================================== diff -u -r204265dc343093a3145565384151e84c888e4db5 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 204265dc343093a3145565384151e84c888e4db5) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -37,6 +37,7 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.Properties; using Riskeer.Piping.Forms.UITypeEditors; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/ProbabilisticPipingInputContextProperties.cs =================================================================== diff -u -r204265dc343093a3145565384151e84c888e4db5 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/ProbabilisticPipingInputContextProperties.cs (.../ProbabilisticPipingInputContextProperties.cs) (revision 204265dc343093a3145565384151e84c888e4db5) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/PropertyClasses/ProbabilisticPipingInputContextProperties.cs (.../ProbabilisticPipingInputContextProperties.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -37,6 +37,8 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.Properties; using Riskeer.Piping.Forms.UITypeEditors; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/src/Riskeer.Piping.Forms/Views/PipingCalculationsView.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/src/Riskeer.Piping.Forms/Views/PipingCalculationsView.cs (.../PipingCalculationsView.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/Views/PipingCalculationsView.cs (.../PipingCalculationsView.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -35,6 +35,7 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.Properties; using Riskeer.Piping.Primitives; using Riskeer.Piping.Service; Index: Riskeer/Piping/src/Riskeer.Piping.Plugin/PipingPlugin.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/src/Riskeer.Piping.Plugin/PipingPlugin.cs (.../PipingPlugin.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/src/Riskeer.Piping.Plugin/PipingPlugin.cs (.../PipingPlugin.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -55,6 +55,8 @@ using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Forms.Views; using Riskeer.Piping.IO.Configurations; Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/PipingCalculationScenarioContextTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/PipingInputContextTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationContextTest.cs =================================================================== diff -u --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationContextTest.cs (revision 0) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationContextTest.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,185 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 System.Collections.Generic; +using Core.Common.TestUtil; +using NUnit.Framework; +using Rhino.Mocks; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Common.Data.Calculation; +using Riskeer.Common.Forms.PresentationObjects; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.Probabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Data.TestUtil; +using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.Test.PresentationObjects.Probabilistic +{ + [TestFixture] + public class ProbabilisticPipingCalculationContextTest + { + [Test] + public void ConstructorWithData_Always_ExpectedPropertiesSet() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] soilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + var calculation = new ProbabilisticPipingCalculation(new GeneralPipingInput()); + var failureMechanism = new PipingFailureMechanism(); + var parent = new CalculationGroup(); + + // Call + var presentationObject = new ProbabilisticPipingCalculationContext(calculation, + parent, + surfaceLines, + soilModels, + failureMechanism, + assessmentSection); + + // Assert + Assert.IsInstanceOf>(presentationObject); + Assert.IsInstanceOf>(presentationObject); + Assert.AreSame(calculation, presentationObject.WrappedData); + Assert.AreSame(parent, presentationObject.Parent); + Assert.AreSame(surfaceLines, presentationObject.AvailablePipingSurfaceLines); + Assert.AreSame(soilModels, presentationObject.AvailableStochasticSoilModels); + Assert.AreSame(failureMechanism, presentationObject.FailureMechanism); + Assert.AreSame(assessmentSection, presentationObject.AssessmentSection); + mocks.VerifyAll(); + } + + [Test] + public void Constructor_ParentNull_ThrowsArgumentNullException() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] soilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + var calculation = new ProbabilisticPipingCalculation(new GeneralPipingInput()); + var failureMechanism = new PipingFailureMechanism(); + + // Call + void Call() => new ProbabilisticPipingCalculationContext(calculation, null, surfaceLines, soilModels, failureMechanism, assessmentSection); + + // Assert + var exception = Assert.Throws(Call); + Assert.AreEqual("parent", exception.ParamName); + mocks.VerifyAll(); + } + + [TestFixture] + private class PipingCalculationScenarioContextEqualsTest + : EqualsTestFixture + { + private static readonly MockRepository mocks = new MockRepository(); + + private static readonly IAssessmentSection assessmentSection = mocks.Stub(); + private static readonly ProbabilisticPipingCalculation calculation = new ProbabilisticPipingCalculation(new GeneralPipingInput()); + private static readonly IEnumerable surfaceLines = new PipingSurfaceLine[0]; + private static readonly IEnumerable stochasticSoilModels = new PipingStochasticSoilModel[0]; + private static readonly PipingFailureMechanism failureMechanism = new PipingFailureMechanism(); + private static readonly CalculationGroup parent = new CalculationGroup(); + + [SetUp] + public void SetUp() + { + mocks.ReplayAll(); + } + + [TearDown] + public void TearDown() + { + mocks.VerifyAll(); + } + + protected override ProbabilisticPipingCalculationContext CreateObject() + { + return new ProbabilisticPipingCalculationContext(calculation, + parent, + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection); + } + + protected override DerivedProbabilisticPipingCalculationScenarioContext CreateDerivedObject() + { + return new DerivedProbabilisticPipingCalculationScenarioContext(calculation, + parent, + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection); + } + + private static IEnumerable GetUnequalTestCases() + { + yield return new TestCaseData(new ProbabilisticPipingCalculationContext(new ProbabilisticPipingCalculation(new GeneralPipingInput()), + parent, + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection)) + .SetName("Calculation"); + yield return new TestCaseData(new ProbabilisticPipingCalculationContext(calculation, + new CalculationGroup(), + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection)) + .SetName("Parent"); + } + } + + private class DerivedProbabilisticPipingCalculationScenarioContext : ProbabilisticPipingCalculationContext + { + public DerivedProbabilisticPipingCalculationScenarioContext(ProbabilisticPipingCalculation calculation, + CalculationGroup parent, + IEnumerable surfaceLines, + IEnumerable stochasticSoilModels, + PipingFailureMechanism pipingFailureMechanism, IAssessmentSection assessmentSection) + : base(calculation, parent, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection) {} + } + } +} \ No newline at end of file Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/Probabilistic/ProbabilisticPipingInputContextTest.cs =================================================================== diff -u --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/Probabilistic/ProbabilisticPipingInputContextTest.cs (revision 0) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/Probabilistic/ProbabilisticPipingInputContextTest.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,101 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 NUnit.Framework; +using Rhino.Mocks; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.Probabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Data.TestUtil; +using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.Test.PresentationObjects.Probabilistic +{ + [TestFixture] + public class ProbabilisticPipingInputContextTest + { + [Test] + public void ParameteredConstructor_ExpectedValues() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var calculation = new ProbabilisticPipingCalculation(new GeneralPipingInput()); + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] stochasticSoilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + + var failureMechanism = new PipingFailureMechanism(); + + // Call + var context = new ProbabilisticPipingInputContext(calculation.InputParameters, calculation, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); + + // Assert + Assert.IsInstanceOf>(context); + Assert.AreSame(calculation.InputParameters, context.WrappedData); + Assert.AreSame(calculation, context.PipingCalculation); + Assert.AreSame(failureMechanism, context.FailureMechanism); + Assert.AreSame(assessmentSection, context.AssessmentSection); + CollectionAssert.AreEqual(surfaceLines, context.AvailablePipingSurfaceLines); + CollectionAssert.AreEqual(stochasticSoilModels, context.AvailableStochasticSoilModels); + mocks.VerifyAll(); + } + + [Test] + public void ParameteredConstructor_CalculationItemNull_ThrowsArgumentNullException() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var calculationInput = new ProbabilisticPipingInput(new GeneralPipingInput()); + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] stochasticSoilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + var failureMechanism = new PipingFailureMechanism(); + + // Call + TestDelegate call = () => new ProbabilisticPipingInputContext(calculationInput, null, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("calculation", exception.ParamName); + mocks.VerifyAll(); + } + } +} \ No newline at end of file Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/ProbabilisticPipingCalculationContextTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 7f6453bc0e3e028ad99948c230916ea25d92248a refers to a dead (removed) revision in file `Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/ProbabilisticPipingInputContextTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/SemiProbabilistic/PipingCalculationScenarioContextTest.cs =================================================================== diff -u --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/SemiProbabilistic/PipingCalculationScenarioContextTest.cs (revision 0) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/SemiProbabilistic/PipingCalculationScenarioContextTest.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,190 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 System.Collections.Generic; +using Core.Common.TestUtil; +using NUnit.Framework; +using Rhino.Mocks; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Common.Data.Calculation; +using Riskeer.Common.Forms.PresentationObjects; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.SemiProbabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Data.TestUtil; +using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.Test.PresentationObjects.SemiProbabilistic +{ + [TestFixture] + public class PipingCalculationScenarioContextTest + { + [Test] + public void ConstructorWithData_Always_ExpectedPropertiesSet() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] soilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + var calculation = new SemiProbabilisticPipingCalculationScenario(new GeneralPipingInput()); + var failureMechanism = new PipingFailureMechanism(); + var parent = new CalculationGroup(); + + // Call + var presentationObject = new PipingCalculationScenarioContext(calculation, + parent, + surfaceLines, + soilModels, + failureMechanism, + assessmentSection); + + // Assert + Assert.IsInstanceOf>(presentationObject); + Assert.IsInstanceOf>(presentationObject); + Assert.AreSame(calculation, presentationObject.WrappedData); + Assert.AreSame(parent, presentationObject.Parent); + Assert.AreSame(surfaceLines, presentationObject.AvailablePipingSurfaceLines); + Assert.AreSame(soilModels, presentationObject.AvailableStochasticSoilModels); + Assert.AreSame(failureMechanism, presentationObject.FailureMechanism); + Assert.AreSame(assessmentSection, presentationObject.AssessmentSection); + mocks.VerifyAll(); + } + + [Test] + public void ParameteredConstructor_ParentNull_ThrowsArgumentNullException() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] soilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + var calculation = new SemiProbabilisticPipingCalculationScenario(new GeneralPipingInput()); + var failureMechanism = new PipingFailureMechanism(); + + // Call + TestDelegate call = () => new PipingCalculationScenarioContext(calculation, + null, + surfaceLines, + soilModels, + failureMechanism, + assessmentSection); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("parent", exception.ParamName); + mocks.VerifyAll(); + } + + [TestFixture] + private class PipingCalculationScenarioContextEqualsTest + : EqualsTestFixture + { + private static readonly MockRepository mocks = new MockRepository(); + + private static readonly IAssessmentSection assessmentSection = mocks.Stub(); + private static readonly SemiProbabilisticPipingCalculationScenario calculation = new SemiProbabilisticPipingCalculationScenario(new GeneralPipingInput()); + private static readonly IEnumerable surfaceLines = new PipingSurfaceLine[0]; + private static readonly IEnumerable stochasticSoilModels = new PipingStochasticSoilModel[0]; + private static readonly PipingFailureMechanism failureMechanism = new PipingFailureMechanism(); + private static readonly CalculationGroup parent = new CalculationGroup(); + + [SetUp] + public void SetUp() + { + mocks.ReplayAll(); + } + + [TearDown] + public void TearDown() + { + mocks.VerifyAll(); + } + + protected override PipingCalculationScenarioContext CreateObject() + { + return new PipingCalculationScenarioContext(calculation, + parent, + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection); + } + + protected override DerivedPipingCalculationScenarioContext CreateDerivedObject() + { + return new DerivedPipingCalculationScenarioContext(calculation, + parent, + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection); + } + + private static IEnumerable GetUnequalTestCases() + { + yield return new TestCaseData(new PipingCalculationScenarioContext(new SemiProbabilisticPipingCalculationScenario(new GeneralPipingInput()), + parent, + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection)) + .SetName("Calculation"); + yield return new TestCaseData(new PipingCalculationScenarioContext(calculation, + new CalculationGroup(), + surfaceLines, + stochasticSoilModels, + failureMechanism, + assessmentSection)) + .SetName("Parent"); + } + } + + private class DerivedPipingCalculationScenarioContext : PipingCalculationScenarioContext + { + public DerivedPipingCalculationScenarioContext(SemiProbabilisticPipingCalculationScenario calculation, + CalculationGroup parent, + IEnumerable surfaceLines, + IEnumerable stochasticSoilModels, + PipingFailureMechanism pipingFailureMechanism, IAssessmentSection assessmentSection) + : base(calculation, parent, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection) {} + } + } +} \ No newline at end of file Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/SemiProbabilistic/PipingInputContextTest.cs =================================================================== diff -u --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/SemiProbabilistic/PipingInputContextTest.cs (revision 0) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PresentationObjects/SemiProbabilistic/PipingInputContextTest.cs (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -0,0 +1,101 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 NUnit.Framework; +using Rhino.Mocks; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Piping.Data; +using Riskeer.Piping.Data.SemiProbabilistic; +using Riskeer.Piping.Data.SoilProfile; +using Riskeer.Piping.Data.TestUtil; +using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; +using Riskeer.Piping.Primitives; + +namespace Riskeer.Piping.Forms.Test.PresentationObjects.SemiProbabilistic +{ + [TestFixture] + public class PipingInputContextTest + { + [Test] + public void ParameteredConstructor_ExpectedValues() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var calculation = new SemiProbabilisticPipingCalculationScenario(new GeneralPipingInput()); + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] stochasticSoilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + + var failureMechanism = new PipingFailureMechanism(); + + // Call + var context = new PipingInputContext(calculation.InputParameters, calculation, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); + + // Assert + Assert.IsInstanceOf>(context); + Assert.AreSame(calculation.InputParameters, context.WrappedData); + Assert.AreSame(calculation, context.PipingCalculation); + Assert.AreSame(failureMechanism, context.FailureMechanism); + Assert.AreSame(assessmentSection, context.AssessmentSection); + CollectionAssert.AreEqual(surfaceLines, context.AvailablePipingSurfaceLines); + CollectionAssert.AreEqual(stochasticSoilModels, context.AvailableStochasticSoilModels); + mocks.VerifyAll(); + } + + [Test] + public void ParameteredConstructor_CalculationItemNull_ThrowsArgumentNullException() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var calculationInput = new SemiProbabilisticPipingInput(new GeneralPipingInput()); + var surfaceLines = new[] + { + new PipingSurfaceLine(string.Empty) + }; + PipingStochasticSoilModel[] stochasticSoilModels = + { + PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel() + }; + var failureMechanism = new PipingFailureMechanism(); + + // Call + TestDelegate call = () => new PipingInputContext(calculationInput, null, surfaceLines, stochasticSoilModels, failureMechanism, assessmentSection); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("calculation", exception.ParamName); + mocks.VerifyAll(); + } + } +} \ No newline at end of file Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs (.../PipingInputContextPropertiesTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs (.../PipingInputContextPropertiesTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -44,6 +44,7 @@ using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Data.TestUtil; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Primitives; using Riskeer.Piping.Primitives.TestUtil; Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/ProbabilisticPipingInputContextPropertiesTest.cs =================================================================== diff -u -rd2d48d2bd3050679db76ec126d31b8f9d9546395 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/ProbabilisticPipingInputContextPropertiesTest.cs (.../ProbabilisticPipingInputContextPropertiesTest.cs) (revision d2d48d2bd3050679db76ec126d31b8f9d9546395) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/ProbabilisticPipingInputContextPropertiesTest.cs (.../ProbabilisticPipingInputContextPropertiesTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -34,6 +34,7 @@ using Riskeer.Piping.Data.Probabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilModelSelectionEditorTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilModelSelectionEditorTest.cs (.../PipingInputContextStochasticSoilModelSelectionEditorTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilModelSelectionEditorTest.cs (.../PipingInputContextStochasticSoilModelSelectionEditorTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -35,6 +35,7 @@ using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Data.TestUtil; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Forms.UITypeEditors; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditorTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditorTest.cs (.../PipingInputContextStochasticSoilProfileSelectionEditorTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditorTest.cs (.../PipingInputContextStochasticSoilProfileSelectionEditorTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -35,6 +35,7 @@ using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Data.TestUtil; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Forms.UITypeEditors; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextSurfaceLineSelectionEditorTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextSurfaceLineSelectionEditorTest.cs (.../PipingInputContextSurfaceLineSelectionEditorTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/UITypeEditors/PipingInputContextSurfaceLineSelectionEditorTest.cs (.../PipingInputContextSurfaceLineSelectionEditorTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -34,6 +34,7 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Forms.UITypeEditors; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/Views/PipingCalculationsViewTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/Views/PipingCalculationsViewTest.cs (.../PipingCalculationsViewTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/Views/PipingCalculationsViewTest.cs (.../PipingCalculationsViewTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -40,6 +40,7 @@ using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Data.TestUtil; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.Views; using Riskeer.Piping.Primitives; using Riskeer.Piping.Primitives.TestUtil; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/ExportInfos/PipingCalculationContextExportInfoTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/ExportInfos/PipingCalculationContextExportInfoTest.cs (.../PipingCalculationContextExportInfoTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/ExportInfos/PipingCalculationContextExportInfoTest.cs (.../PipingCalculationContextExportInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -33,6 +33,7 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.IO.Configurations; using Riskeer.Piping.Primitives; using CoreCommonGuiResources = Core.Common.Gui.Properties.Resources; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PipingPluginTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PipingPluginTest.cs (.../PipingPluginTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PipingPluginTest.cs (.../PipingPluginTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -39,6 +39,8 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Forms.Views; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PropertyInfos/PipingInputContextPropertyInfoTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PropertyInfos/PipingInputContextPropertyInfoTest.cs (.../PipingInputContextPropertyInfoTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PropertyInfos/PipingInputContextPropertyInfoTest.cs (.../PipingInputContextPropertyInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -29,6 +29,7 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.PropertyClasses; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -ra9d9138b73c38022ecb110a4a5ca573c8dd6dc71 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision a9d9138b73c38022ecb110a4a5ca573c8dd6dc71) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -48,6 +48,8 @@ using Riskeer.Piping.Data.TestUtil; using Riskeer.Piping.Forms; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Primitives; using Riskeer.Piping.Primitives.TestUtil; using RiskeerCommonFormsResources = Riskeer.Common.Forms.Properties.Resources; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -ra9d9138b73c38022ecb110a4a5ca573c8dd6dc71 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision a9d9138b73c38022ecb110a4a5ca573c8dd6dc71) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -47,6 +47,7 @@ using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Data.TestUtil; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Primitives; using RiskeerCommonFormsResources = Riskeer.Common.Forms.Properties.Resources; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs (.../PipingInputContextTreeNodeInfoTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs (.../PipingInputContextTreeNodeInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -32,6 +32,7 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.Properties; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/ProbabilisticPipingCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rd2d48d2bd3050679db76ec126d31b8f9d9546395 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/ProbabilisticPipingCalculationContextTreeNodeInfoTest.cs (.../ProbabilisticPipingCalculationContextTreeNodeInfoTest.cs) (revision d2d48d2bd3050679db76ec126d31b8f9d9546395) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/ProbabilisticPipingCalculationContextTreeNodeInfoTest.cs (.../ProbabilisticPipingCalculationContextTreeNodeInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -43,6 +43,7 @@ using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Data.TestUtil; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; using Riskeer.Piping.Primitives; using RiskeerCommonFormsResources = Riskeer.Common.Forms.Properties.Resources; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/ProbabilisticPipingInputContextTreeNodeInfoTest.cs =================================================================== diff -u -rd2d48d2bd3050679db76ec126d31b8f9d9546395 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/ProbabilisticPipingInputContextTreeNodeInfoTest.cs (.../ProbabilisticPipingInputContextTreeNodeInfoTest.cs) (revision d2d48d2bd3050679db76ec126d31b8f9d9546395) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/TreeNodeInfos/ProbabilisticPipingInputContextTreeNodeInfoTest.cs (.../ProbabilisticPipingInputContextTreeNodeInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -32,6 +32,7 @@ using Riskeer.Piping.Data.Probabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.Probabilistic; using Riskeer.Piping.Forms.Properties; using Riskeer.Piping.Primitives; Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs =================================================================== diff -u -r8da4704f43ae462b1eeae911f401e9b41cb3ce50 -r7f6453bc0e3e028ad99948c230916ea25d92248a --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs (.../PipingInputViewInfoTest.cs) (revision 8da4704f43ae462b1eeae911f401e9b41cb3ce50) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs (.../PipingInputViewInfoTest.cs) (revision 7f6453bc0e3e028ad99948c230916ea25d92248a) @@ -30,6 +30,7 @@ using Riskeer.Piping.Data.SemiProbabilistic; using Riskeer.Piping.Data.SoilProfile; using Riskeer.Piping.Forms.PresentationObjects; +using Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic; using Riskeer.Piping.Forms.Views; using Riskeer.Piping.Primitives; using PipingFormsResources = Riskeer.Piping.Forms.Properties.Resources;