public void Student_GetAll() { StudentDAO dao = new StudentDAO(); List <Students> allStudents = dao.GetAll(); Assert.NotNull(allStudents); }
/** METODE ZA ISPIS STUDENATA ****/ // Ispisi sve studente public static void IspisiSveStudente() { List <Student> sviStudenti = StudentDAO.GetAll(Program.conn); for (int i = 0; i < sviStudenti.Count; i++) { Console.WriteLine(sviStudenti[i]); } }
public List <Student> GetStudentList() { return(studentDAO.GetAll()); }
public List <Student> GetAll() { _studentDAO = new StudentDAO(); return(_studentDAO.GetAll()); }