public ProcessarPagamentoSteps(ScenarioContext scenarioContext)
 {
     _dbConnection     = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider).Open();
     _scenarioContext  = scenarioContext;
     _serviceProvider  = _serviceProvider = DepedencyInjectionTests.BuildServicesProvider(new ConfigurationBuilder().AddJsonFile($"appsettingsTests.json", true, true).AddEnvironmentVariables().Build(), _dbConnection);
     _pagamentoCommand = _serviceProvider.GetRequiredService <IPagamentoCommand>();
 }
コード例 #2
0
 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>();
 }
コード例 #3
0
 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>();
 }
コード例 #4
0
 public NaCriacaoDoPedidoSelecionarODroneSteps(ScenarioContext scenarioContext)
 {
     _dbConnection    = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider).Open();
     _scenarioContext = scenarioContext;
     _serviceProvider = DepedencyInjectionTests.BuildServicesProvider(new ConfigurationBuilder().AddJsonFile($"appsettingsTests.json", true, true).AddEnvironmentVariables().Build(), _dbConnection);
 }