using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { public class Stub { public List Banques = new(); public List Inscrits = new(); public List Comptes = new(); public List operations = new(); // ajouter load all pour tout les inscrits public List LoadInscrit() { Inscrits.Add(new("00001", "Evard", "lucasevard@gmail.com","Lucas","test",10,LoadBanques())); Inscrits.Add(new("00002", "Livet", "hugolivet@gmail.com", "Hugo", "test", 280,LoadBanques())); Inscrits.Add(new("00003", "Smith", "smith@gmail.com", "Luke", "test", 150,LoadBanques())); Inscrits.Add(new("00004", "Jean", "jean@gmail.com", "sylvain", "test", 410,LoadBanques())); Inscrits.Add(new("00005", "Franc", "franc@gmail.com", "Julie", "test", 820,LoadBanques())); Inscrits.Add(new("00006", "March", "march@gmail.com", "bastien", "test", 1120,LoadBanques())); return Inscrits; } public List LoadBanques() { Banques.Add(new("BNP Paribas", "https://mabanque.bnpparibas/", "https://logos-marques.com/wp-content/uploads/2020/12/BNP-Paribas-logo.png",LoadCompte())); Banques.Add(new("Crédit Agricole", "https://www.credit-agricole.fr", "https://yt3.ggpht.com/a/AGF-l7_mEfX2eQaGm8GefLOg5ZMRciNw-pESE3gUWg=s900-c-k-c0xffffffff-no-rj-mo",LoadCompte())); return Banques; } public List LoadCompte() { Comptes.Add(new("Livret A", 1500)); Comptes.Add(new("Compte Courant", 2000)); Comptes.Add(new("PEL", 22000)); return Comptes; } // Load les opérations public List loadOperation() { operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); return operations; } } }