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));
 }
Example #2
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;
 }