public LancamentosFinanceirosStepDefinition( ScenarioContext world, FluxoDeCaixaDbContext db, IServiceScopeFactory scopeFactory, IObjectContainer container) { this.world = world; this.db = db; var scope = scopeFactory.CreateScope(); var unitOfWork = scope.ServiceProvider.GetRequiredService <IUnitOfWork>(); mediatorMock = new Mock <IMediator>(); repositorioDeContas = scope.ServiceProvider.GetRequiredService <IRepositorioDeContas>(); sut = new ProcessadorDeLancamentos( unitOfWork, mediatorMock.Object, repositorioDeContas ); world.Add("hoje", DateTime.Now.Date); }
public ContasDbService(FluxoDeCaixaDbContext db) { this.db = db; }