public void Add(FakeItem child) => WithChild(child);
public void Add(FakeItem child) { this.WithChild(child); }
/// <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); }
public FakeField(ID fieldId, FakeItem item) : this(fieldId, item ?? new FakeItem().ToSitecoreItem()) { item.WithField(this.Field); }