Exemple #1
0
 public RewardHelper(IRewardService rewardService, IHubContext <UserHub> hub, IUserStatisticsService userStatisticsService,
                     ICutPointService cutPointService, IUserService userService, IConfiguration config, INotificationService notificationService)
 {
     _rewardService         = rewardService ?? throw new ArgumentNullException(nameof(rewardService));
     _hub                   = hub ?? throw new ArgumentNullException(nameof(hub));
     _userStatisticsService = userStatisticsService ?? throw new ArgumentNullException(nameof(userStatisticsService));
     _cutPointService       = cutPointService ?? throw new ArgumentNullException(nameof(cutPointService));
     _userService           = userService ?? throw new ArgumentNullException(nameof(userService));
     _config                = config ?? throw new ArgumentNullException(nameof(config));
     _notificationService   = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
 }
 public CutPointController(ICutPointService cutPointService, IMapper mapper)
 {
     _cutPointService = cutPointService ?? throw new ArgumentNullException(nameof(cutPointService));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }