public CompoundDishController(ICompoundDishService compoundDishService, IMapper mapper, IUserService userService, IRewardHelper rewardHelper)
 {
     _compoundDishService = compoundDishService ?? throw new ArgumentNullException(nameof(compoundDishService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _userService = userService ?? throw new ArgumentNullException(nameof(userService));
     _rewardHelper = rewardHelper ?? throw new ArgumentNullException(nameof(rewardHelper));
 }
 public SoloQuestionController(ISoloQuestionService soloQuestionService, IUserService userService,
                               IMapper mapper, IRewardHelper rewardHelper)
 {
     _soloQuestionService = soloQuestionService ?? throw new ArgumentNullException(nameof(soloQuestionService));
     _mapper       = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _rewardHelper = rewardHelper ?? throw new ArgumentNullException(nameof(rewardHelper));
 }
Exemplo n.º 3
0
 public PollController(IPollService pollService, IMapper mapper, IUserService userService, IRewardHelper rewardHelper)
 {
     _pollService  = pollService ?? throw new ArgumentNullException(nameof(pollService));
     _userService  = userService ?? throw new ArgumentNullException(nameof(userService));
     _mapper       = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _rewardHelper = rewardHelper ?? throw new ArgumentNullException(nameof(rewardHelper));
 }
Exemplo n.º 4
0
 public EatController(IEatService eatService, IUserService userService, IMapper mapper, IRewardHelper rewardHelper, IAccountService accountService, IDishService dishService)
 {
     _eatService     = eatService ?? throw new ArgumentNullException(nameof(eatService));
     _userService    = userService ?? throw new ArgumentNullException(nameof(userService));
     _mapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _rewardHelper   = rewardHelper ?? throw new ArgumentNullException(nameof(rewardHelper));
     _accountService = accountService ?? throw new ArgumentNullException(nameof(accountService));
     _dishService    = dishService ?? throw new ArgumentNullException(nameof(dishService));
 }
Exemplo n.º 5
0
 public MismeBackgroundService(IUnitOfWork uow, IConfiguration config, IUserStatisticsService userStatisticsService,
                               IRewardHelper rewardHelper, ISubscriptionService subscriptionService, INotificationService notificationService, IReportService reportService)
 {
     _uow    = uow ?? throw new ArgumentNullException(nameof(uow));
     _config = config ?? throw new ArgumentNullException(nameof(config));
     _userStatisticsService = userStatisticsService ?? throw new ArgumentNullException(nameof(userStatisticsService));
     _rewardHelper          = rewardHelper ?? throw new ArgumentNullException(nameof(rewardHelper));
     _subscriptionService   = subscriptionService ?? throw new ArgumentNullException(nameof(subscriptionService));
     _notificationService   = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
     _reportService         = reportService ?? throw new ArgumentNullException(nameof(reportService));
 }
Exemplo n.º 6
0
 public AccountController(IAccountService accountService, IMapper mapper, IEmailService emailService, IWebHostEnvironment env,
                          IHubContext <UserHub> hub, IUserReferralService userReferralService, IRewardHelper rewardHelper, IUserService userService, IProfileHelthHelper profileHelthHelper)
 {
     _accountService      = accountService ?? throw new ArgumentNullException(nameof(accountService));
     _mapper              = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _env                 = env ?? throw new ArgumentNullException(nameof(env));
     _emailService        = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _hub                 = hub ?? throw new ArgumentNullException(nameof(hub));
     _userReferralService = userReferralService ?? throw new ArgumentNullException(nameof(userReferralService));
     _rewardHelper        = rewardHelper ?? throw new ArgumentNullException(nameof(rewardHelper));
     _userService         = userService ?? throw new ArgumentNullException(nameof(userService));
     _profileHelthHelper  = profileHelthHelper ?? throw new ArgumentNullException(nameof(profileHelthHelper));
 }
Exemplo n.º 7
0
 public CanvasHelper(IStateHelper stateHelper, IRewardHelper rewardHelper, IColorHelper colorHelper)
 {
     StateHelper  = stateHelper;
     RewardHelper = rewardHelper;
     ColorHelper  = colorHelper;
 }