|
|
@ -3,54 +3,36 @@ using Banquale.Model;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Banquale.Stub
|
|
|
|
namespace Banquale.Stub
|
|
|
|
{
|
|
|
|
{
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
public class Stub : IPersistanceManager
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public (List<Client>, List<Transactions> /*, List<Compte>*/) ChargeDonnee()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Client Client1 = new Client("Jacques", "Morice", "J'aimeLesFrites");
|
|
|
|
|
|
|
|
Client Client2 = new Client("Francis", "Begore", "J'aimeLes");
|
|
|
|
|
|
|
|
Client Client3 = new Client("Michel", "Boudout", "MonMdP");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compte Compte1 = new Compte(999, "Tatouille", "FR76 9161 9581 6296 8415 2361 004");
|
|
|
|
|
|
|
|
Compte Compte2 = new Compte(9510, "Despoints", "FR76 4785 8569 6914 4152 5263 003");
|
|
|
|
|
|
|
|
Compte Compte3 = new Compte(3519, "Perotte", "FR76 6352 2541 4169 6958 5847 002");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Transactions Transactions1 = new Transactions(0, 55, Compte1, "Test", new DateTime(2023, 6, 21));
|
|
|
|
|
|
|
|
Transactions Transactions2 = new Transactions(1, 54.99, Compte2, "Test", new DateTime(2022, 8, 15));
|
|
|
|
|
|
|
|
Transactions Transactions3 = new Transactions(0, 1000, Compte3, "Test", new DateTime(2020, 9, 1));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine(Client1);
|
|
|
|
|
|
|
|
List<Client> ListeClients = new List<Client>();
|
|
|
|
|
|
|
|
List<Transactions> ListeTransactions = new List<Transactions>();
|
|
|
|
|
|
|
|
//List<Compte> ListeCompte = new List<Compte>();
|
|
|
|
|
|
|
|
//ListeCompte.Add( Compte1 );
|
|
|
|
|
|
|
|
//ListeCompte.Add(Compte2);
|
|
|
|
|
|
|
|
//ListeCompte.Add(Compte3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListeClients.Add(Client1);
|
|
|
|
|
|
|
|
ListeClients.Add(Client2);
|
|
|
|
|
|
|
|
ListeClients.Add(Client3);
|
|
|
|
|
|
|
|
return (ListeClients, ListeTransactions /*, ListeCompte*/);
|
|
|
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
public class Stub : IPersistenceManager
|
|
|
|
public class Stub : IPersistenceManager
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public (List<Customer>, List<Transactions>) DataLoad()
|
|
|
|
public (List<Customer>, List<Transactions> /*, List<Account>*/) DataLoad()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Customer Customer1 = new Customer("Jacques", "Morice", "J'aimeLesFrites");
|
|
|
|
Customer Customer1 = new Customer("Jacques", "Morice", "J'aimeLesFrites");
|
|
|
|
Customer Customer2 = new Customer("Francis", "Begore", "J'aimeLes");
|
|
|
|
Customer Customer2 = new Customer("Francis", "Begore", "J'aimeLes");
|
|
|
|
Customer Customer3 = new Customer("Michel", "Boudout", "MonMdP");
|
|
|
|
Customer Customer3 = new Customer("Michel", "Boudout", "MonMdP");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Account Account1 = new Account(999, "Tatouille", "FR76 9161 9581 6296 8415 2361 004");
|
|
|
|
|
|
|
|
Account Account2 = new Account(9510, "Despoints", "FR76 4785 8569 6914 4152 5263 003");
|
|
|
|
|
|
|
|
Account Account3 = new Account(3519, "Perotte", "FR76 6352 2541 4169 6958 5847 002");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Transactions Transactions1 = new Transactions(0, 55, Account1, "Test", new DateTime(2023, 6, 21));
|
|
|
|
|
|
|
|
Transactions Transactions2 = new Transactions(1, 54.99, Account2, "Test", new DateTime(2022, 8, 15));
|
|
|
|
|
|
|
|
Transactions Transactions3 = new Transactions(0, 1000, Account3, "Test", new DateTime(2020, 9, 1));
|
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine(Customer1);
|
|
|
|
Console.WriteLine(Customer1);
|
|
|
|
List<Customer> CustomersList = new List<Customer>();
|
|
|
|
List<Customer> ListeCustomers = new List<Customer>();
|
|
|
|
List<Transactions> TransactionsList = new List<Transactions>();
|
|
|
|
List<Transactions> ListeTransactions = new List<Transactions>();
|
|
|
|
CustomersList.Add(Customer1);
|
|
|
|
//List<Account> ListeAccount = new List<Account>();
|
|
|
|
CustomersList.Add(Customer2);
|
|
|
|
//ListeAccount.Add( Account1 );
|
|
|
|
CustomersList.Add(Customer3);
|
|
|
|
//ListeAccount.Add(Account2);
|
|
|
|
return (CustomersList, TransactionsList);
|
|
|
|
//ListeAccount.Add(Account3);
|
|
|
|
>>>>>>> origin/master
|
|
|
|
|
|
|
|
|
|
|
|
ListeCustomers.Add(Customer1);
|
|
|
|
|
|
|
|
ListeCustomers.Add(Customer2);
|
|
|
|
|
|
|
|
ListeCustomers.Add(Customer3);
|
|
|
|
|
|
|
|
return (ListeCustomers, ListeTransactions /*, ListeAccount*/);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void DataSave(List<Customer> c, List<Transactions> t)
|
|
|
|
public void DataSave(List<Customer> c, List<Transactions> t)
|
|
|
|