Beispiel #1
0
        public void GetReleases()
        {
            var textCollector = new TextCollector();
            var analyzer      = new ReleasesAnalyzer(textCollector.GetBitcoinHTML());
            var releases      = analyzer.GetReleases();

            Assert.Equal(213, releases);
        }
 public GithubRepository(WatchesAnalyzer watchAnalyzer, StarsAnalyzer starsAnalyzer,
                         ReleasesAnalyzer releasesAnalyzer, PullRequestsAnalyzer pullRequestAnalyzer,
                         IssuesAnalyzer issuesAnalyzer, ForksAnalyzer forkAnalyzer,
                         ContributorsAnalyzer contributorsAnalyzer,
                         CommitsAnalyzer commitsAnalyzer, BranchesAnalyzer branchAnalyzer)
 {
     _watchAnalyzer        = watchAnalyzer;
     _starsAnalyzer        = starsAnalyzer;
     _releasesAnalyzer     = releasesAnalyzer;
     _pullRequestAnalyzer  = pullRequestAnalyzer;
     _issuesAnalyzer       = issuesAnalyzer;
     _forkAnalyzer         = forkAnalyzer;
     _contributorsAnalyzer = contributorsAnalyzer;
     _commitsAnalyzer      = commitsAnalyzer;
     _branchAnalyzer       = branchAnalyzer;
 }