From 31275eb0d974821cb780644040161b49cde44884 Mon Sep 17 00:00:00 2001 From: anperederi Date: Wed, 10 May 2023 08:55:36 +0200 Subject: [PATCH] Update Stub classes --- src/Banquale/Banquale/Stub/EmptyClass.cs | 22 ----------------- src/Banquale/Banquale/Stub/Stub.cs | 30 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 22 deletions(-) delete mode 100644 src/Banquale/Banquale/Stub/EmptyClass.cs create mode 100644 src/Banquale/Banquale/Stub/Stub.cs diff --git a/src/Banquale/Banquale/Stub/EmptyClass.cs b/src/Banquale/Banquale/Stub/EmptyClass.cs deleted file mode 100644 index 45754ff..0000000 --- a/src/Banquale/Banquale/Stub/EmptyClass.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using Banquale.Model; - -namespace Banquale.Stub -{ - public class Stub : IPersistanceManager - { - - (List, List) IPersistanceManager.ChargeDonnee() - { - throw new NotImplementedException(); - } - - void IPersistanceManager.SauvegardeDonnee(List c, List t) - { - throw new NotImplementedException(); - } - - } - -} - diff --git a/src/Banquale/Banquale/Stub/Stub.cs b/src/Banquale/Banquale/Stub/Stub.cs new file mode 100644 index 0000000..1de5a7b --- /dev/null +++ b/src/Banquale/Banquale/Stub/Stub.cs @@ -0,0 +1,30 @@ +using System; +using Banquale.Model; + +namespace Banquale.Stub +{ + public class Stub : IPersistanceManager + { + + (List, List) IPersistanceManager.ChargeDonnee() + { + Client Client1 = new Client("Jacques", "Morice", "J'aimeLesFrites"); + Client Client2 = new Client("Francis", "Begore", "J'aimeLes"); + Client Client3 = new Client("Michel", "Boudout", "MonMdP"); + Console.WriteLine(Client1); + List ListeClients = new List(); + ListeClients.Add(Client1); + ListeClients.Add(Client2); + ListeClients.Add(Client3); + return ListeClients; + } + + void IPersistanceManager.SauvegardeDonnee(List c, List t) + { + throw new NotImplementedException(); + } + + } + +} +