Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssessmentSectionCommentView.cs
===================================================================
diff -u -r553ac4eda05a343285bc09090a3fb5f80a4d249e -r30747db7c17738e1e5c6f1f1745d433a14b7fdeb
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssessmentSectionCommentView.cs (.../AssessmentSectionCommentView.cs) (revision 553ac4eda05a343285bc09090a3fb5f80a4d249e)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssessmentSectionCommentView.cs (.../AssessmentSectionCommentView.cs) (revision 30747db7c17738e1e5c6f1f1745d433a14b7fdeb)
@@ -24,13 +24,19 @@
namespace Ringtoets.Integration.Forms.Views
{
+ ///
+ /// This class represents a simple view with a rich text editor, to which data can be added.
+ ///
public partial class AssessmentSectionCommentView : UserControl, IView
{
+ ///
+ /// Creates a new instance of .
+ ///
public AssessmentSectionCommentView()
{
InitializeComponent();
}
-
+
public object Data { get; set; }
}
}
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj
===================================================================
diff -u -ra7a3af9bffa76922cf344ee2134ad30078de878d -r30747db7c17738e1e5c6f1f1745d433a14b7fdeb
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (.../Ringtoets.Integration.Forms.Test.csproj) (revision a7a3af9bffa76922cf344ee2134ad30078de878d)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (.../Ringtoets.Integration.Forms.Test.csproj) (revision 30747db7c17738e1e5c6f1f1745d433a14b7fdeb)
@@ -75,6 +75,7 @@
+
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssessmentSectoinCommentViewTest.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssessmentSectoinCommentViewTest.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssessmentSectoinCommentViewTest.cs (revision 30747db7c17738e1e5c6f1f1745d433a14b7fdeb)
@@ -0,0 +1,58 @@
+// 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.Windows.Forms;
+using Core.Common.Controls.Views;
+using NUnit.Framework;
+using Ringtoets.Integration.Forms.Views;
+
+namespace Ringtoets.Integration.Forms.Test.Views
+{
+ [TestFixture]
+ public class AssessmentSectoinCommentViewTest
+ {
+ [Test]
+ public void Constructor_DefaultValues()
+ {
+ // Call
+ var view = new AssessmentSectionCommentView();
+
+ // Assert
+ Assert.IsInstanceOf(view);
+ Assert.IsInstanceOf(view);
+ Assert.IsNull(view.Data);
+ }
+
+ [Test]
+ public void Data_SetData_ReturnsData()
+ {
+ // Setup
+ var view = new AssessmentSectionCommentView();
+ var data = new object();
+
+ // Call
+ view.Data = data;
+
+ // Assert
+ Assert.AreSame(data, view.Data);
+ }
+ }
+}