public override IEnumerable <CellResult> Execute(StepValues values, ISpecContext context)
        {
            var runner = context.Service <CommandRunner>();
            var cmd    = runner.NewCommand();

            cmd.CommandText = _sql;
            cmd.CommandType = _commandType;

            foreach (var parameter in Parameters)
            {
                parameter.AddParameter(cmd, values);
            }

            Execution.Execute(cmd, runner, values, context);

            return(Parameters.Where(x => x.IsChecked()).Select(x => x.ToResult(values, cmd)));
        }
Example #2
0
 public TService Service <TService>()
 {
     return(_specContext.Service <TService>());
 }