public TweetController( ITwitterRepository twitterRepository, IHashtagResponseFactory hashtagResponseFactory) { _twitterRepository = twitterRepository; _hashtagResponseFactory = hashtagResponseFactory; }
public TweetVideoHandler(IScraperRepository repository, ITwitterRepository twitterRepository, IOptions <TweetProcessorSettings> settings) { scraperRepository = repository; this.twitterRepository = twitterRepository; this.settings = settings.Value; }
public WriteMaxIdCommand( string fileId, ITwitterRepository twitterRepository) { _fileId = fileId; _twitterRepository = twitterRepository; }
public SeenVideoHandler(IScraperRepository scraperRepository, IOptions <TweetProcessorSettings> options, ITwitterRepository twitterRepository) { this.scraperRepository = scraperRepository; settings = options.Value; this.twitterRepository = twitterRepository; }
public MessageMatcherProcessor(ITwitterRepository twitterRepository) { _twitterRepository = twitterRepository; _luisSubscriptionKey = ConfigurationManager.AppSettings[LUIS_SubscriptionKey]; _luisAppId = ConfigurationManager.AppSettings[LUIS_AppId]; _memoryCache = MemoryCache.Default; }
public RunMentionWatchCommand( ITwitterRepository twitterRepository, IHashtagResponseFactory hashtagResponseFactory) { _twitterRepository = twitterRepository; _hashtagResponseFactory = hashtagResponseFactory; }
public FireAndForgetMentionsCommand( ITwitterRepository twitterRepository, IHashtagResponseFactory hashtagResponseFactory) { _twitterRepository = twitterRepository; _hashtagResponseFactory = hashtagResponseFactory; }
internal TwitterFeedService(IUserReader userReader, ITweetReader tweetReader, ITwitterRepository repo, IView <IEnumerable <UserFeed> > view) { _repo = repo; _userReader = userReader; _tweetReader = tweetReader; _view = view; }
public TwitterServiceProvider(ITwitterRepository twitterRepository) { _twitterRepository = twitterRepository; // Authenticate witht the Twitter API _twitterService = new TwitterService(ConfigurationManager.AppSettings[CONSUMER_KEY], ConfigurationManager.AppSettings[CONSUMER_SECRET]); _twitterService.AuthenticateWith(ConfigurationManager.AppSettings[TOKEN], ConfigurationManager.AppSettings[TOKEN_SECRET]); }
public TwitterController(UserManager <ApplicationUser> userManager, ITwitterRequestHandler twitterRequestHandler, ITwitterRepository twitterRepository, ITwittersService twittersService, IMapper mapper) { this.userManager = userManager; this.twitterRequestHandler = twitterRequestHandler; this.twitterRepository = twitterRepository; this.twittersService = twittersService; this.mapper = mapper; }
public TwitterContentHandlerFactory(ITwitterRepository twitterRepository, IScraperRepository scraperRepository, ILogger <TwitterContentHandlerFactory> logger, IOptions <TweetProcessorSettings> options) { this.logger = logger; this.twitterRepository = twitterRepository; scraperDatabaseRepository = scraperRepository; this.options = options; }
public HomeController(IUserServices userServices, IMapper mapper, IUserManagerProvider userManager, ITweetRepository tweetRepo, ITwitterRepository twitterRepo, IUnitOfWork unitOfWork) { this.userServices = userServices; this.mapper = mapper; this.userManager = userManager; this.tweetRepo = tweetRepo; this.twitterRepo = twitterRepo; this.unitOfWork = unitOfWork; }
public HandleMentionsCommand( List <Tweet> tweets, ITwitterRepository twitterRepository, IHashtagResponseFactory hashtagResponseFactory) { _tweets = tweets; _twitterRepository = twitterRepository; _hashtagResponseFactory = hashtagResponseFactory; }
public void Setup() { _repo = MockRepository.GenerateMock <ITwitterRepository>(); // Stub list to return when GetAll or GetPredicate is called var list = new List <TweetFromUser>() { new TweetFromUser { TweetText = "This is my tweet", User = new User { Name = "mark" } }, new TweetFromUser { TweetText = "This is Tom's tweet" , User = new User { Name = "Tom" } }, new TweetFromUser { TweetText = "This is another tweet" , User = new User { Name = "mark" } } }; _repo.Stub(d => d.GetAll()).Return(list); // when they use UserName == "mark" // _repo.Stub(d => d.GetTweetsByScreenName("mark")).Return(list.Where(d => d.User.Name == "mark")); _vm = new TwitterViewModel(_repo); }
public void Setup() { _repo = MockRepository.GenerateMock<ITwitterRepository>(); // Stub list to return when GetAll or GetPredicate is called var list = new List<TweetFromUser>() { new TweetFromUser { TweetText = "This is my tweet", User = new User { Name = "mark" } }, new TweetFromUser { TweetText = "This is Tom's tweet" , User = new User { Name = "Tom" } }, new TweetFromUser { TweetText = "This is another tweet" , User = new User { Name = "mark" } } }; _repo.Stub(d => d.GetAll()).Return(list); // when they use UserName == "mark" // _repo.Stub(d => d.GetTweetsByScreenName("mark")).Return(list.Where(d => d.User.Name == "mark")); _vm = new TwitterViewModel(_repo); }
public TweetController(INewsRepository newsData, ITwitterRepository twitter, IOptions <BALSettings> balSettings) { _newsData = newsData; _twitter = twitter; _balSettings = balSettings; }
public HomeController(ITwitterRepository twitterRepository) { _twitterRepo = twitterRepository; }
public ApplicationService(ITwitterRepository twitterRepository, IApiService apiService, IUrlBuilder urlBuilder) { this._twitterRepository = twitterRepository; this._apiService = apiService; this._urlBuilder = urlBuilder; }
public SearchService(ITwitterRepository twitterRepository) { _twitterRepository = twitterRepository; }
public TwitterViewModel(ITwitterRepository repository) { _repository = repository; _nextTweet = "Write your next tweet here."; BuildTweetsFromAllUsers(); }
public UnitOfWork(ITwitterRepository twitterRepository) { TwitterRepos = twitterRepository; }
public TwitterService(ITwitterRepository twitterRepository) { _twitterRepository = twitterRepository; }
public TwittersController(ITwitterRepository twitterRepository) { this.twitterRepo = twitterRepository; }
public TwitterAnalyzer(ITextAnalyzerService textAnalyzerService, ITwitterRepository twitterRepository) { _textAnalyzerService = textAnalyzerService; _twitterRepository = twitterRepository; }
/// <summary> /// Initializes a new instance of the <see cref="TwitterProvider"/> class. /// </summary> /// <remarks> /// The class property, Repository, is injected with a concrete implementation /// by our DependencyInjection.InjectDependencies class. /// </remarks> public TwitterProvider(ITwitterRepository repo) { this.Repository = repo; }
public TwitterExternalUserInformationProvider(ITwitterRepository twitterRepository) { this.twitterRepository = twitterRepository; }
public Report(ITwitterRepository twitterRepository) { _twitterRepository = twitterRepository; _tweetLengthLimit = Convert.ToInt32(ConfigurationManager.AppSettings["LimitTweetTo"]); }
public ReadMaxIdCommand( ITwitterRepository twitterRepository) { _twitterRepository = twitterRepository; }
/// <summary> /// <see cref="CountCommand"/> の新しいインスタンスを生成します。 /// </summary> public CountCommand(ITwitterRepository twitter, CountCommandSettings settings) { this.twitter = twitter; this.settings = settings; }
public TwitterBal(ITwitterRepository _TwitterRepository) { TwitterRepository = _TwitterRepository; }
public TwitterService() { _twitterRepository = new TwitterRepository(); _memberRepository = new MemberRepository(); }
public TwitterService(IUnitOfWork unitOfWork, ITwitterRepository twitterRepository) { this.unitOfWork = unitOfWork; this.twitterRepository = twitterRepository; }
public Retweeter(ITableStorageRepository tableStorageRepository, ITwitterRepository twitterRepository) { _tableStorageRepository = tableStorageRepository; _twitterRepository = twitterRepository; }
public TwitterViewModel(ITwitterRepository repository) { _repository = repository; _nextTweet = "Write your next tweet here."; BuildTweetsFromAllUsers(); }
public TopicProcessor(ITwitterRepository twitterRepository, IDWHRepository dwhRepository) { _twitterRepository = twitterRepository; _dwhRepository = dwhRepository; }
public ApplicationService(ITwitterRepository twitterRepository, IApiService apiService, IUrlBuilder urlBuilder) { this._twitterRepository = twitterRepository; this._apiService = apiService; this._urlBuilder = urlBuilder; }
public TwitterExternalUserInformationProvider(ITwitterRepository twitterRepository) { this.twitterRepository = twitterRepository; }