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 PagamentoController(IPagamentoCommand pagamentoCommand) { _pagamentoCommand = pagamentoCommand; }