public CriandoOUsuarioSteps(ScenarioContext scenarioContext)
 {
     _dbConnection    = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider).Open();
     _scenarioContext = scenarioContext;
     //_usuariosRepository = new UsuariosRepository(_dbConnection);
     _serviceProvider = DepedencyInjectionTests.BuildServicesProvider(new ConfigurationBuilder().Build(), _dbConnection);
     _usuarioCommand  = _serviceProvider.GetRequiredService <IUsuarioCommand>();
 }
 public NaCriacaoDoPedidoSelecionarODroneSteps(ScenarioContext scenarioContext)
 {
     _dbConnection       = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider).Open();
     _scenarioContext    = scenarioContext;
     _serviceProvider    = _serviceProvider = DepedencyInjectionTests.BuildServicesProvider(new ConfigurationBuilder().Build(), _dbConnection);
     _pedidoCommand      = _serviceProvider.GetRequiredService <IPedidoCommand>();
     _usuariosRepository = _serviceProvider.GetRequiredService <IUsuariosRepository>();
 }