public void Init()
        {
            _fakeReader     = Substitute.For <IDbReader>();
            _serviceManager = Substitute.For <IDbManager>();
            _serviceCommand = Substitute.For <IManyResultsCommand <string> >();

            _serviceManager.ExecuteReader(Arg.Any <IDbCommand>()).Returns(_fakeReader);
        }
 internal ManyResultsCommandInvoker(IManyResultsCommand <TResult> command)
     : base(command)
 {
 }
Exemplo n.º 3
0
 public IEnumerable <TResult> ExecuteCommand <TResult>(IManyResultsCommand <TResult> command)
 => _dbInvokerFactory.Create(command).Invoke(_dbManager);
Exemplo n.º 4
0
 public IManyResultCommandInvoker <TResult> Create <TResult>(IManyResultsCommand <TResult> serviceCommand)
 => new ManyResultsCommandInvoker <TResult>(serviceCommand);