Пример #1
0
 public void ArticleService_GetFebIdsWithOnlyIds_Got1()
 {
     using (new QPConnectionScope(Global.ConnectionInfo))
     {
         var articleService = new ArticleApiService(Global.ConnectionInfo, 1);
         var articles       = articleService.Ids(0, new [] { 1513, 1514, 1515, _archiveId }, true, "c.title like '%feb%'").ToArray();
         Assert.That(articles.Length, Is.EqualTo(1));
     }
 }
Пример #2
0
 public void ArticleService_GetFebIdsWithOnlyEmptyIds_Got0()
 {
     using (new QPConnectionScope(Global.ConnectionInfo))
     {
         var articleService = new ArticleApiService(Global.ConnectionInfo, 1);
         var articles       = articleService.Ids(0, new int[] {}, true, "c.title like '%feb%'").ToArray();
         Assert.That(articles.Length, Is.EqualTo(0));
     }
 }
Пример #3
0
 public void ArticleService_GetFebIds_Got2()
 {
     using (new QPConnectionScope(Global.ConnectionInfo))
     {
         var articleService = new ArticleApiService(Global.ConnectionInfo, 1);
         var articles       = articleService.Ids(_newsContentId, null, true, "c.title like '%feb%'").ToArray();
         Assert.That(articles.Length, Is.EqualTo(2));
     }
 }
Пример #4
0
 public void ArticleService_GetFebIdsWithIdsIncludingArchive_Got2()
 {
     using (new QPConnectionScope(Global.ConnectionInfo))
     {
         var articleService = new ArticleApiService(Global.ConnectionInfo, 1);
         var articles       = articleService.Ids(_newsContentId, new [] { 1513, 1514, 1515, _archiveId }, false, "c.title like '%feb%'").ToArray();
         Assert.That(articles.Length, Is.EqualTo(2));
     }
 }