Esempio n. 1
0
        public void Init()
        {
            _readerStub     = Substitute.For <IDbReader>();
            _serviceManager = Substitute.For <IDbManager>();
            _serviceCommand = Substitute.For <ISingleResultOrDefaultCommand <string> >();

            _serviceManager.ExecuteReader(Arg.Any <IDbCommand>()).Returns(_readerStub);
        }
 internal SingleResultOrDefaultCommandInvoker(ISingleResultOrDefaultCommand <TResult> command)
     : base(command)
 {
 }
Esempio n. 3
0
 public TResult ExecuteCommand <TResult>(ISingleResultOrDefaultCommand <TResult> command)
 => _dbInvokerFactory.Create(command).Invoke(_dbManager);
 public ISingleResultOrDefaultCommandInvoker <TResult> Create <TResult>(ISingleResultOrDefaultCommand <TResult> serviceCommand)
 => new SingleResultOrDefaultCommandInvoker <TResult>(serviceCommand);