Exemplo n.º 1
0
        public void TestMoreStatements()
        {
            var query = new StatementsQuery
            {
                Format = StatementsQueryResultFormat.IDS,
                Limit  = 2
            };

            var queryRes = _lrs.QueryStatements(query);

            if (queryRes.Success && queryRes.Content.More != null)
            {
                var moreRes = _lrs.MoreStatements(queryRes.Content);
                Assert.IsTrue(moreRes.Success);
                Console.WriteLine("TestMoreStatements - statement count: " + moreRes.Content.Statements.Count);
            }
        }
Exemplo n.º 2
0
        public void TestMoreStatements()
        {
            var query = new TinCan.StatementsQuery();

            query.format = StatementsQueryResultFormat.IDS;
            query.limit  = 2;

            StatementsResultLRSResponse queryRes = lrs.QueryStatements(query);

            if (queryRes.success && queryRes.content.more != null)
            {
                StatementsResultLRSResponse moreRes = lrs.MoreStatements(queryRes.content);
                Assert.IsTrue(moreRes.success);
                Console.WriteLine("TestMoreStatements - statement count: " + moreRes.content.statements.Count);
            }
            else
            {
                // TODO: skipped?
            }
        }