public DefinirPalestranteCommandValidator(IPalestraRepository repository) { RuleFor(x => x.PalestraId) .NotEmpty() .MustAsync(async(id, cancellationToken) => await repository.Exists(id)) .WithMessage(Messages.IdNotFound); }
public ParticiparPalestraCommandHandler(IPalestraRepository palestraRepository, IFuncionarioRepository funcionarioRepository, IUnitOfWork unitOfWork) { _palestraRepository = palestraRepository; _funcionarioRepository = funcionarioRepository; _unitOfWork = unitOfWork; }
public ParticipacaoAdicionadaNotificationHandler(IPalestraRepository palestraRepository, IFuncionarioRepository funcionarioRepository, IEmailSender emailSender) { _palestraRepository = palestraRepository; _funcionarioRepository = funcionarioRepository; _emailSender = emailSender; }
public PalestraCommandHandler(IPalestraRepository palestraRepository, IUnitOfWork uow, IMediatorHandler bus, INotificationHandler <DomainNotification> notifications) : base(uow, bus, notifications) { _palestraRepository = palestraRepository; Bus = bus; }
public CriarPalestraCommandHandler(IColisaoLocalPalestraChecker colisaoLocalChecker, IPalestraRepository repository, IUnitOfWork unitOfWork, ILembreteOrganizadorScheduler lembreteOrganizadorScheduler) { _colisaoLocalChecker = colisaoLocalChecker; _repository = repository; _unitOfWork = unitOfWork; _lembreteOrganizadorScheduler = lembreteOrganizadorScheduler; }
public PalestrasController(IDomainNotificationHandler <DomainNotification> notifications, IUser user, IPalestraRepository palestraRepository, IMapper mapper, IBus bus) : base(notifications, user, bus) { _palestraRepository = palestraRepository; _mapper = mapper; _bus = bus; }
public PalestraAppService(IMapper mapper, IPalestraRepository palestraRepository, IMediatorHandler bus, IEventStoreRepository eventStoreRepository) { _mapper = mapper; _palestraRepository = palestraRepository; Bus = bus; _eventStoreRepository = eventStoreRepository; }
public DefinirPalestranteCommandHandler(IPalestraRepository repository, IUnitOfWork unitOfWork) { _repository = repository; _unitOfWork = unitOfWork; }
public PalestrasController(IPalestraRepository palestraRepo) { _palestraRepositorio = palestraRepo; }
public ColisaoLocalPalestraChecker(IPalestraRepository repository) { _repository = repository; }