public RemoverProcessoCommandValidator(IProcessoRepository processoRepository, INotificationContext notificationContext) : base(notificationContext) { this.processoRepository = processoRepository; this.RuleFor(p => p.Id).NotEmpty().WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Id: {ErrorMessages.ErroVazio}"); }
public CriarProcessoCommandValidator( IProcessoRepository processoRepository, ISituacaoProcessoRepository situacaoProcessoRepository, IResponsavelRepository responsavelRepository, IProcessoDomainService processoDomainService, INotificationContext notificationContext) : base(notificationContext) { this.processoRepository = processoRepository; this.situacaoProcessoRepository = situacaoProcessoRepository; this.responsavelRepository = responsavelRepository; this.processoDomainService = processoDomainService; this.RuleFor(p => p.NumeroProcesso) .NotEmpty().WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Número Processo: {ErrorMessages.ErroVazio}") .MaximumLength(20).WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Número Processo: {string.Format(ErrorMessages.ErroTamanhoMaximo, 20)}"); this.RuleFor(p => p.DataDistribuicao) .LessThanOrEqualTo(DateTimeOffset.Now).WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Data Distribuição: {string.Format(ErrorMessages.ErroDataDeveSerAnterior, DateTimeOffset.Now.Date.ToString())}"); this.RuleFor(p => p.PastaFisicaCliente) .MaximumLength(50).WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Pasta Física Cliente: {string.Format(ErrorMessages.ErroTamanhoMaximo, 50)}"); this.RuleFor(p => p.Descricao) .MaximumLength(1000).WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Descrição: {string.Format(ErrorMessages.ErroTamanhoMaximo, 1000)}"); this.RuleFor(p => p.SituacaoProcessoId) .NotEmpty().WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Situação Processo: {ErrorMessages.ErroVazio}"); this.RuleFor(p => p.ResponsaveisIds) .NotEmpty().WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Responsável: {ErrorMessages.ErroVazio}") .Must(r => r.Count >= 1 && r.Count <= 3).When(r => r.ResponsaveisIds != null, ApplyConditionTo.CurrentValidator).WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Quantidade Responsável: {string.Format(ErrorMessages.ErroQuantidadeResponsavel, 1, 3)}") .Must(r => r.Distinct().Count() == r.Count).When(r => r.ResponsaveisIds != null, ApplyConditionTo.CurrentValidator).WithErrorCode(NotificationKeys.InvalidArgument).WithMessage($"Responsável: {ErrorMessages.ResponsavelRepetido}"); }
public ChangeProcessoCommandHandler(IProcessoRepository processoRepository, IResponsavelRepository responsavelRepository, ISituacaoRepository situacaoRepository) { _processoRepository = processoRepository; _responsavelRepository = responsavelRepository; _situacaoRepository = situacaoRepository; }
public ProcessoCriadoEventHandler( IProcessoRepository processoRepository, IEmailService emailService, ILogger <ProcessoCriadoEventHandler> logger) { this.processoRepository = processoRepository; this.emailService = emailService; this.logger = logger; }
public ObterProcessoQueryHandler( IProcessoRepository processoRepository, INotificationContext notificationContext, IObterProcessoQueryValidator validator, ILogger <ObterProcessoQueryHandler> logger) : base(notificationContext, validator) { this.processoRepository = processoRepository; this.logger = logger; }
public RemoverProcessoCommandHandler( IProcessoRepository processoRepository, INotificationContext notificationContext, IRemoverProcessoCommandValidator validator, IUnitOfWork unitOfWork, ILogger <RemoverProcessoCommandHandler> logger) : base(notificationContext, validator) { this.processoRepository = processoRepository; this.unitOfWork = unitOfWork; this.logger = logger; }
public ProcessoService(IProcessoMovimentoRepository processoMovimentoRepository, IProcessoRepository processoRepository, IPessoaRepository pessoaRepository, IMovimentoRepository movimentoRepository, ProcessoSettings processoSettings) { _processoMovimentoRepository = processoMovimentoRepository; _processoRepository = processoRepository; _pessoaRepository = pessoaRepository; _movimentoRepository = movimentoRepository; _processoSettings = processoSettings; }
public ProcessoAtualizadoEventHandler( IProcessoRepository processoRepository, IEmailService emailService, IEmailMessageBuilder emailMessageBuilder, ILogger <ProcessoAtualizadoEventHandler> logger) { this.processoRepository = processoRepository; this.emailService = emailService; this.emailMessageBuilder = emailMessageBuilder; this.logger = logger; }
public CriarProcessoCommandHandler( IProcessoRepository processoRepository, IResponsavelRepository responsavelRepository, ICriarProcessoCommandValidator commandValidator, INotificationContext notificationContext, IUnitOfWork unitOfWork, ILogger <CriarProcessoCommandHandler> logger) : base(notificationContext, commandValidator) { this.processoRepository = processoRepository; this.responsavelRepository = responsavelRepository; this.unitOfWork = unitOfWork; this.logger = logger; }
public MovimentarController(IProcessoRepository processoRepository, IProcessoService processoService) { _processoRepository = processoRepository; _processoService = processoService; }
public RemoveProcessoCommandHandler(IProcessoRepository repository) { _repository = repository; }
public ProcessoCreatedUniqueCodigoProcessoUnificadoDomainEventHandler(IProcessoRepository repository) : base(repository) { }
public ProcessoService(IRepository <Processo> repository, IProcessoRepository processosRepository, IMapper mapper) { _repository = repository; _processosRepository = processosRepository; _mapper = mapper; }
public ProcessoController(IProcessoRepository processoRep) { this.processoRep = processoRep; }
public ProcessoNumeroProcessoUnificadoUniqueValidationDomainEventHandler(IProcessoRepository repository) { _repository = repository; }
public ProcessoChangedParentValidationDomainEventHandler(IProcessoRepository repository, IProcessoHierarchyRepository hierarchyRepository) : base(repository, hierarchyRepository) { }
public CasosTeste() { _container.RegisterType <IProcessoRepository, ProcessoRepository>(); _processoRepository = _container.Resolve <IProcessoRepository>(); }
public ProcessoService(IProcessoRepository repository) : base(repository) { _repository = repository; }
public ListProcessoQuery(IProcessoRepository processoRepository, INumeroProcessoCondition numeroProcessoCondition) { _processoRepository = processoRepository; _numeroProcessoCondition = numeroProcessoCondition; }
public ProcessoService(IProcessoRepository processoRepository) { _processoRepository = processoRepository; }
public DashboardController(IProcessoRepository processoRepository) { _processoRepository = processoRepository; }
public ProcessoService(IProcessoRepository repository, IInfracaoRepository infracaoRepository) : base(repository) { this.repository = repository; this.infracaoRepository = infracaoRepository; }
public ProcessoService(IProcessoRepository processoRepository) : base(processoRepository) { }
public ProcessoController(IProcessoRepository repository) { _repository = repository; }
public ProcessoParentValidationDomainEventHandler(IProcessoRepository repository, IProcessoHierarchyRepository hierarchyRepository) { _repository = repository; _hierarchyRepository = hierarchyRepository; }
public HistoricoController(IProcessoRepository processoRepository) { _processoRepository = processoRepository; }
public ProcessoRemovedDontHaveChildDomainEventHandler(IProcessoRepository repository) { _repository = repository; }
public ProcessoDomainService(IProcessoRepository processoRepository) { this.processoRepository = processoRepository; }