public AlterarOcorrenciaCommandHandler(IRepositorioOcorrencia repositorioOcorrencia, IRepositorioOcorrenciaTipo repositorioOcorrenciaTipo,
                                        IRepositorioOcorrenciaAluno repositorioOcorrenciaAluno, IUnitOfWork unitOfWork)
 {
     this.repositorioOcorrencia      = repositorioOcorrencia ?? throw new ArgumentNullException(nameof(repositorioOcorrencia));
     this.repositorioOcorrenciaTipo  = repositorioOcorrenciaTipo ?? throw new ArgumentNullException(nameof(repositorioOcorrenciaTipo));;
     this.repositorioOcorrenciaAluno = repositorioOcorrenciaAluno ?? throw new ArgumentNullException(nameof(repositorioOcorrenciaAluno));;
     this.unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));;
 }
 public ObterOcorrenciaPorIdQueryHandler(IRepositorioOcorrencia repositorioOcorrencia, IMediator mediator,
                                         IRepositorioOcorrenciaAluno repositorioOcorrenciaAluno,
                                         IRepositorioOcorrenciaTipo repositorioOcorrenciaTipo)
 {
     this.repositorioOcorrencia = repositorioOcorrencia ?? throw new ArgumentNullException(nameof(repositorioOcorrencia));
     this.mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this.repositorioOcorrenciaAluno = repositorioOcorrenciaAluno ?? throw new ArgumentNullException(nameof(repositorioOcorrenciaAluno));
     this.repositorioOcorrenciaTipo  = repositorioOcorrenciaTipo ?? throw new ArgumentNullException(nameof(repositorioOcorrenciaTipo));
 }
Exemple #3
0
 public InserirOcorrenciaCommandHandler(IRepositorioOcorrencia repositorioOcorrencia, IRepositorioOcorrenciaTipo repositorioOcorrenciaTipo,
                                        IRepositorioOcorrenciaAluno repositorioOcorrenciaAluno, IMediator mediator, IUnitOfWork unitOfWork)
 {
     this.repositorioOcorrencia      = repositorioOcorrencia ?? throw new ArgumentNullException(nameof(repositorioOcorrencia));
     this.repositorioOcorrenciaTipo  = repositorioOcorrenciaTipo ?? throw new ArgumentNullException(nameof(repositorioOcorrenciaTipo));
     this.repositorioOcorrenciaAluno = repositorioOcorrenciaAluno ?? throw new ArgumentNullException(nameof(repositorioOcorrenciaAluno));
     this.mediator   = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this.unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
 public ListarTiposOcorrenciaQueryHandler(IRepositorioOcorrenciaTipo repositorioOcorrenciaTipo)
 {
     this.repositorioOcorrenciaTipo = repositorioOcorrenciaTipo ?? throw new System.ArgumentNullException(nameof(repositorioOcorrenciaTipo));
 }