public async Task ReturnsIssuesUsingRest()
        {
            var issueTracker = new JiraIssueTracker("https://catelproject.atlassian.net/", "CTL", null);
            var issueFilter = new IssueTrackerFilter
            {
                IncludeClosed = true,
                Since = new DateTimeOffset(DateTime.Today.AddMonths(-1))
            };

            var issues = await issueTracker.GetIssuesAsync(issueFilter);
            var issuesList = issues.ToList();

            issuesList.ShouldNotBeEmpty();
        }
Esempio n. 2
0
        public async Task ReturnsIssuesUsingRest()
        {
            var issueTracker = new JiraIssueTracker("https://catelproject.atlassian.net/", "CTL", null);
            var issueFilter  = new IssueTrackerFilter
            {
                IncludeClosed = true,
                Since         = new DateTimeOffset(DateTime.Today.AddMonths(-1))
            };

            var issues = await issueTracker.GetIssuesAsync(issueFilter);

            var issuesList = issues.ToList();

            issuesList.ShouldNotBeEmpty();
        }
 public JiraIssueTrackerTests()
 {
     _jiraApi = Substitute.For <IJiraApi>();
     _sut     = new JiraIssueTracker(_jiraApi, new Context());
 }
Esempio n. 4
0
 public JiraIssueTrackerTests()
 {
     _jiraApi = Substitute.For <IJiraApi>();
     _sut     = new JiraIssueTracker(_jiraApi, _log, new GitReleaseNotesArguments());
 }