Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Merge/AssessmentSectionProviderDialog.cs =================================================================== diff -u -r283277d753eec15fec834e7e24a0bf83342a5c09 -r3cc25843cfed925215b07a84c6b6f2d25ab4add6 --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Merge/AssessmentSectionProviderDialog.cs (.../AssessmentSectionProviderDialog.cs) (revision 283277d753eec15fec834e7e24a0bf83342a5c09) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Merge/AssessmentSectionProviderDialog.cs (.../AssessmentSectionProviderDialog.cs) (revision 3cc25843cfed925215b07a84c6b6f2d25ab4add6) @@ -10,14 +10,9 @@ { public partial class AssessmentSectionProviderDialog : DialogBase, IMergeDataProvider { - public AssessmentSectionProviderDialog(IWin32Window dialogParent, IEnumerable assessmentSections) + public AssessmentSectionProviderDialog(IWin32Window dialogParent) : base(dialogParent, RingtoetsCommonFormsResources.SelectionDialogIcon, 500, 350) { - if (assessmentSections == null) - { - throw new ArgumentNullException(nameof(assessmentSections)); - } - InitializeComponent(); InitializeDataGridView(); } Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Merge/AssessmentSectionProviderDialogTest.cs =================================================================== diff -u -r283277d753eec15fec834e7e24a0bf83342a5c09 -r3cc25843cfed925215b07a84c6b6f2d25ab4add6 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Merge/AssessmentSectionProviderDialogTest.cs (.../AssessmentSectionProviderDialogTest.cs) (revision 283277d753eec15fec834e7e24a0bf83342a5c09) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Merge/AssessmentSectionProviderDialogTest.cs (.../AssessmentSectionProviderDialogTest.cs) (revision 3cc25843cfed925215b07a84c6b6f2d25ab4add6) @@ -29,42 +29,23 @@ public void Constructor_DialogParentNull_ThrowsArgumentNullException() { // Call - TestDelegate call = () => new AssessmentSectionProviderDialog(null, Enumerable.Empty()); + TestDelegate call = () => new AssessmentSectionProviderDialog(null); // Assert var exception = Assert.Throws(call); Assert.AreEqual("dialogParent", exception.ParamName); } [Test] - public void Constructor_AssessmentSectionsNull_ThrowsArgumentNullException() - { - // Setup - var mocks = new MockRepository(); - var dialogParent = mocks.Stub(); - mocks.ReplayAll(); - - // Call - TestDelegate call = () => new AssessmentSectionProviderDialog(dialogParent, null); - - // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("assessmentSections", exception.ParamName); - mocks.VerifyAll(); - } - - [Test] public void Constructor_ExpectedValues() { // Setup var mocks = new MockRepository(); var dialogParent = mocks.Stub(); mocks.ReplayAll(); - IEnumerable assessmentSections = Enumerable.Empty(); - // Call - using (var dialog = new AssessmentSectionProviderDialog(dialogParent, assessmentSections)) + using (var dialog = new AssessmentSectionProviderDialog(dialogParent)) { // Assert Assert.IsInstanceOf(dialog); @@ -86,7 +67,7 @@ { // Setup using (var dialogParent = new Form()) - using (var dialog = new AssessmentSectionProviderDialog(dialogParent, Enumerable.Empty())) + using (var dialog = new AssessmentSectionProviderDialog(dialogParent)) { // Call dialog.Show();