示例#1
0
        public void TestStudentCreation()
        {
            var student = GetTestStudent();
            var controller = new StudentController(student);

            var result = controller.Create();
            Assert.AreEqual(student, result);
        }
示例#2
0
        public void TestListStudentCreation()
        {
            var student = GetTestStudentList();
            var controller = new StudentController(student);
            var list = student.Select(x => controller.Create()).ToList();

            //Console.WriteLine("Result: " + result + ", Expected: " + student);
            Assert.AreEqual(student.Count, list.Count);
        }