From bc7c834b5a2f78463e478e1ee121fa6eb0da544b Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Thu, 5 Jan 2023 16:29:47 +0100 Subject: [PATCH] Modif Fusion --- Sources/Data/PersStub.cs | 4 ++-- Sources/TestsUnitaires/TestUnitCompte.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Data/PersStub.cs b/Sources/Data/PersStub.cs index 6f2b2ca..57a6162 100644 --- a/Sources/Data/PersStub.cs +++ b/Sources/Data/PersStub.cs @@ -63,10 +63,10 @@ namespace Data public void CreateInscrit(Inscrit inscrit){ lesInscrits.Add(inscrit); } - public string LastInscrit() + /*public string LastInscrit() { return lesInscrits[lesInscrits.Count - 1].Id; - } + }*/ public bool ExistEmail(string mail) { foreach(Inscrit i in lesInscrits) diff --git a/Sources/TestsUnitaires/TestUnitCompte.cs b/Sources/TestsUnitaires/TestUnitCompte.cs index 41312ec..3fbb1af 100644 --- a/Sources/TestsUnitaires/TestUnitCompte.cs +++ b/Sources/TestsUnitaires/TestUnitCompte.cs @@ -25,7 +25,7 @@ namespace TestsUnitaires public void TestConstructeurCompte2() { List testlistope = new(); - Operation testope = new("test", 20, DateTime.Now, MethodePayement.Cb); + Operation testope = new("test", 20, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true, true); testlistope.Add(testope); Compte c1 = new("012345678901", "Livret A", 234,testlistope); Compte c2 = new("012345678902", "&e23R_te7", 1245.34, testlistope); @@ -48,7 +48,7 @@ namespace TestsUnitaires public void testAjouterOperation() { Compte c1 = new("012345678901", "Livret A", 234); - c1.ajouterOperation(new("test", 20, DateTime.Now, MethodePayement.Cb)); + c1.ajouterOperation(new("test", 20, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true, true)); Assert.True(c1.LesOpe.Count() == 1); } @@ -56,7 +56,7 @@ namespace TestsUnitaires public void testSupprimerOperation() { Compte c1 = new("012345678901", "Livret A", 234); - Operation testope = new("test", 20, DateTime.Now, MethodePayement.Cb); + Operation testope = new("test", 20, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true, true); c1.ajouterOperation(testope); Assert.True(c1.LesOpe.Count() == 1); c1.supprimerOperation(testope);