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