/// <summary>
        /// format initializes at this point because templates are not loaded when transforms register
        /// </summary>
        /// <param name="rows"></param>
        /// <returns></returns>
        public override IEnumerable <IRow> Operate(IEnumerable <IRow> rows)
        {
            if (_template != null)
            {
                Context.Operation.Format = _template.Content;
            }

            _betterFormat = new BetterFormat(Context, Context.Operation.Format, () => _input);
            Run           = _betterFormat.Valid;

            return(base.Operate(rows));
        }
        public FormatTransform(IContext context = null) : base(context, "string")
        {
            if (IsMissingContext() || context == null)
            {
                return;
            }

            _input    = MultipleInput();
            _template = context.Process.Templates.FirstOrDefault(t => t.Name == context.Operation.Format);

            if (_template == null)
            {
                _betterFormat = new BetterFormat(Context, Context.Operation.Format, () => _input);
            }
        }
 public FormatTransform(IContext context) : base(context, "string")
 {
     _betterFormat = new BetterFormat(context, context.Operation.Format, MultipleInput);
     Run           = _betterFormat.Valid;
 }