public void TestStudentCreation() { var student = GetTestStudent(); var controller = new StudentController(student); var result = controller.Create(); Assert.AreEqual(student, result); }
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); }