示例#1
0
 public void Add(FakeItem child) => WithChild(child);
 public void Add(FakeItem child)
 {
     this.WithChild(child);
 }
示例#3
0
        /// <summary>
        /// Sets current item as a child of <paramref name="parent"/>.
        /// <para>Current item becomes a member of parent children.</para>
        /// </summary>
        /// <param name="parent">The item to be a parent for current one.</param>
        /// <returns></returns>
        public FakeItem WithParent(FakeItem parent)
        {
            parent.WithChild(this);

            return(this);
        }
示例#4
0
 public FakeField(ID fieldId, FakeItem item)
     : this(fieldId, item ?? new FakeItem().ToSitecoreItem())
 {
     item.WithField(this.Field);
 }