public void GetStars() { var textCollector = new TextCollector(); var analyzer = new StarsAnalyzer(textCollector.GetBitcoinHTML()); var stars = analyzer.GetStars(); Assert.Equal(36852, stars); }
public GithubRepositoryDetails GetRepositoryDetails() { return(new GithubRepositoryDetails() { Watches = _watchAnalyzer.GetWatchers(), Branches = _branchAnalyzer.GetBranches(), Commits = _commitsAnalyzer.GetCommits(), Contributors = _contributorsAnalyzer.GetContributors(), Forks = _forkAnalyzer.GetForks(), Issues = _issuesAnalyzer.GetIssues(), PullRequests = _pullRequestAnalyzer.GetPullRequests(), Releases = _releasesAnalyzer.GetReleases(), Stars = _starsAnalyzer.GetStars() }); }