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