public static int FillCollectionWithStudents(CustomCollectionList <Student> curStudList) { List <(string, int, string)> studentInitList = new List <(string, int, string)>() { ("Ivanoff", 22, "ICP"), ("Petroff", 21, "ICP"), ("Sidoroff", 20, "Falkreath Hall"), ("Homer", 39, "Falkreath Hold"), ("Bart", 14, "Falkreath Hold"), ("Liza", 12, "Falkreath Hold"), ("Maggie", 35, "Kitchen"), }; foreach (var newStudent in studentInitList) { curStudList.Add(new Student(newStudent.Item1, newStudent.Item2, newStudent.Item3)); } return(curStudList.NumberOfItems()); }
public static int FillCollectionWithCars(CustomCollectionList <Car> curCarList) { List <(string, int)> carInitList = new List <(string, int)> () { ("Catmobile", 30), ("Patmobile", 5), ("Crazymobile", 1000), ("Fozzymobile", 250), ("Gendalf the Grey mobile", 50), ("Like a rocket mobile", 1500), ("Batmobile", 300) }; foreach (var newCar in carInitList) { curCarList.Add(new Car(newCar.Item1, newCar.Item2)); } return(curCarList.NumberOfItems()); }