public void AddCourse(string courseCode, string courseName, int courseNumber, string section, string semester, DateTime StartDateTime, DateTime EndDateTime) { Course c = new Course(); c.CourseCode = courseCode; c.CourseName = courseName; c.CourseNumber = courseNumber; c.Section = section; c.Semester = semester; c.StartDateTime = StartDateTime; c.EndDateTime = EndDateTime; Whiteboard.Data.WhiteboardDataAccess wbAccess = new Whiteboard.Data.WhiteboardDataAccess(); wbAccess.AddCourse(c); }
public void TestAddCourse() { var course = new Course { CourseCode = "123", CourseName = "Underwater Basket Weaving", Section = "2002", CourseNumber = 110, StartDateTime = new DateTime(2014, 9, 2), EndDateTime = new DateTime(2014, 12, 18) }; _wbDataAccess.AddCourse(course); Assert.IsTrue(course.Id != 0L); }
public void AddStudentToCourse(long studentId, Course course) { AddStudentToCourse(studentId, course.Id); }
public void AddStudentToCourse(Student student, Course course) { AddStudentToCourse(student.Id, course.Id); }
public void AddCourse(Course course) { _courseRepo.Add(course); }
public void DropStudentFromCourse(long studentId, Course course) { DropStudentFromCourse(studentId, course.Id); }
public void DropStudentFromCourse(Student student, Course course) { DropStudentFromCourse(student.Id, course.Id); }