コード例 #1
0
        public void HandlesCommentsAttributeCorrectly()
        {
            var request = new SearchIssuesRequest("test");

            Assert.DoesNotContain(request.MergedQualifiers(), x => x.Contains("comments:"));

            request.Comments = Range.GreaterThan(5);
            Assert.Contains("comments:>5", request.MergedQualifiers());
        }
コード例 #2
0
ファイル: GetReposFromGH.cs プロジェクト: litetex/TopGHRepos
 private SearchRepositoriesRequest GetRepositoriesRequest(int page, int minStars)
 {
     return(new SearchRepositoriesRequest()
     {
         Stars = Config.SearchMaxStars.HasValue ? new Range(minStars, Config.SearchMaxStars.Value) : Range.GreaterThanOrEquals(minStars),
         Page = page,
         SortField = RepoSearchSort.Stars,
         Order = SortDirection.Ascending,
         PerPage = 100,
     });
 }