public void GetSectionStudentAssociationsAsync_BasicTest() { SectionDataService srv = new SectionDataService(); string sectionId = section2; Task<JArray> task = srv.GetSectionStudentAssociationsAsync(TestProperties.AccessToken, sectionId, 0, 0); task.Wait(); JArray result = task.Result; // make sure we have results Assert.IsTrue(result.HasValues); // get the first student in the result set JToken firstSection = result.First; Debug.WriteLine(firstSection.ToString()); // verify we got an id back JToken id = firstSection.SelectToken("id", false); Assert.IsTrue(!string.IsNullOrEmpty(id.ToString())); }