public TwitterStreamService(ITweetService tweetService, IEmojiService emojiService, IHashTagService hashTagService, IUrlsService urlsService) { _tweetService = tweetService ?? throw new ArgumentNullException(nameof(tweetService)); _emojiService = emojiService ?? throw new ArgumentNullException(nameof(emojiService)); _hashTagService = hashTagService ?? throw new ArgumentNullException(nameof(hashTagService)); _urlsService = urlsService ?? throw new ArgumentNullException(nameof(urlsService)); }
public ImagesController(IImageService imageService, IHashTagService hashTagService, IProfileService profileService) { _imageService = imageService; _hashTagService = hashTagService; _profileService = profileService; }
public InstagramController(IOptions <InstagramSettings> settings, IHashTagService hashTagService) { _hashTagService = hashTagService; _instagramSettings = settings.Value; _config = new InstagramConfig(_instagramSettings.ClientId, _instagramSettings.ClientSecret, _instagramSettings.RedirectURI, string.Empty); }
public TweetService(ITweetRepository tweetRepository, IEmojiService emojiService, IHashTagService hashTagService, IUrlsService urlsService, IMediaService mediaService) { _emojiService = emojiService ?? throw new ArgumentNullException(nameof(emojiService)); _tweetRepository = tweetRepository ?? throw new ArgumentNullException(nameof(tweetRepository)); _hashTagService = hashTagService ?? throw new ArgumentNullException(nameof(hashTagService)); _urlsService = urlsService ?? throw new ArgumentNullException(nameof(urlsService)); _mediaService = mediaService ?? throw new ArgumentNullException(nameof(mediaService)); }
public async Task Init() { _unitOfWork = new UnitOfWork(_context); _hashTagService = new HashTagService(new HashTagRepository(_context, _unitOfWork)); _kweetService = new KweetService(new KweetRepository(_context, _unitOfWork)); _hashTagInKweetService = new Service <HashTagInKweet>(new Repository <HashTagInKweet>(_context, _unitOfWork)); await Seed(); }
public KweetsController(IUnitOfWorkAsync unitOfWork, IKweetService kweetService, ILikeService likeService, IHashTagService hashTagService, IHashTagInKweetService hashTagInKweetService, IMentionService mentionService, IMapper mapper) { _unitOfWork = unitOfWork; _kweetService = kweetService; _likeService = likeService; _hashTagService = hashTagService; _hashTagInKweetService = hashTagInKweetService; _mentionService = mentionService; _mapper = mapper; }
public HashTagsController(IHashTagService hashTagService, IProfileService profileService) { _hashTagService = hashTagService; }
public HahTagController(IHashTagService hashTagService) { _hashTagService = hashTagService; }