public TestBase() { _container = new NinjectDependency(); CompositeRoot.SetUp(_container, LoggerConfig.Log4Net, RepositoryConfig.InMemory); repoEmpresa = _container.Get <IEmpresaRepository>(); reportEmpresa = _container.Get <IEmpresaReport>(); repoAtendimento = _container.Get <IAtendimentoRepository>(); reportAtendimento = _container.Get <IAtendimentoReport>(); repoCliente = _container.Get <IClienteRepository>(); reportCliente = _container.Get <IClienteReport>(); repoFuncionario = _container.Get <IFuncionarioRepository>(); reportFuncionario = _container.Get <IFuncionarioReport>(); repoServico = _container.Get <IServicoRepository>(); reportServico = _container.Get <IServicoReport>(); repoOrigem = _container.Get <IOrigemRepository>(); reportOrigem = _container.Get <IOrigemReport>(); repoProduto = _container.Get <IProdutoRepository>(); reportProduto = _container.Get <IProdutoReport>(); InicializarInMemory(); }
public ViewModelEmpresa(IMapper mapper, IEmpresaRepository IEmpresaRepository) { //Mapper _mapper = mapper; _IEmpresaRepository = IEmpresaRepository; // context=ctx; }
public UnitTest1() { _repository = new EmpresaRepository(); _service = new EmpresaService(_repository); _repositoryApp = new EmpresaRepositoryApp(_service); //_controller = new EmpresaController(_repositoryApp); }
public LoginController() { _administradorRepository = new AdministradorRepository(); _usuarioRepository = new UsuarioRepository(); _alunoRepository = new AlunoRepository(); _empresaRepository = new EmpresaRepository(); }
public FarmaciaService( ICategoriasRepository categorias, IFamiliaRepository familias, IVentasRepository ventas, IClientesRepository clientes, IFarmacosRepository farmacos, IPedidosRepository pedidos, IEncargosRepository encargos, IListaRepository listas, ISinonimosRepository sinonimos, IRecepcionRepository recepciones, IProveedorRepository proveedores, IEmpresaRepository empresas) { Categorias = categorias ?? throw new ArgumentNullException(nameof(categorias)); Familias = familias ?? throw new ArgumentNullException(nameof(familias)); Ventas = ventas ?? throw new ArgumentNullException(nameof(ventas)); Clientes = clientes ?? throw new ArgumentNullException(nameof(clientes)); Farmacos = farmacos ?? throw new ArgumentNullException(nameof(farmacos)); Pedidos = pedidos ?? throw new ArgumentNullException(nameof(pedidos)); Encargos = encargos ?? throw new ArgumentNullException(nameof(encargos)); Listas = listas ?? throw new ArgumentNullException(nameof(listas)); Sinonimos = sinonimos ?? throw new ArgumentNullException(nameof(sinonimos)); Recepciones = recepciones ?? throw new ArgumentNullException(nameof(recepciones)); Proveedores = proveedores ?? throw new ArgumentNullException(nameof(proveedores)); Empresas = empresas ?? throw new ArgumentNullException(nameof(empresas)); }
public ChamadoService(Notification notification, IChamadoRepository chamadoRepository, IEmpresaRepository empresaRepository, IClienteRepository clienteRepository) { _notification = notification; _chamadoRepository = chamadoRepository; _empresaRepository = empresaRepository; _clienteRepository = clienteRepository; }
public CnpjReader(IEmpresaRepository <Empresa> repo, string version = "") { Directory.CreateDirectory(BaseDir); Directory.CreateDirectory(BaseDirProcessed); EmpresaRepository = repo; this.CreateLayout(version); }
// [AllowAnonymous] public IActionResult Read([FromServices] IEmpresaRepository repository) { var id = new Guid(User.Identity.Name); var tarefas = repository.Read(id); return(Ok(tarefas)); }
public HorarioDeExpedienteController(PontoContext context, IHorarioDeExpedienteRepository horarioDeExpedienteRepository, IEmpresaRepository empresaRepository, IHorarioDeExpedienteService officeHoursService) : base(context, horarioDeExpedienteRepository, new HorarioDeExpedienteToHorarioDeExpedienteNovo(empresaRepository), new HorarioDeExpedienteToHorarioDeExpedienteEditar(empresaRepository)) { HorarioDeExpedienteRepository = horarioDeExpedienteRepository; EmpresaRepository = empresaRepository; _horarioDeExpedienteServico = officeHoursService; switch (Sessao.PerfilFuncionarioLogado) { case PerfilAcesso.Administrador: // Traz todos as Empresas ListaEmpresas = EmpresaRepository .Listar() .ToList() .Select(p => new SelectListItem() { Text = p.NomeFantasia, Value = p.Id.ToString() }); break; default: ListaEmpresas = EmpresaRepository .Listar() .Where(e => e.Id == Sessao.EmpresaLogada.Id) .ToList() .Select(p => new SelectListItem() { Text = p.NomeFantasia, Value = p.Id.ToString() }); break; } }
public EmpresaServices(IConsultaCnpjAwsApi consultaCnpjAwsApi, IEmpresaRepository empresaRepository, IUsuarioRepository usuarioRepository) : base(empresaRepository) { _consultaCnpjAwsApi = consultaCnpjAwsApi; _empresaRepository = empresaRepository; _usuarioRepository = usuarioRepository; }
public EmpresaController(IEstadoRepository estadoRepository, IPaisRepository paisRepository, IEmpresaRepository empresaRepository) { _estadoRepository = estadoRepository; _paisRepository = paisRepository; _empresaRepository = empresaRepository; }
public EmpresaService(IHttpContextAccessor httpContextAccessor, IEmpresaRepository empresaRepository, UserManager <AppIdentityUser> userManager) { _httpContextAccessor = httpContextAccessor; _empresaRepository = empresaRepository; _userManager = userManager; }
public TributarioController(ITributarioRepository tributarioRepository, IImovelRepository imovelRepository, IEmpresaRepository empresaRepository, IHostingEnvironment hostingEnvironment) { this.tributarioRepository = tributarioRepository; this.imovelRepository = imovelRepository; this.empresaRepository = empresaRepository; this.hostingEnvironment = hostingEnvironment; }
public UsersService(IUsersRepository usersRepository, IClienteRepository clienteRepository, IEmpresaRepository empresaRepository, IProductoPrecioDiaRepository productoPrecioDiaRepository) { _UsersRepository = usersRepository; _ClienteRepository = clienteRepository; _EmpresaRepository = empresaRepository; _ProductoPrecioDiaRepository = productoPrecioDiaRepository; }
public FiliaisController(IFilialRepository filialRepository, IEmpresaRepository empresaRepository, IPessoaJuridicaRepository pessoaJuridicaRepository, ApplicationContext contexto) { this.filialRepository = filialRepository; this.empresaRepository = empresaRepository; this.pessoaJuridicaRepository = pessoaJuridicaRepository; this.contexto = contexto; }
public IEmpresaRepository EmpresaRepository() { if (_empresaRepository == null) { _empresaRepository = new EmpresaRepository(_conn, _trans); } return(_empresaRepository); }
public DataService(ApplicationContext contexto, IBancoRepository bancoRepository, IEmpresaRepository EmpresaRepository ) { this.contexto = contexto; this.bancoRepository = bancoRepository; this.EmpresaRepository = EmpresaRepository; }
public IEmpresaRepository EmpresaRepository() { if (empresaRepository == null) { empresaRepository = new EmpresaRepository(_sqlConn, _sqlTrans); } return(empresaRepository); }
public ConversaoController(IEmpresaRepository <Empresa> empresaRepository, IGenericRepository <EmpresaAspNetUsers> empresaAspNetUsersRepository, IGenericRepository <ContaDePara> contadeparaRepository) { this.empresaRepository = empresaRepository; this.empresaAspNetUsersRepository = empresaAspNetUsersRepository; this.contadeparaRepository = contadeparaRepository; }
public CaminhaoController(IEmpresaRepository empRepository, ICaminhaoRepository camRepository, IRotaRepository rotRepository) { _empRepository = empRepository; _camRepository = camRepository; _rotRepository = rotRepository; }
public EmpresaController(IEmpresaRepository empresaRepository, IEmpresaConsulta consulta, IArmazenadorDeEmpresa armazenador, IExclusaoDeEmpresa exclusao, IMapper mapper) { _empresaRepository = empresaRepository; _consulta = consulta; _armazenador = armazenador; _exclusao = exclusao; _mapper = mapper; }
public EmpresasController(IEmpresaRepository empresaRepository , IConverterHelper converterHelper, DataContext dataContext) { this.empresaRepository = empresaRepository; _converterHelper = converterHelper; _dataContext = dataContext; }
public EmpresaCommandHandler(IEmpresaRepository customerRepository, IUnitOfWork uow, IMediatorHandler bus, INotificationHandler <DomainNotification> notifications) : base(uow, bus, notifications) { _empresaRepository = customerRepository; Bus = bus; }
public FornecedorCommandHandler(IUnitOfWork uow, IMediatorHandler mediator, INotificationHandler <DomainNotification> notifications, IEmpresaRepository empresaRepository) : base(uow, mediator, notifications) { _empresaRepository = empresaRepository; _mediator = mediator; }
public EmpresaController(EnvioDeEmail _envioDeEmail, Validations validacoes, IVagaRepository _vagarep, IEmpresaRepository _empresaRepository, UploadArchive _img, IUsuarioRepository _usuario) { this._envioDeEmail = _envioDeEmail; this.validacoes = validacoes; this._vagarep = _vagarep; this._empresaRepository = _empresaRepository; this._img = _img; this._usuario = _usuario; }
public EmpresaController(ILinhaRepository linhaRep, IEmpresaRepository empresaRep, IUnitOfWork uow ) { _linhaRep = linhaRep; _empresaRep = empresaRep; _uow = uow; }
public RegistroController(ILoginRepository loginRepository, IPrestadorRepository prestadorRepository, IEmpresaRepository empresaRepository, IConsumidorRepository consumidorRepository, IEnderecoRepository enderecoRepository) { _loginRepository = loginRepository; _empresaRepository = empresaRepository; _prestadorRepository = prestadorRepository; _consumidorRepository = consumidorRepository; _enderecoRepository = enderecoRepository; }
public EmpresaAppService ( IEmpresaRepository empresaRepository, IMapper mapper ) { _empresaRepository = empresaRepository; _mapper = mapper; }
public FuncionarioService(IFuncionarioRepository funcionarioRepository, IEmpresaRepository empresaRepository, IHorarioDeExpedienteRepository horarioDeExpedienteRepository, IPerfilDeAcessoRepository perfilDeAcessoRepository) { _funcionario = (Funcionario)System.Web.HttpContext.Current.Session["Funcionario"]; _funcionarioRepository = funcionarioRepository; _empresaRepository = empresaRepository; _horarioDeExpedienteRepository = horarioDeExpedienteRepository; _perfilDeAcessoRepository = perfilDeAcessoRepository; }
public TbVendasController( IVendasRepository vendasRepository, IEmpresaRepository empresaRepository, IUsuarioRepository usuarioRepository) { this.vendasRepository = vendasRepository; this.empresaRepository = empresaRepository; this.usuarioRepository = usuarioRepository; }
public EmpresaApplicationService(EmpresaRepository repository, IUnitOfWork unitOfWork) : base(unitOfWork) { this._repository = repository; }