public void LoadTweetHashTag() { var sut = new TweetinviConnector(); var gameId = new GameId("Lyon", "Toulouse", "Ligue 1"); var footballGame = new FootballGameWithEvent(gameId); var tweets = sut.CollectTweets(footballGame, "OLTFC"); Assert.That(tweets.Count, Is.GreaterThan(3)); }
public void PersistGame() { var gameId = new GameId("Lyon", "Toulouse", "Ligue 1"); var footballGame = new FootballGameWithEvent(gameId); string refreshToken = ConfigurationManager.AppSettings["Deersport.RefreshToken"]; var service = new Service(new SportDeerEventCollector(refreshToken), new TweetinviConnector(), new FootballGameRepository(), new TweetRepository()); var sut = new FootballGameRepository(); service.Create(new GameId("Lyon", "Toulouse", "Ligue 1")); sut.Save(footballGame); FootballGame game = sut.Find(new GameId("Lyon", "Toulouse", "Ligue 1")); }