Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public void GetCourseUsersNotFoundTest()
 {
     MixedCourseStorage mcs = new MixedCourseStorage(_Tests.LmsService);
     var courses = mcs.GetCourseUsers(-1);
     Assert.AreEqual(courses.Count(), 0);
 }
Exemplo n.º 3
0
 public void GetCourseUsersTest()
 {
     MixedCourseStorage mcs = new MixedCourseStorage(_Tests.LmsService);
     var courses = mcs.GetCourseUsers(1);
     Assert.AreEqual(courses.ToArray()[0].Username, "lex");
 }