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>(); }
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>(); }
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); }