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)); } }
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)); } }
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)); } }
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)); } }