public AccountService(IConfiguration configuration, IUnitOfWork uow, IDetection detection, IFileService fileService, ISubscriptionService subscriptionService, IProfileHelthHelper profileHelthHelper) { _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _uow = uow ?? throw new ArgumentNullException(nameof(uow)); _detection = detection ?? throw new ArgumentNullException(nameof(detection)); _fileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); _subscriptionService = subscriptionService ?? throw new ArgumentNullException(nameof(subscriptionService)); _profileHelthHelper = profileHelthHelper ?? throw new ArgumentNullException(nameof(profileHelthHelper)); }
public UserController(IUserService userService, IMapper mapper, IProfileHelthHelper profileHelthHelper, IPollService pollService, INotificationService notificationService, IUserStatisticsService userStatisticsService, IWebHostEnvironment env) { _userService = userService ?? throw new ArgumentNullException(nameof(userService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _profileHelthHelper = profileHelthHelper ?? throw new ArgumentNullException(nameof(profileHelthHelper)); _pollService = pollService ?? throw new ArgumentNullException(nameof(pollService)); _notificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService)); _userStatisticsService = userStatisticsService ?? throw new ArgumentNullException(nameof(userStatisticsService)); _env = env ?? throw new ArgumentNullException(nameof(env)); }
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)); }