public async Task SetUpScope()
        {
            _scope             = AmbienteTestes.Factory.Services.CreateScope();
            _contextParaTestes = AmbienteTestes.Factory.Services.CreateScope().ServiceProvider
                                 .GetService <ImpostoRendaContext>();

            var configuration =
                (ConfigurationRoot)AmbienteTestes.Factory.Services.GetService(typeof(IConfiguration));
            var connectionString = configuration.GetConnectionString("ImpostoRendaDatabase");

            await _apagadorDeDados.Reset(connectionString);
        }
示例#2
0
 public HistoricoCalculoRepositorio(ImpostoRendaContext context)
 {
     _context = context;
 }
 public ContribuinteControllerDB(ImpostoRendaContext ctx)
 {
     _contexto = ctx;
 }