示例#1
0
        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);
        }
示例#2
0
 public ContasDbService(FluxoDeCaixaDbContext db)
 {
     this.db = db;
 }