public DrinkEventHandlingService(
     IUserRepository userRepository,
     IDrinkEventRepository drinkEventRepository,
     UserStatisticUpdateService rankingService,
     ITranslationService translationService,
     IActivityRepository activityRepository,
     PushNotificationService pushNotificationService,
     ILogger <DrinkEventHandlingService> logger)
 {
     this.userRepository          = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this.drinkEventRepository    = drinkEventRepository ?? throw new ArgumentNullException(nameof(drinkEventRepository));
     this.rankingService          = rankingService ?? throw new ArgumentNullException(nameof(rankingService));
     this.translationService      = translationService ?? throw new ArgumentNullException(nameof(translationService));
     this.activityRepository      = activityRepository ?? throw new ArgumentNullException(nameof(activityRepository));
     this.pushNotificationService = pushNotificationService ?? throw new ArgumentNullException(nameof(pushNotificationService));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
        public AcceptInvitationCommandHandler(
            IInvitationRepository invitationRepository,
            IUserRepository userRepository,
            INotificationService notificationService,
            IActivityRepository activityRepository,
            ITranslationService translationService,
            UserStatisticUpdateService rankingService,
            ILogger <AcceptInvitationCommandHandler> logger)
        {
            this.invitationRepository = invitationRepository;
            this.userRepository       = userRepository;
            this.notificationService  = notificationService;
            this.activityRepository   = activityRepository;
            this.translationService   = translationService;
            this.rankingService       = rankingService;

            this.logger = logger;
        }
Beispiel #3
0
 public ActivityAddedService(
     IAddressDecodingService utilityService,
     IActivityRepository activityRepository,
     IUserRepository userRepository,
     INotificationService notificationService,
     IMonitoringRepository monitoringRepository,
     UserStatisticUpdateService rankingService,
     ActivityDistributionService activityDistributionService,
     DrinkEventHandlingService drinkEventHandlingService,
     PushNotificationService pushNotificationService,
     ILogger <ActivityAddedService> logger)
 {
     this.utilityService              = utilityService;
     this.activityRepository          = activityRepository;
     this.userRepository              = userRepository;
     this.notificationService         = notificationService;
     this.monitoringRepository        = monitoringRepository;
     this.statisticUpdateService      = rankingService;
     this.activityDistributionService = activityDistributionService;
     this.drinkEventHandlingService   = drinkEventHandlingService;
     this.pushNotificationService     = pushNotificationService;
     this.logger = logger;
 }
Beispiel #4
0
 public DrinkCalculatorFunction(IUserRepository userRepository, UserStatisticUpdateService updateStatisticsCommand)
 {
     this.userRepository         = userRepository;
     this.statisticUpdateService = updateStatisticsCommand;
 }
 public RankingCalculatorFunction(IUserRepository userRepository, UserStatisticUpdateService rankingService)
 {
     this.userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this.rankingService = rankingService ?? throw new ArgumentNullException(nameof(rankingService));
 }