public TweetMonitor() { _repo = new TweetRepository(); _currentUser = _repo.GetCurrentUser().ScreenName; Console.OutputEncoding = Encoding.Unicode; }
public Service(IEventCollector eventCollector, ITweetConnector tweetConnector, IFootballGameRepository gameRepository, ITweetRepository tweetRepository) { _eventCollector = eventCollector; _tweetConnector = tweetConnector; _gameRepository = gameRepository; _tweetRepository = tweetRepository; }
public MailerJob(IUserRepository userRepository, ITweetRepository tweetRepository, IMassMailController mail) { this.userRepository = userRepository; this.tweetRepository = tweetRepository; this.mail = mail; Console.WriteLine("MailerJob.ctor"); }
public TweetArena(ITweetRepository tweetRepo, ITweetInterpreter tweetInterpreter, IDuelInterpreter duelInterpreter) { _LastChecked = DateTime.MinValue; _TweetRepo = tweetRepo; _TweetInterpreter = tweetInterpreter; _DuelInterpreter = duelInterpreter; }
public UnitOfWork(DataDbContext dataDbContext, ITweetRepository tweetRepository, IUserRepository userRepository) { DataDbContext = dataDbContext; UserRepository = userRepository; TweetRepository = tweetRepository; }
public SampleStreamProcessor(IConfiguration configuration, ITweetRepository tweetRepository, ICacheRepository cacheRepository, ILogger <SampleStreamProcessor> logger, IEmojiProcessor emojiProcessor, IHashtagProcessor hashtagProcessor) { Logger = logger; EmojiProcessor = emojiProcessor; HashtagProcessor = hashtagProcessor; TweetRepository = tweetRepository; CacheRepository = cacheRepository; Configuration = configuration; TwitterCredentialsOptions = configuration.GetSection(TwitterCredentialsOptions.TwitterCredentials).Get <TwitterCredentialsOptions>(); SampleStreamOptions = configuration.GetSection(SampleStreamOptions.SampleStream).Get <SampleStreamOptions>(); UserClient = new TwitterClient(TwitterCredentialsOptions.ConsumerKey, TwitterCredentialsOptions.ConsumerSecret, TwitterCredentialsOptions.AccessToken, TwitterCredentialsOptions.AccessSecret); SampleStream = UserClient.Streams.CreateSampleStream(); SampleStream.AddLanguageFilter(SampleStreamOptions.LanguageFilter); SampleStream.FilterLevel = (StreamFilterLevel)SampleStreamOptions.FilterLevel; SampleStream.TweetReceived += (sender, eventArgs) => { Tweets.Add((Tweet)eventArgs.Tweet); if (NumberOfTotalTweetsPerSession > SampleStreamOptions.MaxAllowedTweetsLimit) { StopStream(); } if (Tweets.Count > SampleStreamOptions.TweetsPageSize || GetStreamStateAsync().Result == StreamStateEnum.Stop) { ProcessTweetsAsync(); } }; }
public TweetFeedGenerator(IUserRepository userRepository, ITweetRepository tweetReposity, IInputRetriever inputRetriever, IValidator validator, ILogger logger) { this.userRepository = userRepository; this.tweetReposity = tweetReposity; this.inputRetriever = inputRetriever; this.validator = validator; this.logger = logger; }
public TweetFeedGenerator() { userRepository = new UserRepository(); tweetReposity = new TweetRepository(); inputRetriever = new FileDocumentStorage(); validator = new EncodingValidator(); logger = new ConsoleLogger(); }
public TweetController(ITwitterRequestHandler twitterRequestHandler, IMapper mapper, UserManager <ApplicationUser> userManager, ITweetService tweetServices, ITweetRepository tweetRepository) { this.twitterRequestHandler = twitterRequestHandler; this.mapper = mapper; this.userManager = userManager; this.tweetServices = tweetServices; this.tweetRepository = tweetRepository; }
public StatisticsService(ITweetRepository tweetRepository, IUserRepository userRepository) { Guard.WhenArgument(tweetRepository, "Tweet Repository").IsNull().Throw(); Guard.WhenArgument(userRepository, "User Repository").IsNull().Throw(); this.tweetRepository = tweetRepository; this.userRepository = userRepository; }
public TweetService(ITweetRepository repository, IUsuarioRepository usuarioRepository, IIdiomaRepository idiomaRepository, IPaisRepository paisRepository, ITagRepository tagRepository) { _tweetRepository = repository; _usuarioRepository = usuarioRepository; _idiomaRepository = idiomaRepository; _paisRepository = paisRepository; _tagRepository = tagRepository; }
public MasterController(IApplicationRepository appRepository, ITweetRepository tweetRepository, ITweeterRepository tweeterRepository, ILanguageRepository languageRepository) { this.AppRepository = appRepository; this.TweetRepository = tweetRepository; this.TweeterRepository = tweeterRepository; this.LanguageRepository = languageRepository; }
public StartBackgroundTasks(IApplicationRepository applicationRepository, ITweetRepository tweetRepository, ITweeterRepository tweeterRepository, ILanguageRepository languageRepository) { this.ApplicationRepository = applicationRepository; this.TweetRepository = tweetRepository; this.TweeterRepository = tweeterRepository; this.LanguageRepository = languageRepository; }
public NewsFeedTimeLineService(ITweetRepository tweetRepository, IFollowsLogic followsLogic, IUsersLogic usersLogic, ITimeLineRepository timeLineRepository) { _tweetRepository = tweetRepository; _followsLogic = followsLogic; _usersLogic = usersLogic; _timeLineRepository = timeLineRepository; }
public CachedTweetsRepositoryTests(TweetRepositoryFixture fixture) { _tweetDbRepository = fixture.tweetDbRepository; _tweetClientRepository = fixture.tweetClientRepository; _cachedTweetService = fixture.cachedtweetService; _mapper = fixture.mapper; _cached100TweetTask = fixture.cachedLast100TweetsTask; }
public TweetsTests() { appHost = new BasicAppHost().Init(); _fakeTweetRepository = Substitute.For <ITweetRepository>(); appHost.Container.AddTransient(typeof(ITweetRepository), () => _fakeTweetRepository); appHost.Container.AddTransient <TweetService>(); }
/* The repository values will be injected into the class when * the dependency injection framework calls the constructor */ public TwitterService(IFeedRepository feedRepository, IUserRepository userRepository, ITweetRepository tweetRepository) { _userRepository = userRepository; _feedRepository = feedRepository; _tweetRepository = tweetRepository; }
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 DummyController(ITweetRepository tweetRepository, IAzureServices azureServices, IBaseRepository <Tweet> baseRepository) { _tweetRepository = tweetRepository; _azureService = azureServices; _baseRepository = baseRepository; }
public TweetService(ITweetRepository tweetRepository, IUserRepository userRepository, ITweetCommentsRepository commentRepository, ITweetLikesRepository likesRepository) { _tweetRepository = tweetRepository; _userRepository = userRepository; _commentRepository = commentRepository; _likesRepository = likesRepository; }
public TweetService( ITweetRepository tweetRepository, IRepository <Like> likeRepository, IRepository <Retweet> retweetRepository) { _tweetRepository = tweetRepository; _likeRepository = likeRepository; _retweetRepository = retweetRepository; }
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 TweetService( IUnitOfWork unitOfWork, IMappingProvider mappingProvider, IUserRepository userRepository, ITweetRepository tweetRepository) : base(unitOfWork, mappingProvider, userRepository) { Guard.WhenArgument(tweetRepository, "Tweet Repository").IsNull().Throw(); this.tweetRepository = tweetRepository; }
public TweetProcessingService( ILogger <TweetProcessingService> logger, IConfiguration configuration, ITweetRepository tweetRepository, IEmojiParser emojiParser) { Logger = logger; Configuration = configuration; TweetRepository = tweetRepository; EmojiParser = emojiParser; }
public HomeController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailService emailService, ITweetRepository tweetRepository, AppDbContext context, IHostingEnvironment hostingEnvironment) { _userManager = userManager; _signInManager = signInManager; _emailService = emailService; _tweetRepository = tweetRepository; _context = context; _hostingEnvironment = hostingEnvironment; }
public TweetAnalysisService( ILogger <TweetAnalysisService> logger, IConfiguration configuration, ITweetRepository tweetRepository, ITweetAnalysisStrategy tweetAnalysisStrategy) { Logger = logger; Configuration = configuration; TweetRepository = tweetRepository; TweetAnalysisStrategy = tweetAnalysisStrategy; InitializeTweetMapper(); }
public SyncService(ITweetLocationService tweetLocationService , ITweetRepository tweetRepository , ICachedTweetService cachedTweetService , ITweetDbRepository tweetDbRepository , IAddressCleanService addressCleanService , IMapper mapper) { _tweetLocationService = tweetLocationService; _tweetClientRepository = tweetRepository; _cachedTweetService = cachedTweetService; _tweetDbRepository = tweetDbRepository; _addressCleanService = addressCleanService; _mapper = mapper; }
public TwitterApp(IConfiguration config, ILanguageRepository languageRepository, ITweetRepository tweetRepository, IUserRepository userRepository, ITweetsByHourRepository tweetsByHourRepository, ITweetsByTagRepository tweetsByTagRepository, IMapper mapper) { _config = config; _languageRepository = languageRepository; _tweetRepository = tweetRepository; _userRepository = userRepository; _tweetsByHourRepository = tweetsByHourRepository; _tweetsByTagRepository = tweetsByTagRepository; _mapper = mapper; }
public TweetService( ILogger <ITweetService> logger, MediatR.IMediator mediator, ITweetRepository tweetRepository, IApiTweetServerRequestModelValidator tweetModelValidator, IDALTweetMapper dalTweetMapper, IDALQuoteTweetMapper dalQuoteTweetMapper, IDALRetweetMapper dalRetweetMapper) : base() { this.TweetRepository = tweetRepository; this.TweetModelValidator = tweetModelValidator; this.DalTweetMapper = dalTweetMapper; this.DalQuoteTweetMapper = dalQuoteTweetMapper; this.DalRetweetMapper = dalRetweetMapper; this.logger = logger; this.mediator = mediator; }
public TweetService( ILogger <ITweetRepository> logger, ITweetRepository tweetRepository, IApiTweetRequestModelValidator tweetModelValidator, IBOLTweetMapper boltweetMapper, IDALTweetMapper daltweetMapper, IBOLQuoteTweetMapper bolQuoteTweetMapper, IDALQuoteTweetMapper dalQuoteTweetMapper, IBOLRetweetMapper bolRetweetMapper, IDALRetweetMapper dalRetweetMapper) : base(logger, tweetRepository, tweetModelValidator, boltweetMapper, daltweetMapper, bolQuoteTweetMapper, dalQuoteTweetMapper, bolRetweetMapper, dalRetweetMapper) { }
public AbstractTweetService( ILogger logger, ITweetRepository tweetRepository, IApiTweetRequestModelValidator tweetModelValidator, IBOLTweetMapper bolTweetMapper, IDALTweetMapper dalTweetMapper, IBOLQuoteTweetMapper bolQuoteTweetMapper, IDALQuoteTweetMapper dalQuoteTweetMapper, IBOLRetweetMapper bolRetweetMapper, IDALRetweetMapper dalRetweetMapper) : base() { this.TweetRepository = tweetRepository; this.TweetModelValidator = tweetModelValidator; this.BolTweetMapper = bolTweetMapper; this.DalTweetMapper = dalTweetMapper; this.BolQuoteTweetMapper = bolQuoteTweetMapper; this.DalQuoteTweetMapper = dalQuoteTweetMapper; this.BolRetweetMapper = bolRetweetMapper; this.DalRetweetMapper = dalRetweetMapper; this.logger = logger; }
public NamedEntitiesController(ITweetRepository tweetRepo) { tweetRepository = tweetRepo; }
public TweetsController(ITweetRepository tweetRepository, IUserRepository userRepository) : base(userRepository) { this.tweetRepository = tweetRepository; }
public HomeController(IUserRepository uRepo, ITweetRepository tRepo) : base(uRepo) { tweetRepository = tRepo; }
public VoteController(IApplicationRepository appRepository, ITweetRepository tweetRepository, ITweeterRepository tweeterRepository, ILanguageRepository languageRepository) : base(appRepository, tweetRepository, tweeterRepository, languageRepository) { }
public StatusesController(ITweetRepository repository, ICredentialsChecker checker) { repositoryTwits = repository; credentialsChecker = checker; }
public StatusesController() { repositoryTwits = DataAccess.RepositoryTwits; credentialsChecker=new CredentialsChecker(); }