예제 #1
0
 public void GetCoursesUserIdTest()
 {
     MixedCourseStorage mcs = new MixedCourseStorage(_Tests.LmsService);
     var users = mcs.GetCourseUsers(1);
     var courses = mcs.GetCourses(users.ToArray()[0].Id);
     Assert.AreEqual(courses.Count(), 2);
 }
예제 #2
0
 public void GetCourseUsersNotFoundTest()
 {
     MixedCourseStorage mcs = new MixedCourseStorage(_Tests.LmsService);
     var courses = mcs.GetCourseUsers(-1);
     Assert.AreEqual(courses.Count(), 0);
 }
예제 #3
0
 public void GetCourseUsersTest()
 {
     MixedCourseStorage mcs = new MixedCourseStorage(_Tests.LmsService);
     var courses = mcs.GetCourseUsers(1);
     Assert.AreEqual(courses.ToArray()[0].Username, "lex");
 }