public AlterarSistemaCommand(Guid idSistema, string nome, string descricao, ISistemaRepository sistema_repository) { IdSistema = idSistema; Nome = nome.ToUpper(); Descricao = descricao; _sistema_repository = sistema_repository; }
public GenericCommandResult AtualizarOrdem([FromBody] AtualizarOrdemSistemaCommand command, [FromServices] SistemaHandler handler, [FromServices] ISistemaRepository sistema_repository) { return((GenericCommandResult)handler.Handle(new AtualizarOrdemSistemaCommand(command.SistemasOrdem, sistema_repository))); }
public GenericCommandResult AtivarDesativar([FromBody] AtivarDesativarSistemaCommand command, [FromServices] SistemaHandler handler, [FromServices] ISistemaRepository sistema_repository) { return((GenericCommandResult)handler.Handle(new AtivarDesativarSistemaCommand(command.IdSistema, command.Ativo, sistema_repository))); }
public InspecaoController(IInspecaoRepository inspecao_repository, IMapper mapper, ISistemaRepository sistema_repository) { _inspecao_repository = inspecao_repository; _mapper = mapper; _sistema_repository = sistema_repository; }
//Construtor informando as dependências necessárias para o funcionamento. public ControleChamadoDomainService( ISistemaRepository sistemaRepository, IChamadoRepository chamadoRepository, IAnalistaRepository analistaRepository) { //Repasse da injeção. _sistemaRepository = sistemaRepository; _chamadoRepository = chamadoRepository; _analistaRepository = analistaRepository; }
public GenericCommandResult Alterar([FromBody] AtualizarSistemaCommand command, [FromServices] SistemaHandler handler, [FromServices] ISistemaRepository sistema_repository) { return((GenericCommandResult)handler.Handle(new AtualizarSistemaCommand( HttpContext.User.Identities.FirstOrDefault().Claims.FirstOrDefault(c => c.Type.Contains("user_id")).Value, command.Id, command.Nome, command.Descricao, command.Ativo, command.ItensSistema ))); }
public SistemaHandler(ISistemaRepository sistema_repository, IEstabelecimentoRepository estabelecimento_repository, ISistemaItemRepository sistema_item_repository, IUnidadeMedidaRepository unidade_medida_repository, IUsuarioRepository usuario_repository, IMapper mapper) { _sistema_repository = sistema_repository; _estabelecimento_repository = estabelecimento_repository; _sistema_item_repository = sistema_item_repository; _unidade_medida_repository = unidade_medida_repository; _usuario_repository = usuario_repository; _mapper = mapper; }
public CriarItemSistemaCommand(string nome, string descricao, Guid idUnidadeMedida, Guid idSistema, ISistemaRepository sistema_repository, IUnidadeMedidaRepository unidade_medida_repository) { Nome = nome.ToUpper(); Descricao = descricao; IdUnidadeMedida = idUnidadeMedida; IdSistema = idSistema; _sistema_repository = sistema_repository; _unidade_medida_repository = unidade_medida_repository; }
public GenericCommandResult CriarItemSistema([FromBody] CriarItemSistemaCommand command, [FromServices] SistemaHandler handler, [FromServices] ISistemaRepository sistema_repository, [FromServices] IUnidadeMedidaRepository unidade_medida_repository ) { return((GenericCommandResult)handler.Handle(new CriarItemSistemaCommand( command.Nome, command.Descricao, command.IdUnidadeMedida, command.IdSistema, sistema_repository, unidade_medida_repository ))); }
public InspecaoHandler(IInspecaoRepository inspecao_repository, IUsuarioRepository usuario_repository, IMapper mapper, IInspecaoStatusRepository inspecao_status_repository, ITurnoRepository turno_repository, ISistemaRepository sistema_repository, IInspecaoItemRepository inspecao_item_repository, ISistemaItemRepository sistema_item_repository) { _usuario_repository = usuario_repository; _inspecao_repository = inspecao_repository; _mapper = mapper; _inspecao_status_repository = inspecao_status_repository; _turno_repository = turno_repository; _sistema_repository = sistema_repository; _inspecao_item_repository = inspecao_item_repository; _sistema_item_repository = sistema_item_repository; }
public EstandarService( IEstandarRepository estandarRepository, IEventLogService eventLogService, IGrupoEstandarRepository grupoEstandarRepository, ICalificacionRepository calificacionRepository, ICategoriaRepository categoriaRepository, INivelRepository nivelRepository, IOpcionRepository opcionRepository, ISistemaRepository sistemaRepository, IClasificacionRepository clasificacionRepository) { _estandarRepository = estandarRepository; _eventLogService = eventLogService; _grupoEstandarRepository = grupoEstandarRepository; _calificacionRepository = calificacionRepository; _categoriaRepository = categoriaRepository; _nivelRepository = nivelRepository; _opcionRepository = opcionRepository; _sistemaRepository = sistemaRepository; _clasificacionRepository = clasificacionRepository; }
public AtivarDesativarSistemaCommand(Guid idSistema, bool ativo, ISistemaRepository sistema_repository) { IdSistema = idSistema; Ativo = ativo; _sistema_repository = sistema_repository; }
public SistemaController(ISistemaRepository sistemaRepository, IMapper mapper) { _sistemaRepository = sistemaRepository; _mapper = mapper; }
public SistemaController(ISistemaRepository contextDAO) { _contextDAO = contextDAO; }
public SistemaAppService(ISistemaRepository repo, IUnitOfWork uow) : base(uow) { _sistemaRepository = repo; }
public AtualizarOrdemSistemaCommand(List <SistemasOrdem> sistemasOrdem, ISistemaRepository sistema_repository) { SistemasOrdem = sistemasOrdem; _sistema_repository = sistema_repository; }
public SistemaService(ISistemaRepository sistemaRepository, IVariablesToken variables) { _sistemaRepository = sistemaRepository; _variables = variables; }
public SistemaController(ISistemaService sistemaService, ISistemaRepository sistemaRepository) { _sistemaService = sistemaService; _sistemaRepository = sistemaRepository; }
public SistemaService() { _repository = new SistemaRepository(new VisualTicketContext()); }