public AtivoHandler(IRepositoryBase <Ativo> repository, IHandlerBase handlerBase, IMapper mapper, IRepositoryBase <DistribuicaoPorAtivo> distribuicaoRepository) { _repository = repository; _handlerBase = handlerBase; _mapper = mapper; _distribuicaoRepository = distribuicaoRepository; }
public IHandlerSetup Add(string verb, IHandlerBase handler, string description = null, string usage = null, string group = null) { Assert.ArgumentNotNullOrEmpty(verb, nameof(verb)); Assert.ArgumentNotNull(handler, nameof(handler)); _instances.Add(verb, handler, description, usage, group); return(this); }
public UsuarioHandler(IMapper mapper, IRepositoryBase <Usuario> repository, IHandlerBase handlerBase, ICryptography cryptography) { _mapper = mapper; _repository = repository; _handlerBase = handlerBase; _cryptography = cryptography; }
public VerbInfo(string verb, IHandlerBase handlerObject, string description, string help, string group) { Verb = verb; HandlerObject = handlerObject; Description = description; Usage = help; Group = group; }
public DistribuicaoPorProdutoHandler(IMapper mapper, IRepositoryBase <DistribuicaoPorProduto> distribuicaoPorProdutoRepository, IAtivoEmCarteiraRepository AtivoEmCarteiraRepository, IHandlerBase handlerBase) { _mapper = mapper; _distribuicaoRepositorio = distribuicaoPorProdutoRepository; _AtivoEmCarteiraRepository = AtivoEmCarteiraRepository; _handlerBase = handlerBase; }
public void Add(string verb, IHandlerBase handlerObject, string description = null, string usage = null, string group = null) { verb = verb.ToLowerInvariant(); if (_verbs.ContainsKey(verb)) { throw new EngineBuildException("Cannot add verbs with duplicate names"); } var info = new VerbInfo(verb, handlerObject, description, usage, group); _verbs.Add(verb, info); }
public AtivoEmCarteiraHandler(IRepositoryBase <AtivoEmCarteira> repository, IHandlerBase handlerBase, IMapper mapper) { _repository = repository; _handlerBase = handlerBase; _mapper = mapper; }