From 837995a19715b68c752db02be17e7561ee6eab5b Mon Sep 17 00:00:00 2001 From: victor perez ngounou Date: Sun, 25 Sep 2022 17:16:20 +0200 Subject: [PATCH 1/5] Update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 759a040..8d1bb87 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Welcome on the BowlingScoreApp project! - + _Generated with a_ **Code#0** _template_ \ No newline at end of file From cb40d284abe1c8b6229ac2440492271036e3e2ea Mon Sep 17 00:00:00 2001 From: victor perez ngounou Date: Sun, 25 Sep 2022 19:10:07 +0200 Subject: [PATCH 2/5] Create Stub Lib --- Sources/BowlingStub/BowlingStub.csproj | 9 +++++++++ Sources/BowlingStub/StubPartie.cs | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 Sources/BowlingStub/BowlingStub.csproj create mode 100644 Sources/BowlingStub/StubPartie.cs diff --git a/Sources/BowlingStub/BowlingStub.csproj b/Sources/BowlingStub/BowlingStub.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Sources/BowlingStub/BowlingStub.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Sources/BowlingStub/StubPartie.cs b/Sources/BowlingStub/StubPartie.cs new file mode 100644 index 0000000..228b370 --- /dev/null +++ b/Sources/BowlingStub/StubPartie.cs @@ -0,0 +1,8 @@ +namespace BowlingStub +{ + public class StubPartie + { + + + } +} \ No newline at end of file From 68aceda3fbc61137697f17904ad71ceefa3cef63 Mon Sep 17 00:00:00 2001 From: victor perez ngounou Date: Sun, 25 Sep 2022 19:10:07 +0200 Subject: [PATCH 3/5] Create Stub Lib --- Sources/BowlingStub/BowlingStub.csproj | 9 +++++++++ Sources/BowlingStub/StubPartie.cs | 8 ++++++++ Sources/Solution.sln | 6 ++++++ 3 files changed, 23 insertions(+) create mode 100644 Sources/BowlingStub/BowlingStub.csproj create mode 100644 Sources/BowlingStub/StubPartie.cs diff --git a/Sources/BowlingStub/BowlingStub.csproj b/Sources/BowlingStub/BowlingStub.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Sources/BowlingStub/BowlingStub.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Sources/BowlingStub/StubPartie.cs b/Sources/BowlingStub/StubPartie.cs new file mode 100644 index 0000000..228b370 --- /dev/null +++ b/Sources/BowlingStub/StubPartie.cs @@ -0,0 +1,8 @@ +namespace BowlingStub +{ + public class StubPartie + { + + + } +} \ No newline at end of file diff --git a/Sources/Solution.sln b/Sources/Solution.sln index 4105d6d..5078181 100644 --- a/Sources/Solution.sln +++ b/Sources/Solution.sln @@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BowlingApp", "BowlingApp\Bo EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BowlingAppUnitTest", "Tests\BowlingAppUnitTest\BowlingAppUnitTest.csproj", "{F9B12DFD-EF58-429F-9344-70DFC10EC6E5}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BowlingStub", "BowlingStub\BowlingStub.csproj", "{B50615A5-ABFD-4A9C-B236-DBAEDE62AB2E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -29,6 +31,10 @@ Global {F9B12DFD-EF58-429F-9344-70DFC10EC6E5}.Debug|Any CPU.Build.0 = Debug|Any CPU {F9B12DFD-EF58-429F-9344-70DFC10EC6E5}.Release|Any CPU.ActiveCfg = Release|Any CPU {F9B12DFD-EF58-429F-9344-70DFC10EC6E5}.Release|Any CPU.Build.0 = Release|Any CPU + {B50615A5-ABFD-4A9C-B236-DBAEDE62AB2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B50615A5-ABFD-4A9C-B236-DBAEDE62AB2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B50615A5-ABFD-4A9C-B236-DBAEDE62AB2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B50615A5-ABFD-4A9C-B236-DBAEDE62AB2E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 6a7c8c5d4fbc6efd0ed14450a2059b79913b9cb8 Mon Sep 17 00:00:00 2001 From: AUGUSTIN_100 Date: Sun, 25 Sep 2022 20:20:32 +0200 Subject: [PATCH 4/5] Stub Joueur et Equipe --- Sources/BowlingLib/Model/Iloader.cs | 6 ++++++ Sources/BowlingStub/StubEquipe.cs | 24 ++++++++++++++++++++++++ Sources/BowlingStub/StubJoueur.cs | 18 ++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 Sources/BowlingLib/Model/Iloader.cs create mode 100644 Sources/BowlingStub/StubEquipe.cs create mode 100644 Sources/BowlingStub/StubJoueur.cs diff --git a/Sources/BowlingLib/Model/Iloader.cs b/Sources/BowlingLib/Model/Iloader.cs new file mode 100644 index 0000000..93593be --- /dev/null +++ b/Sources/BowlingLib/Model/Iloader.cs @@ -0,0 +1,6 @@ +using System; + +public interface Iloader +{ + +} diff --git a/Sources/BowlingStub/StubEquipe.cs b/Sources/BowlingStub/StubEquipe.cs new file mode 100644 index 0000000..ae8f036 --- /dev/null +++ b/Sources/BowlingStub/StubEquipe.cs @@ -0,0 +1,24 @@ +using System; + +public class StubEquipe +{ + private List listEquipes = new List(); + public StubEquipe() + { + } + + public List 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)); + + } + } + } + +} diff --git a/Sources/BowlingStub/StubJoueur.cs b/Sources/BowlingStub/StubJoueur.cs new file mode 100644 index 0000000..9a8ad90 --- /dev/null +++ b/Sources/BowlingStub/StubJoueur.cs @@ -0,0 +1,18 @@ +using System; + +public class StubJoueur +{ +private List listJoueurs = new List(); + public StubJoueur() + { + } + + public List ListJoueurs(int n = 10) + { + for (int i = 0; i < n; i++) + { + listJoueurs.Add(new Joueur() { Pseudo = "Joueur "+i+1 }); + } + } + +} From 3753cc54e137c69cae575090cf8ec4e8f89abd4d Mon Sep 17 00:00:00 2001 From: victor perez ngounou Date: Wed, 28 Sep 2022 11:36:39 +0200 Subject: [PATCH 5/5] 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; } }