Exemple #1
0
 public ComandosUsuario(IRepositorioUsuario repositorioUsuario,
                        IServicoAutenticacao servicoAutenticacao,
                        IServicoUsuario servicoUsuario,
                        IServicoPerfil servicoPerfil,
                        IServicoEol servicoEOL,
                        IServicoTokenJwt servicoTokenJwt,
                        IServicoEmail servicoEmail,
                        IConfiguration configuration,
                        IRepositorioCache repositorioCache,
                        IServicoAbrangencia servicoAbrangencia,
                        IRepositorioAtribuicaoEsporadica repositorioAtribuicaoEsporadica,
                        IRepositorioAtribuicaoCJ repositorioAtribuicaoCJ,
                        IRepositorioHistoricoEmailUsuario repositorioHistoricoEmailUsuario)
 {
     this.repositorioUsuario               = repositorioUsuario ?? throw new ArgumentNullException(nameof(repositorioUsuario));
     this.servicoAutenticacao              = servicoAutenticacao ?? throw new ArgumentNullException(nameof(servicoAutenticacao));
     this.servicoUsuario                   = servicoUsuario ?? throw new ArgumentNullException(nameof(servicoUsuario));
     this.servicoPerfil                    = servicoPerfil ?? throw new ArgumentNullException(nameof(servicoPerfil));
     this.servicoEOL                       = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.servicoTokenJwt                  = servicoTokenJwt ?? throw new ArgumentNullException(nameof(servicoTokenJwt));
     this.servicoAbrangencia               = servicoAbrangencia ?? throw new ArgumentNullException(nameof(servicoAbrangencia));
     this.repositorioAtribuicaoEsporadica  = repositorioAtribuicaoEsporadica ?? throw new ArgumentNullException(nameof(repositorioAtribuicaoEsporadica));
     this.repositorioAtribuicaoCJ          = repositorioAtribuicaoCJ ?? throw new ArgumentNullException(nameof(repositorioAtribuicaoCJ));
     this.repositorioHistoricoEmailUsuario = repositorioHistoricoEmailUsuario ?? throw new ArgumentNullException(nameof(repositorioHistoricoEmailUsuario));
     this.servicoEmail                     = servicoEmail ?? throw new ArgumentNullException(nameof(servicoEmail));
     this.configuration                    = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.repositorioCache                 = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
 }
Exemple #2
0
        public ComandosUsuario(IRepositorioUsuario repositorioUsuario,
            IServicoAutenticacao servicoAutenticacao,
            IServicoUsuario servicoUsuario,
            IServicoPerfil servicoPerfil,
            IServicoEOL servicoEOL,
            IServicoTokenJwt servicoTokenJwt,
            IServicoEmail servicoEmail,
            IConfiguration configuration,
            IRepositorioCache repositorioCache,
            IServicoAbrangencia servicoAbrangencia)
        {
            this.repositorioUsuario = repositorioUsuario ??
                throw new System.ArgumentNullException(nameof(repositorioUsuario));
            this.servicoAutenticacao = servicoAutenticacao ??
                throw new System.ArgumentNullException(nameof(servicoAutenticacao));
            this.servicoUsuario = servicoUsuario ??
                throw new System.ArgumentNullException(nameof(servicoUsuario));
            this.servicoPerfil = servicoPerfil ??
                throw new System.ArgumentNullException(nameof(servicoPerfil));
            this.servicoEOL = servicoEOL ??
                throw new System.ArgumentNullException(nameof(servicoEOL));
            this.servicoTokenJwt = servicoTokenJwt ??
                throw new System.ArgumentNullException(nameof(servicoTokenJwt));
            this.servicoAbrangencia = servicoAbrangencia ??
                throw new System.ArgumentNullException(nameof(servicoAbrangencia));

            this.servicoEmail = servicoEmail ?? throw new ArgumentNullException(nameof(servicoEmail));
            this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
            this.repositorioCache = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
        }
Exemple #3
0
 public ConsultasDisciplina(IServicoEol servicoEOL,
                            IRepositorioCache repositorioCache,
                            IConsultasObjetivoAprendizagem consultasObjetivoAprendizagem,
                            IServicoUsuario servicoUsuario,
                            IRepositorioComponenteCurricularJurema repositorioComponenteCurricularJurema,
                            IRepositorioAtribuicaoCJ repositorioAtribuicaoCJ,
                            IRepositorioComponenteCurricular repositorioComponenteCurricular,
                            IRepositorioTurma repositorioTurma, IMediator mediator) : base(mediator)
 {
     this.servicoEOL = servicoEOL ??
                       throw new System.ArgumentNullException(nameof(servicoEOL));
     this.repositorioCache = repositorioCache ??
                             throw new System.ArgumentNullException(nameof(repositorioCache));
     this.consultasObjetivoAprendizagem = consultasObjetivoAprendizagem ??
                                          throw new System.ArgumentNullException(nameof(consultasObjetivoAprendizagem));
     this.servicoUsuario = servicoUsuario ??
                           throw new System.ArgumentNullException(nameof(servicoUsuario));
     this.repositorioAtribuicaoCJ = repositorioAtribuicaoCJ ??
                                    throw new System.ArgumentNullException(nameof(repositorioAtribuicaoCJ));
     this.repositorioComponenteCurricular = repositorioComponenteCurricular ??
                                            throw new System.ArgumentNullException(nameof(repositorioComponenteCurricular));
     this.repositorioComponenteCurricularJurema = repositorioComponenteCurricularJurema ??
                                                  throw new System.ArgumentNullException(nameof(repositorioComponenteCurricularJurema));
     this.repositorioTurma = repositorioTurma ??
                             throw new System.ArgumentNullException(nameof(repositorioTurma));
 }
 public ServicoTokenJwt(IConfiguration configuration,
                        IHttpContextAccessor httpContextAccessor,
                        IRepositorioCache cache)
 {
     this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this.cache = cache ?? throw new ArgumentNullException(nameof(cache));
 }
Exemple #5
0
 public ObterUsuarioLogadoQueryHandler(IContextoAplicacao contextoAplicacao, IRepositorioUsuario repositorioUsuario,
                                       IRepositorioCache repositorioCache, IServicoEol servicoEOL, IRepositorioPrioridadePerfil repositorioPrioridadePerfil)
 {
     this.contextoAplicacao           = contextoAplicacao ?? throw new ArgumentNullException(nameof(contextoAplicacao));
     this.repositorioUsuario          = repositorioUsuario ?? throw new ArgumentNullException(nameof(repositorioUsuario));
     this.repositorioCache            = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
     this.servicoEOL                  = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.repositorioPrioridadePerfil = repositorioPrioridadePerfil ?? throw new ArgumentNullException(nameof(repositorioPrioridadePerfil));
 }
 public ComandosAtribuicaoCJ(IRepositorioAtribuicaoCJ repositorioAtribuicaoCJ, IServicoAtribuicaoCJ servicoAtribuicaoCJ,
                             IServicoEOL servicoEOL, IServicoUsuario servicoUsuario, IRepositorioCache repositorioCache)
 {
     this.repositorioAtribuicaoCJ = repositorioAtribuicaoCJ ?? throw new ArgumentNullException(nameof(repositorioAtribuicaoCJ));
     this.servicoAtribuicaoCJ     = servicoAtribuicaoCJ ?? throw new ArgumentNullException(nameof(servicoAtribuicaoCJ));
     this.servicoEOL       = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.servicoUsuario   = servicoUsuario ?? throw new ArgumentNullException(nameof(servicoUsuario));
     this.repositorioCache = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
 }
 public ServicoObjetivosAprendizagem(IServicoJurema servicoJurema,
                                     IRepositorioObjetivoAprendizagem repositorioObjetivoAprendizagem,
                                     IRepositorioParametrosSistema repositorioParametrosSistema,
                                     IRepositorioCache repositorioCache)
 {
     this.servicoJurema = servicoJurema ?? throw new ArgumentNullException(nameof(servicoJurema));
     this.repositorioObjetivoAprendizagem = repositorioObjetivoAprendizagem ?? throw new ArgumentNullException(nameof(repositorioObjetivoAprendizagem));
     this.repositorioParametrosSistema    = repositorioParametrosSistema ?? throw new ArgumentNullException(nameof(repositorioParametrosSistema));
     this.repositorioCache = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
 }
Exemple #8
0
 public ConsultasObjetivoAprendizagem(IServicoJurema servicoJurema,
                                      IRepositorioCache repositorioCache,
                                      IRepositorioComponenteCurricular repositorioComponenteCurricular,
                                      IConfiguration configuration)
 {
     this.servicoJurema    = servicoJurema ?? throw new ArgumentNullException(nameof(servicoJurema));
     this.repositorioCache = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
     this.repositorioComponenteCurricular = repositorioComponenteCurricular ?? throw new ArgumentNullException(nameof(repositorioComponenteCurricular));
     this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
Exemple #9
0
 public ConsultasDisciplina(IServicoEOL servicoEOL,
                            IRepositorioCache repositorioCache,
                            IConsultasObjetivoAprendizagem consultasObjetivoAprendizagem,
                            IServicoUsuario servicoUsuario)
 {
     this.servicoEOL       = servicoEOL ?? throw new System.ArgumentNullException(nameof(servicoEOL));
     this.repositorioCache = repositorioCache ?? throw new System.ArgumentNullException(nameof(repositorioCache));
     this.consultasObjetivoAprendizagem = consultasObjetivoAprendizagem ?? throw new System.ArgumentNullException(nameof(consultasObjetivoAprendizagem));
     this.servicoUsuario = servicoUsuario ?? throw new System.ArgumentNullException(nameof(servicoUsuario));
 }
Exemple #10
0
 public ServicoUsuario(IRepositorioUsuario repositorioUsuario,
                       IServicoEOL servicoEOL,
                       IRepositorioPrioridadePerfil repositorioPrioridadePerfil,
                       IUnitOfWork unitOfWork,
                       IHttpContextAccessor httpContextAccessor,
                       IRepositorioCache repositorioCache)
 {
     this.repositorioUsuario          = repositorioUsuario ?? throw new ArgumentNullException(nameof(repositorioUsuario));
     this.servicoEOL                  = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.repositorioPrioridadePerfil = repositorioPrioridadePerfil;
     this.unitOfWork                  = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.httpContextAccessor         = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this.repositorioCache            = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
 }
 public ServicoUsuario(IRepositorioUsuario repositorioUsuario,
                       IServicoEOL servicoEOL,
                       IRepositorioPrioridadePerfil repositorioPrioridadePerfil,
                       IUnitOfWork unitOfWork,
                       IContextoAplicacao contextoAplicacao,
                       IRepositorioCache repositorioCache,
                       IRepositorioAtribuicaoCJ repositorioAtribuicaoCJ)
 {
     this.repositorioUsuario          = repositorioUsuario ?? throw new ArgumentNullException(nameof(repositorioUsuario));
     this.servicoEOL                  = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.repositorioPrioridadePerfil = repositorioPrioridadePerfil;
     this.unitOfWork                  = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.contextoAplicacao           = contextoAplicacao ?? throw new ArgumentNullException(nameof(contextoAplicacao));
     this.repositorioCache            = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
     this.repositorioAtribuicaoCJ     = repositorioAtribuicaoCJ ?? throw new ArgumentNullException(nameof(repositorioAtribuicaoCJ));
 }
 public ConsultasObjetivoAprendizagem(IServicoJurema servicoJurema,
                                      IRepositorioCache repositorioCache,
                                      IRepositorioComponenteCurricularJurema repositorioComponenteCurricular,
                                      IRepositorioObjetivoAprendizagemPlano repositorioObjetivosPlano,
                                      IConfiguration configuration,
                                      IServicoUsuario servicoUsuario,
                                      IConsultasPeriodoEscolar consultasPeriodoEscolar,
                                      IConsultasTurma consultasTurma,
                                      IRepositorioObjetivoAprendizagem repositorioObjetivoAprendizagem,
                                      IServicoEol servicoEol)
 {
     this.servicoJurema    = servicoJurema ?? throw new ArgumentNullException(nameof(servicoJurema));
     this.repositorioCache = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
     this.repositorioComponenteCurricular = repositorioComponenteCurricular ?? throw new ArgumentNullException(nameof(repositorioComponenteCurricular));
     this.configuration                   = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.servicoUsuario                  = servicoUsuario ?? throw new ArgumentNullException(nameof(servicoUsuario));
     this.consultasPeriodoEscolar         = consultasPeriodoEscolar ?? throw new ArgumentNullException(nameof(consultasPeriodoEscolar));
     this.consultasTurma                  = consultasTurma ?? throw new ArgumentNullException(nameof(consultasTurma));
     this.repositorioObjetivoAprendizagem = repositorioObjetivoAprendizagem ?? throw new ArgumentNullException(nameof(repositorioObjetivoAprendizagem));
     this.repositorioObjetivosPlano       = repositorioObjetivosPlano ?? throw new ArgumentNullException(nameof(repositorioObjetivosPlano));
     this.servicoEol = servicoEol ?? throw new ArgumentNullException(nameof(servicoEol));
 }
 public ObterMotivosAusenciaQueryHandler(IRepositorioCache repositorioCache, IRepositorioMotivoAusencia repositorioMotivoAusencia)
 {
     this.repositorioCache          = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
     this.repositorioMotivoAusencia = repositorioMotivoAusencia ?? throw new ArgumentNullException(nameof(repositorioMotivoAusencia));
 }
 public ConsultasProfessor(IServicoEol servicoEOL, IRepositorioCache repositorioCache, IMediator mediator) : base(mediator)
 {
     this.servicoEOL       = servicoEOL ?? throw new System.ArgumentNullException(nameof(servicoEOL));
     this.repositorioCache = repositorioCache ?? throw new System.ArgumentNullException(nameof(repositorioCache));
 }
Exemple #15
0
 public ServicoEOL(HttpClient httpClient, IRepositorioCache cache, IServicoLog servicoLog)
 {
     this.httpClient = httpClient;
     this.servicoLog = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.cache      = cache;
 }
 public RedisTesteController(IRepositorioCache repositorioCache)
 {
     this.repositorioCache = repositorioCache;
 }
 public ObterAlunosPorTurmaQueryHandler(IHttpClientFactory httpClientFactory, IRepositorioCache repositorioCache)
 {
     this.httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     this.repositorioCache  = repositorioCache;
 }
Exemple #18
0
 public ObterUltimaVersaoQueryHandler(IServicoGithub servicoGithub, IRepositorioCache repositorioCache)
 {
     this.servicoGithub    = servicoGithub ?? throw new ArgumentNullException(nameof(servicoGithub));
     this.repositorioCache = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
 }