Esempio n. 1
0
 public AtivoHandler(IRepositoryBase <Ativo> repository, IHandlerBase handlerBase, IMapper mapper, IRepositoryBase <DistribuicaoPorAtivo> distribuicaoRepository)
 {
     _repository             = repository;
     _handlerBase            = handlerBase;
     _mapper                 = mapper;
     _distribuicaoRepository = distribuicaoRepository;
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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;
 }
Esempio n. 5
0
 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);
        }
Esempio n. 7
0
 public AtivoEmCarteiraHandler(IRepositoryBase <AtivoEmCarteira> repository, IHandlerBase handlerBase, IMapper mapper)
 {
     _repository  = repository;
     _handlerBase = handlerBase;
     _mapper      = mapper;
 }