public GitHubIssueTrackerTests()
 {
     _gitHubClient = Substitute.For<IGitHubClient>();
     _sut = new GitHubIssueTracker(new IssueNumberExtractor(), _gitHubClient);
     _gitReleaseNotesArguments = new GitReleaseNotesArguments
     {
         Repo = "Org/Repo",
         Token = "213"
     };
     _issuesClient = Substitute.For<IIssuesClient>();
 }
        public GitHubIssueTrackerTests()
        {
            _log = Substitute.For<ILog>();
            _gitHubClient = Substitute.For<IGitHubClient>();
            _issuesClient = Substitute.For<IIssuesClient>();
            _gitHubClient.Issue.Returns(_issuesClient);
            _arguments = new GitReleaseNotesArguments
            {
                Repo = "Org/Repo",
                Token = "213"
            };
            _repo = Substitute.For<IRepository>();
            _repo.Network.Returns(new NetworkEx());

            _sut = new GitHubIssueTracker(_repo, () => _gitHubClient, _log, _arguments);
        }
        public GitHubIssueTrackerTests()
        {
            gitHubClient = Substitute.For<IGitHubClient>();
            issuesClient = Substitute.For<IIssuesClient>();
            gitHubClient.Issue.Returns(issuesClient);
            arguments = new GitReleaseNotesArguments
            {
                Repo = "Org/Repo",
                Token = "213"
            };

            var context = arguments.ToContext();

            repo = Substitute.For<IRepository>();
            repo.Network.Returns(new NetworkEx());

            sut = new GitHubIssueTracker(repo, () => gitHubClient, context);
        }