Example #1
0
        // this is so we dont use ?. everywhere.
        // for null remoters the local object is always null
        public static ProjectElement Import(this MockProjectElementLinkRemoter remoter, ProjectCollectionLinker remote)
        {
            if (remoter == null)
            {
                return(null);
            }

            return(remoter.ImportImpl(remote));
        }
Example #2
0
 public void RemoveChild(MockProjectElementLinkRemoter child)
 {
     this.ContainerXml.RemoveChild(child.Import(this.OwningCollection));
 }
Example #3
0
 public void AddInitialChild(MockProjectElementLinkRemoter child)
 {
     ProjectElementContainerLink.AddInitialChild(this.ContainerXml, child.Import(OwningCollection));
 }
Example #4
0
 public void InsertBeforeChild(MockProjectElementLinkRemoter child, MockProjectElementLinkRemoter reference)
 {
     this.ContainerXml.InsertBeforeChild(child.Import(OwningCollection), reference.Import(OwningCollection));
 }