Modif Fusion
continuous-integration/drone/push Build is failing Details

pull/138/head
Hugo LIVET 2 years ago
parent d4cd93bc97
commit bc7c834b5a

@ -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)

@ -25,7 +25,7 @@ namespace TestsUnitaires
public void TestConstructeurCompte2()
{
List<Operation> 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);

Loading…
Cancel
Save