Index: Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/AssemblyGroupsContext.cs =================================================================== diff -u --- Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/AssemblyGroupsContext.cs (revision 0) +++ Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/AssemblyGroupsContext.cs (revision 3d6d40241eb27b32fa9dfcff845bb9d9a6139367) @@ -0,0 +1,40 @@ +// Copyright (C) Stichting Deltares 2021. 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 Core.Common.Controls.PresentationObjects; +using Riskeer.Integration.Data; + +namespace Riskeer.Integration.Forms.PresentationObjects +{ + /// + /// Presentation object for the assembly groups. + /// + public class AssemblyGroupsContext : ObservableWrappedObjectContextBase + { + /// + /// Creates a new instance of . + /// + /// The that the belongs to. + /// Thrown when is null. + public AssemblyGroupsContext(AssessmentSection wrappedData) : base(wrappedData) {} + } +} \ No newline at end of file Index: Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs =================================================================== diff -u -r826ed5d86e04dbf6e830afa9bcf14b2b2619b10f -r3d6d40241eb27b32fa9dfcff845bb9d9a6139367 --- Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision 826ed5d86e04dbf6e830afa9bcf14b2b2619b10f) +++ Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision 3d6d40241eb27b32fa9dfcff845bb9d9a6139367) @@ -787,6 +787,8 @@ yield return CreateSpecificFailurePathTreeNodeInfo(); + yield return new TreeNodeInfo(); + yield return new TreeNodeInfo { Text = context => Resources.GenericFailurePaths_DisplayName, Index: Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PresentationObjects/AssemblyGroupsContextTest.cs =================================================================== diff -u --- Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PresentationObjects/AssemblyGroupsContextTest.cs (revision 0) +++ Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PresentationObjects/AssemblyGroupsContextTest.cs (revision 3d6d40241eb27b32fa9dfcff845bb9d9a6139367) @@ -0,0 +1,50 @@ +// Copyright (C) Stichting Deltares 2021. 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 Core.Common.Controls.PresentationObjects; +using Core.Common.TestUtil; +using NUnit.Framework; +using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Integration.Data; +using Riskeer.Integration.Forms.PresentationObjects; + +namespace Riskeer.Integration.Forms.Test.PresentationObjects +{ + [TestFixture] + public class AssemblyGroupsContextTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(21); + var assessmentSection = new AssessmentSection(random.NextEnumValue()); + + // Call + var context = new AssemblyGroupsContext(assessmentSection); + + // Assert + Assert.IsInstanceOf>(context); + Assert.AreSame(assessmentSection, context.WrappedData); + } + } +} \ No newline at end of file Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/RiskeerPluginTest.cs =================================================================== diff -u -r826ed5d86e04dbf6e830afa9bcf14b2b2619b10f -r3d6d40241eb27b32fa9dfcff845bb9d9a6139367 --- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/RiskeerPluginTest.cs (.../RiskeerPluginTest.cs) (revision 826ed5d86e04dbf6e830afa9bcf14b2b2619b10f) +++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/RiskeerPluginTest.cs (.../RiskeerPluginTest.cs) (revision 3d6d40241eb27b32fa9dfcff845bb9d9a6139367) @@ -579,6 +579,7 @@ Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(AssemblyResultPerSectionContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(AssemblyResultsContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(AssemblyResultPerSectionMapContext))); + Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(AssemblyGroupsContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GenericFailurePathsContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(SpecificFailurePathsContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(SpecificFailurePathContext)));