Index: Core/Common/src/Core.Common.Gui/Forms/MainWindow/MainWindow.xaml.cs =================================================================== diff -u -ra4da6760f40992a5db81766eb5c31e8586bad5ae -rcf4f627d49e3c133f1017502b7fc355d40982032 --- Core/Common/src/Core.Common.Gui/Forms/MainWindow/MainWindow.xaml.cs (.../MainWindow.xaml.cs) (revision a4da6760f40992a5db81766eb5c31e8586bad5ae) +++ Core/Common/src/Core.Common.Gui/Forms/MainWindow/MainWindow.xaml.cs (.../MainWindow.xaml.cs) (revision cf4f627d49e3c133f1017502b7fc355d40982032) @@ -293,7 +293,7 @@ if (propertyGrid == null || propertyGrid.IsDisposed) { - propertyGrid = new PropertyGridView.PropertyGridView(applicationSelection, gui.PropertyResolver); + propertyGrid = new PropertyGridView.PropertyGridView(gui.PropertyResolver); } propertyGrid.Text = Properties.Resources.Properties_Title; Index: Core/Common/src/Core.Common.Gui/Forms/PropertyGridView/PropertyGridView.cs =================================================================== diff -u -r650277f75faab8d29b4a07b738f0fd2a99ac7ed3 -rcf4f627d49e3c133f1017502b7fc355d40982032 --- Core/Common/src/Core.Common.Gui/Forms/PropertyGridView/PropertyGridView.cs (.../PropertyGridView.cs) (revision 650277f75faab8d29b4a07b738f0fd2a99ac7ed3) +++ Core/Common/src/Core.Common.Gui/Forms/PropertyGridView/PropertyGridView.cs (.../PropertyGridView.cs) (revision cf4f627d49e3c133f1017502b7fc355d40982032) @@ -29,7 +29,6 @@ using Core.Common.Controls.Views; using Core.Common.Gui.Properties; using Core.Common.Gui.PropertyBag; -using Core.Common.Gui.Selection; namespace Core.Common.Gui.Forms.PropertyGridView { @@ -52,16 +51,11 @@ /// /// Initializes a new instance of the class. /// - /// The application selection mechanism. /// The class responsible for finding the object properties /// for a given data object. /// Thrown when any input argument is null. - public PropertyGridView(IApplicationSelection applicationSelection, IPropertyResolver propertyResolver) + public PropertyGridView(IPropertyResolver propertyResolver) { - if (applicationSelection == null) - { - throw new ArgumentNullException("applicationSelection"); - } if (propertyResolver == null) { throw new ArgumentNullException("propertyResolver"); Index: Core/Common/test/Core.Common.Gui.Test/Forms/PropertyGridView/PropertyGridViewTest.cs =================================================================== diff -u -ra4da6760f40992a5db81766eb5c31e8586bad5ae -rcf4f627d49e3c133f1017502b7fc355d40982032 --- Core/Common/test/Core.Common.Gui.Test/Forms/PropertyGridView/PropertyGridViewTest.cs (.../PropertyGridViewTest.cs) (revision a4da6760f40992a5db81766eb5c31e8586bad5ae) +++ Core/Common/test/Core.Common.Gui.Test/Forms/PropertyGridView/PropertyGridViewTest.cs (.../PropertyGridViewTest.cs) (revision cf4f627d49e3c133f1017502b7fc355d40982032) @@ -24,7 +24,6 @@ using Core.Common.Base; using Core.Common.Controls.Views; using Core.Common.Gui.Forms.PropertyGridView; -using Core.Common.Gui.Selection; using NUnit.Framework; using Rhino.Mocks; @@ -34,52 +33,25 @@ public class PropertyGridViewTest { [Test] - public void Constructor_ApplicationSelectionIsNull_ThrowsArgumentNullException() - { - // Setup - var mockRepository = new MockRepository(); - var propertyResolverStub = mockRepository.Stub(); - mockRepository.ReplayAll(); - - // Call - TestDelegate call = () => new Gui.Forms.PropertyGridView.PropertyGridView(null, - propertyResolverStub); - // Assert - string paramName = Assert.Throws(call).ParamName; - Assert.AreEqual("applicationSelection", paramName); - mockRepository.VerifyAll(); - } - - [Test] public void Constructor_PropertyResolverIsNull_ThrowsArgumentNullException() { - // Setup - var mockRepository = new MockRepository(); - var applicationSelectionStub = mockRepository.Stub(); - mockRepository.ReplayAll(); - // Call - TestDelegate call = () => new Gui.Forms.PropertyGridView.PropertyGridView(applicationSelectionStub, - null); + TestDelegate call = () => new Gui.Forms.PropertyGridView.PropertyGridView(null); // Assert string paramName = Assert.Throws(call).ParamName; Assert.AreEqual("propertyResolver", paramName); - mockRepository.VerifyAll(); } [Test] public void Constructor_ValidParameters_ExpectedValues() { // Setup var mockRepository = new MockRepository(); - var applicationSelectionStub = mockRepository.Stub(); var propertyResolverStub = mockRepository.Stub(); mockRepository.ReplayAll(); // Call - using (var propertyGridView = new Gui.Forms.PropertyGridView.PropertyGridView( - applicationSelectionStub, - propertyResolverStub)) + using (var propertyGridView = new Gui.Forms.PropertyGridView.PropertyGridView(propertyResolverStub)) { // Assert Assert.IsInstanceOf(propertyGridView);