예제 #1
0
        List <Estudiante> getAllStudents()
        {
            List <Estudiante> list = new List <Estudiante>();
            Random            rand = new Random();

            for (int i = 1; i <= 10; i++)
            {
                notas notes = new notas();
                notes.es   = rand.Next(2, 5);
                notes.mat  = rand.Next(2, 5);
                notes.ing  = rand.Next(2, 5);
                notes.hist = rand.Next(2, 5);
                notes.geo  = rand.Next(2, 5);

                Estudiante stud = new Estudiante("Estudiante " + i, "8712150618" + i, notes);
                list.Add(stud);
            }

            return(list);
        }