Ejemplo n.º 1
0
        public void CreateCourse()
        {
            var courseFacade = new CourseFacade();
            var course = new Course() { Grade = "2", Subject = "English" };
            courseFacade.CreateCourse(course);

            Assert.IsTrue(course.Id > 0);
        }
Ejemplo n.º 2
0
        public void GetAllCourses()
        {
            var user = new User();
            user.EmailAddress = "*****@*****.**";
            user.Grade = "2";
            user.Name = "Test User";
            user.Role = "1";

            var courseFacade = new CourseFacade();
            var courses = courseFacade.GetAllCourses(user);

            Assert.IsTrue(courses.Count > 0);
        }