Sitecore.FakeDb.Data.Engines.DataCommands.AddFromTemplateCommand.DoExecute C# (CSharp) Method

DoExecute() protected method

protected DoExecute ( ) : Item
return Item
    protected override Item DoExecute()
    {
      var item = new DbItem(this.ItemName, this.NewId, this.TemplateId) { ParentID = this.Destination.ID };
      this.dataStorage.AddFakeItem(item, this.Destination.Language);

      return this.dataStorage.GetSitecoreItem(this.NewId, this.Destination.Language);
    }
  }