Merge pull request 'modification du Stub désormais fonctionnelle' (#137) from modifStub into master
continuous-integration/drone/push Build is failing Details

Reviewed-on: #137
pull/138/head
Vincent ASTOLFI 2 years ago
commit 2f4a85f154

@ -33,18 +33,39 @@ namespace Data
}
public void SupprimerBanqueBdd(Inscrit inscrit, Banque banque)
{
throw new NotImplementedException();
foreach(Inscrit i in lesInscrits)
{
if (i == inscrit)
{
foreach(Banque b in i.LesBanques)
{
if(b == banque)
{
i.SupprimerBanque(b);
}
}
}
}
}
public void SupprimerToutesBanquesBdd(Inscrit inscrit)
{
throw new NotImplementedException();
foreach(Inscrit i in lesInscrits)
{
if(i == inscrit)
{
foreach(Banque b in i.LesBanques)
{
i.SupprimerBanque(b);
}
}
}
}
public void CreateInscrit(Inscrit inscrit){
lesInscrits.Add(inscrit);
}
public string LastInscrit()
{
return "1";
return lesInscrits[lesInscrits.Count - 1].Id;
}
public bool ExistEmail(string mail)
{
@ -79,9 +100,20 @@ namespace Data
}
return "inexistant";
}
public int CalculTotalSoldeComtpe(Inscrit user)
public int CalculTotalSoldeComtpe(Inscrit inscrit)
{
int totalSoldeComtpe = 0;
foreach(Inscrit i in lesInscrits)
{
if(i == inscrit)
{
foreach(Banque b in i.LesBanques)
{
return 0;
totalSoldeComtpe = b.ListeDesComptes.Sum(x => Convert.ToInt32(x));
}
}
}
return totalSoldeComtpe;
}
public List<Banque> LoadBanqueId(string id)
{
@ -121,6 +153,11 @@ namespace Data
{
return LoadOperation.LoadOperationsFromOFX(ofx);
}
public string LoadInscrit(string id, string mdp)
{
throw new NotImplementedException();
}
}
}

Loading…
Cancel
Save