public void PopulateTable() { //WE GET ALL OBJECTS AT THE START ONLY INORDER TO REDUCE THE TIME TAKEN //TO RUN THE TESTS if (all_students == null) { all_students = StudentsManager.GetAllStudents(); } foreach (var student in all_students) { StudentsManager.Save(student); } }
//CONSTRUCTOR public StudentRecognitionThread(Image <Bgr, byte>[] faces_to_recognize) : base(null) { running = true; paused = false; WORK_DONE = false; this.faces_manager = new FacesManager(); this.faces_to_recognize.AddRange(faces_to_recognize); //GET ALL STUDENTS students = StudentsManager.GetAllStudents(); //ENROLL STUDENT FACES EnrollFacesToBeComparedAgainst(); }
public void StudentsManagerGetAllStudentsTest() { Student[] students = StudentsManager.GetAllStudents(); Assert.IsNotNull(students); }