You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
430 B
25 lines
430 B
using System;
|
|
|
|
public class StubEquipe
|
|
{
|
|
private List<Equipe> listEquipes = new List<Equipe>();
|
|
public StubEquipe()
|
|
{
|
|
}
|
|
|
|
public List<Equipe> ListEquipes(int n = 10, int j = 2)
|
|
{
|
|
for (int i = 0; i < n; i++)
|
|
{
|
|
listEquipes.Add(new Equipe() { Nom = "Equipe " + i + 1 });
|
|
|
|
for(int k = 0; k < j; k++)
|
|
{
|
|
listEquipes.ElementAt(i).AjouterJoueur(new Joueur("Joueur " + i + 1 + "-" + k + 1));
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|