From 3753cc54e137c69cae575090cf8ec4e8f89abd4d Mon Sep 17 00:00:00 2001 From: victor perez ngounou Date: Wed, 28 Sep 2022 11:36:39 +0200 Subject: [PATCH] Update Stub --- Sources/BowlingStub/BowlingStub.csproj | 4 ++++ Sources/BowlingStub/StubEquipe.cs | 6 ++++-- Sources/BowlingStub/StubJoueur.cs | 6 ++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Sources/BowlingStub/BowlingStub.csproj b/Sources/BowlingStub/BowlingStub.csproj index 132c02c..88ad13a 100644 --- a/Sources/BowlingStub/BowlingStub.csproj +++ b/Sources/BowlingStub/BowlingStub.csproj @@ -6,4 +6,8 @@ enable + + + + diff --git a/Sources/BowlingStub/StubEquipe.cs b/Sources/BowlingStub/StubEquipe.cs index ae8f036..4a76c4e 100644 --- a/Sources/BowlingStub/StubEquipe.cs +++ b/Sources/BowlingStub/StubEquipe.cs @@ -1,3 +1,4 @@ +using BowlingLib.Model; using System; public class StubEquipe @@ -11,7 +12,7 @@ public class StubEquipe { for (int i = 0; i < n; i++) { - listEquipes.Add(new Equipe() { Nom = "Equipe " + i + 1 }); + listEquipes.Add(new Equipe("Equipe " + i + 1)); for(int k = 0; k < j; k++) { @@ -19,6 +20,7 @@ public class StubEquipe } } - } + return listEquipes; + } } diff --git a/Sources/BowlingStub/StubJoueur.cs b/Sources/BowlingStub/StubJoueur.cs index 9a8ad90..5fc7ec1 100644 --- a/Sources/BowlingStub/StubJoueur.cs +++ b/Sources/BowlingStub/StubJoueur.cs @@ -1,4 +1,5 @@ -using System; +using BowlingLib.Model; +using System; public class StubJoueur { @@ -11,8 +12,9 @@ private List listJoueurs = new List(); { for (int i = 0; i < n; i++) { - listJoueurs.Add(new Joueur() { Pseudo = "Joueur "+i+1 }); + listJoueurs.Add(new Joueur("Joueur " + i + 1)); } + return listJoueurs; } }