public void EnrollSchedulePostTest2()
        {
            var studentController = new StudentController();
            var enrollSchedule = studentController.EnrollSchedule("A0000111", 112);

            Assert.AreEqual("error", enrollSchedule);
        }
        public void DropEnrolledSchedulePostTest()
        {
            var studentController = new StudentController();
            var dropEnrolledSchedule = studentController.DropEnrolledSchedule("A0000111", 112);

            Assert.AreEqual("ok", dropEnrolledSchedule);
        }
        public void DeleteStudentPostTest()
        {
            var studentController = new StudentController();
            var delStudent = studentController.DeleteStudent("B000001");

            Assert.AreEqual("ok", delStudent);
        }
        public void GetEnrollmentsGetTest()
        {
            var studentController = new StudentController();
            var studentEnrollments = studentController.GetEnrollments("A000001");

            Assert.AreEqual(102, studentEnrollments[0].ScheduleId);
            Assert.AreEqual(111, studentEnrollments[1].ScheduleId);
            Assert.AreEqual(112, studentEnrollments[2].ScheduleId);
            Assert.AreEqual(116, studentEnrollments[3].ScheduleId);
        }
 public void GetStudentInfoGetTest()
 {
     var studentController = new StudentController();
     var studentInfo = studentController.GetStudent("A000001");
     Assert.AreEqual("A000001", studentInfo.StudentId);
     Assert.AreEqual("123456789", studentInfo.SSN);
     Assert.AreEqual("John", studentInfo.FirstName);
     Assert.AreEqual("Doe", studentInfo.LastName);
     Assert.AreEqual("*****@*****.**", studentInfo.Email);
     Assert.AreEqual("password", studentInfo.Password);
     Assert.AreEqual(9, studentInfo.ShoeSize);
     Assert.AreEqual(100, studentInfo.Weight);
     Assert.AreEqual(0, studentInfo.Age);
 }
 public void InsertStudentPostTest()
 {
     var studentController = new StudentController();
     var newStudent = studentController.InsertStudent(
             new Student
             {
                 StudentId = "B000001",
                 FirstName = "Isaac",
                 LastName = "Chu",
                 SSN = "987654321",
                 Email = "*****@*****.**",
                 Password = "******",
                 ShoeSize = 10,
                 Weight = 175,
                 Age = 38
             });
     var studentInfo = studentController.GetStudent("B000001");
     Assert.AreEqual("B000001", studentInfo.StudentId);
     Assert.AreEqual("987654321", studentInfo.SSN);
     Assert.AreEqual("Isaac", studentInfo.FirstName);
     Assert.AreEqual("Chu", studentInfo.LastName);
     Assert.AreEqual("*****@*****.**", studentInfo.Email);
     Assert.AreEqual("password", studentInfo.Password);
     Assert.AreEqual(10, studentInfo.ShoeSize);
     Assert.AreEqual(175, studentInfo.Weight);
     Assert.AreEqual(38, studentInfo.Age);
 }
 public void GetStudentListGetTest()
 {
     var studentController = new StudentController();
     var studentList = studentController.GetStudentList();
 }
        public void UpdateStudentPostTest()
        {
            var studentController = new StudentController();
            var getStudent = studentController.GetStudent("A0000111");
            getStudent.LastName = "Wain";
            var editStudent = studentController.UpdateStudent(getStudent);

            var studentInfo = studentController.GetStudent("A0000111");
            Assert.AreEqual("A0000111", studentInfo.StudentId);
            Assert.AreEqual("555-55-33", studentInfo.SSN);
            Assert.AreEqual("Bruce", studentInfo.FirstName);
            Assert.AreEqual("Wain", studentInfo.LastName);
            Assert.AreEqual("*****@*****.**", studentInfo.Email);
            Assert.AreEqual("password", studentInfo.Password);
            Assert.AreEqual(10, studentInfo.ShoeSize);
            Assert.AreEqual(160, studentInfo.Weight);
            Assert.AreEqual(0, studentInfo.Age);
        }
        public void UpdateGradingOptionPostTest()
        {
            var studentController = new StudentController();
            var studentGradeOpt = studentController.UpdateGradingOption("A000001",112,"P/NP");

            Assert.AreEqual("error", studentGradeOpt);
        }
        public void UpdateGradeChangeRequestPostTest2()
        {
            var studentController = new StudentController();
            var studentGradeRequest = studentController.UpdateGradeChangeRequest("A000001", 112, true);

            Assert.AreEqual("error", studentGradeRequest);
        }