public void Init()
        {
            _readerStub     = Substitute.For <IDbReader>();
            _serviceCommand = Substitute.For <IDoesResultExistCommand>();
            _serviceManager = Substitute.For <IDbManager>();

            _serviceManager.ExecuteReader(Arg.Any <IDbCommand>()).Returns(_readerStub);
        }
Exemplo n.º 2
0
 public bool ExecuteCommand(IDoesResultExistCommand command)
 => _dbInvokerFactory.Create(command).Invoke(_dbManager);
Exemplo n.º 3
0
 public IDoesResultExistCommandInvoker Create(IDoesResultExistCommand serviceCommand)
 => new DoesResultExistCommandInvoker(serviceCommand);