Ejemplo n.º 1
0
        public async System.Threading.Tasks.Task FetchChaptersTest()
        {
            /*
             * Fetching chapters
             */

            //Arrenge
            string courseId = "5e3bd92155de5958085644e3";
            OnlineStepApiService apiFetcher    = new OnlineStepApiService();
            List <ChapterLevel>  chapterLevels = new List <ChapterLevel>();

            //Act
            chapterLevels = await apiFetcher.FetchChapterLevels(courseId);


            //Assert
            Assert.AreEqual(chapterLevels[0].Chapters[0]._id, "5e3976792e6b5d4ee4a2956f");
        }
Ejemplo n.º 2
0
        private async System.Threading.Tasks.Task InitAsyncApiRequest()
        {
            ChapterLevels = await Service.FetchChapterLevels(Global.Instance.CourseId);

            SetCurrentUserProgress();
        }