private static List<CourseStudent> CreateCourseStudents(Guid studentId)
        {
            Course course1 = new Course();
            course1.Id = 1;
            course1.Name = "History";

            Course course2 = new Course();
            course2.Id = 2;
            course2.Name = "English";

            Course course3 = new Course();
            course3.Id = 3;
            course3.Name = "Science";

            CourseStudent courseStudent1 = new CourseStudent();
            courseStudent1.StudentId = studentId;
            courseStudent1.CourseId = 1;
            courseStudent1.Course = course1;

            CourseStudent courseStudent2 = new CourseStudent();
            courseStudent2.StudentId = studentId;
            courseStudent2.CourseId = 2;
            courseStudent2.Course = course2;

            CourseStudent courseStudent3 = new CourseStudent();
            courseStudent3.StudentId = studentId;
            courseStudent3.CourseId = 3;
            courseStudent3.Course = course3;

            return new List<CourseStudent> { courseStudent1, courseStudent2, courseStudent3 };
        }
        public void Init()
        {
            _newCourse = new Course();
            _newCourse.Name = "Health";
            _newCourse.Id = 4;

            _courseRepository = CourseRepositoryMocker.GetCourseRepositoryMock();

            _coursesController = new CoursesController(_courseRepository.Object);
            HttpConfiguration configuration = new HttpConfiguration();
            HttpRequestMessage request = new HttpRequestMessage();
            _coursesController.Request = request;
            _coursesController.Request.Properties["MS_HttpConfiguration"] = configuration;
        }
        private static List<Course> CreateCourses()
        {
            Course course1 = new Course();
            course1.Id = 1;
            course1.Name = "History";

            Course course2 = new Course();
            course2.Id = 2;
            course2.Name = "English";

            Course course3 = new Course();
            course3.Id = 3;
            course3.Name = "Science";

            return new List<Course> { course1, course2, course3 };
        }
        private static List<CourseStudent> CreateCourseStudents()
        {
            Course course1 = new Course();
            course1.Id = 1;
            course1.Name = "History";

            Course course2 = new Course();
            course2.Id = 2;
            course2.Name = "English";

            Course course3 = new Course();
            course3.Id = 3;
            course3.Name = "Science";

            MainStudent student1 = new MainStudent();
            student1.Id = Guid.NewGuid();
            student1.FirstName = "Jason";
            student1.LastName = "Snodgrass";

            MainStudent student2 = new MainStudent();
            student2.Id = Guid.NewGuid();
            student2.FirstName = "John";
            student2.LastName = "Snow";

            CourseStudent courseStudent1 = new CourseStudent();
            courseStudent1.StudentId = student1.Id;
            courseStudent1.CourseId = 1;
            courseStudent1.Course = course1;
            courseStudent1.Id = 1;

            CourseStudent courseStudent2 = new CourseStudent();
            courseStudent2.StudentId = student1.Id;
            courseStudent2.CourseId = 2;
            courseStudent2.Course = course2;
            courseStudent2.Id = 2;

            CourseStudent courseStudent3 = new CourseStudent();
            courseStudent3.StudentId = student2.Id;
            courseStudent3.CourseId = 3;
            courseStudent3.Course = course3;
            courseStudent3.Id = 3;

            return new List<CourseStudent> { courseStudent1, courseStudent2, courseStudent3 };
        }