public EstabelecimentoController(IHttpContextAccessor httpContextAccessor, IA21EstabelecimentoRepositorio estabelecimentoRepositorio, IA20TipoEstabelecimentoRepositorio tipoEstabelecimentoRepositorio) { _httpContextAccessor = httpContextAccessor; _estabelecimentoRepositorio = estabelecimentoRepositorio; _tipoEstabelecimentoRepositorio = tipoEstabelecimentoRepositorio; _sessao = new Sessao(httpContextAccessor); }
public A20TipoEstabelecimentoTest() { var services = new ServiceCollection(); services.AddTransient <IA20TipoEstabelecimentoRepositorio, A20TipoEstabelecimentoRepositorio>(); services.AddEntityFrameworkSqlServer() .AddDbContext <GestaoSaudeContext>(options => options.UseSqlServer(A1UsuarioTest.connectionString, b => b.MigrationsAssembly("TCC.GestaoSaude.DataAccess"))); var serviceProvider = services.BuildServiceProvider(); _tipoEstabelecimentoRepositorio = serviceProvider.GetService <IA20TipoEstabelecimentoRepositorio>(); }
public A20TipoEstabelecimentoBusiness(IA20TipoEstabelecimentoRepositorio tipoEstabelecimentoRepositorio) { _tipoEstabelecimentoRepositorio = tipoEstabelecimentoRepositorio; }
public A21EstabelecimentoBusiness(IA21EstabelecimentoRepositorio estabelecimentoRepositorio, IA20TipoEstabelecimentoRepositorio tipoEstabelecimentoRepositorio) { _estabelecimentoRepositorio = estabelecimentoRepositorio; _tipoEstabelecimentoRepositorio = tipoEstabelecimentoRepositorio; }