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