Esempio n. 1
0
        public void GetBranches()
        {
            var textCollector = new TextCollector();
            var analyzer      = new BranchesAnalyzer(textCollector.GetBitcoinHTML());
            var branches      = analyzer.GetBranches();

            Assert.Equal(5, branches);
        }
 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()
     });
 }