Beispiel #1
0
        public ActionResult EnrollStudent(int id, string studentName)
        {
            string    studentID = accountAppServices.GetIDByName(studentName);
            StudentVM s         = studentAppServices.GetStudent(studentID);

            courseAppService.EnrollStudent(id, s);
            return(RedirectToAction("Index", "Class"));
        }
        public void Test_Get_By_ID_Student()
        {
            //Act
            var result = student.GetStudent("1");

            //Assert
            Assert.AreEqual(result.ID, 1);
        }