Пример #1
0
        protected override ConfigurationSection Arrange_GetLocalSourceSection()
        {
            PolymorphicElementCollection collection = new PolymorphicElementCollection();

            collection.Add(new CustomPolymorphicElement()
            {
                Name = "el1"
            });
            return(new DummySectionWithCollections
            {
                PolymorphicCollection = collection
            });
        }
Пример #2
0
        protected override ConfigurationSection Arrange_GetParentSourceSection()
        {
            PolymorphicElementCollection collection = new PolymorphicElementCollection();

            collection.Add(new OtherDerivedPolymorphicElement()
            {
                Name = "el1"
            });
            return(new DummySectionWithCollections
            {
                PolymorphicCollection = collection
            });
        }
Пример #3
0
 protected override ConfigurationSection ArrangeOriginalSection()
 {
     originalCollection = new PolymorphicElementCollection();
     originalCollection.Add(new OtherDerivedPolymorphicElement()
     {
         Name = "el1"
     });
     originalCollection.Add(new CustomPolymorphicElement()
     {
         Name = "el2"
     });
     return(new DummySectionWithCollections
     {
         PolymorphicCollection = originalCollection
     });
 }
 protected override ConfigurationSection Arrange_GetLocalSourceSection()
 {
     PolymorphicElementCollection collection = new PolymorphicElementCollection();
     collection.Add(new CustomPolymorphicElement() { Name = "el1" });
     return new DummySectionWithCollections
     {
         PolymorphicCollection = collection
     };
 }
 protected override ConfigurationSection Arrange_GetParentSourceSection()
 {
     PolymorphicElementCollection collection = new PolymorphicElementCollection();
     collection.Add(new OtherDerivedPolymorphicElement() { Name = "el1" });
     return new DummySectionWithCollections
     {
         PolymorphicCollection = collection
     };
 }