public EmailBackgroudService(
     IEmailSender emailService,
     IQueryDispatcherAsync queryDispatcher,
     IOptions <DailyEmailConfiguration> dailyEmailConfiguration)
 {
     this.emailService            = emailService;
     this.queryDispatcher         = queryDispatcher;
     this.dailyEmailConfiguration = dailyEmailConfiguration;
 }
 public AuthenticationService(IOptions <JwtOptions> jwtOptions,
                              IPasswordService passwordService,
                              IQueryDispatcherAsync queryDispatcher,
                              IKeyService keyService)
 {
     this.jwtOptions      = jwtOptions;
     this.passwordService = passwordService;
     this.queryDispatcher = queryDispatcher;
     this.keyService      = keyService;
 }
Esempio n. 3
0
 public Mediator(ICommandSenderAsync commandSenderAsync,
                 ICommandSender commandSender,
                 IEventPublisherAsync eventPublisherAsync,
                 IEventPublisher eventPublisher,
                 IQueryDispatcherAsync queryDispatcherAsync,
                 IQueryDispatcher queryDispatcher)
 {
     _commandSenderAsync   = commandSenderAsync;
     _commandSender        = commandSender;
     _eventPublisherAsync  = eventPublisherAsync;
     _eventPublisher       = eventPublisher;
     _queryDispatcherAsync = queryDispatcherAsync;
     _queryDispatcher      = queryDispatcher;
 }
Esempio n. 4
0
        public void SetUp()
        {
            _getSomething = new GetSomething();
            _something    = new Something();

            _queryHendler = new Mock <IQueryHandlerAsync <GetSomething, Something> >();
            _queryHendler
            .Setup(x => x.RetrieveAsync(_getSomething))
            .ReturnsAsync(_something);

            _resolver = new Mock <IResolver>();
            _resolver
            .Setup(x => x.Resolve <IQueryHandlerAsync <GetSomething, Something> >())
            .Returns(_queryHendler.Object);

            _sut = new QueryDispatcherAsync(_resolver.Object);
        }
 public CredentialTypeController(ICommandDispatcherAsync commandDispatcher,
                                 IQueryDispatcherAsync queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
Esempio n. 6
0
 public HouseholdController(ICommandDispatcherAsync commandDispatcher,
                            IQueryDispatcherAsync queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
 public AuthorizationController(ICommandDispatcherAsync commandDispatcher,
                                IQueryDispatcherAsync queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
 public SavingTypeController(ICommandDispatcherAsync commandDispatcher,
                             IQueryDispatcherAsync queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
 public CoachController(ICommandSenderAsync commandSender, IQueryDispatcherAsync queryDispatcher)
 {
     this.commandSender   = commandSender;
     this.queryDispatcher = queryDispatcher;
 }
Esempio n. 10
0
 public PermissionController(ICommandDispatcherAsync commandDispatcher,
                             IQueryDispatcherAsync queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
 public BaseController(ICommandDispatcherAsync commandDispatcher,
                       IQueryDispatcherAsync queryDispatcher)
 {
     _commandDispatcher = commandDispatcher;
     _queryDispatcher   = queryDispatcher;
 }