Index: Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs =================================================================== diff -u -rab7db01b8089b71da2356facc31b9bed75d59743 -r358d26e8ab6f5f6a2fa3dfd357d984607a00dc1c --- Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision ab7db01b8089b71da2356facc31b9bed75d59743) +++ Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision 358d26e8ab6f5f6a2fa3dfd357d984607a00dc1c) @@ -73,7 +73,7 @@ { yield return new PropertyInfo { - CreateInstance = context => new MapDataCollectionProperties((MapDataCollection) context.WrappedData, MapDataContextHelper.GetParentsFromContext(context)) + CreateInstance = context => new MapDataCollectionProperties((MapDataCollection) context.WrappedData) }; yield return new PropertyInfo { Index: Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapDataCollectionProperties.cs =================================================================== diff -u -r1842e169ca9a255a5d601409a93fed507e9327ca -r358d26e8ab6f5f6a2fa3dfd357d984607a00dc1c --- Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapDataCollectionProperties.cs (.../MapDataCollectionProperties.cs) (revision 1842e169ca9a255a5d601409a93fed507e9327ca) +++ Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapDataCollectionProperties.cs (.../MapDataCollectionProperties.cs) (revision 358d26e8ab6f5f6a2fa3dfd357d984607a00dc1c) @@ -20,7 +20,6 @@ // All rights reserved. using System; -using System.Collections.Generic; using System.ComponentModel; using Core.Common.Gui.PropertyBag; using Core.Common.Util; @@ -35,29 +34,19 @@ /// public class MapDataCollectionProperties : ObjectProperties { - private readonly IEnumerable parents; - /// /// Creates a new instance of . /// /// The to show the properties for. - /// A collection containing all parent of - /// the . - /// Thrown when any parameter is null. - public MapDataCollectionProperties(MapDataCollection mapDataCollection, IEnumerable parents) + /// Thrown when + /// is null. + public MapDataCollectionProperties(MapDataCollection mapDataCollection) { if (mapDataCollection == null) { throw new ArgumentNullException(nameof(mapDataCollection)); } - if (parents == null) - { - throw new ArgumentNullException(nameof(parents)); - } - - this.parents = parents; - Data = mapDataCollection; } Index: Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapDataCollectionPropertiesTest.cs =================================================================== diff -u -r1842e169ca9a255a5d601409a93fed507e9327ca -r358d26e8ab6f5f6a2fa3dfd357d984607a00dc1c --- Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapDataCollectionPropertiesTest.cs (.../MapDataCollectionPropertiesTest.cs) (revision 1842e169ca9a255a5d601409a93fed507e9327ca) +++ Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapDataCollectionPropertiesTest.cs (.../MapDataCollectionPropertiesTest.cs) (revision 358d26e8ab6f5f6a2fa3dfd357d984607a00dc1c) @@ -21,7 +21,6 @@ using System; using System.ComponentModel; -using System.Linq; using Core.Common.Gui.PropertyBag; using Core.Common.TestUtil; using Core.Common.Util; @@ -42,33 +41,22 @@ public void Constructor_MapDataCollectionNull_ThrowsArgumentNullException() { // Call - TestDelegate call = () => new MapDataCollectionProperties(null, Enumerable.Empty()); + TestDelegate call = () => new MapDataCollectionProperties(null); // Assert var exception = Assert.Throws(call); Assert.AreEqual("mapDataCollection", exception.ParamName); } [Test] - public void Constructor_ParentsNull_ThrowsArgumentNullException() - { - // Call - TestDelegate call = () => new MapDataCollectionProperties(new MapDataCollection("Test"), null); - - // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("parents", exception.ParamName); - } - - [Test] public void Constructor_ExpectedValues() { // Setup var mapDataCollection = new MapDataCollection("Test"); mapDataCollection.Add(new TestFeatureBasedMapData()); // Call - var properties = new MapDataCollectionProperties(mapDataCollection, Enumerable.Empty()); + var properties = new MapDataCollectionProperties(mapDataCollection); // Assert Assert.IsInstanceOf>(properties); @@ -88,7 +76,7 @@ var mapDataCollection = new MapDataCollection("Test"); // Call - var properties = new MapDataCollectionProperties(mapDataCollection, Enumerable.Empty()); + var properties = new MapDataCollectionProperties(mapDataCollection); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties);