private void Affichage() { string idClient = Input.Read <string>("Id de client:"); List <Customer> liste = Contexte.GetClientsCommandes(); ConsoleTable.From(liste).Display(); }
public void TestGetClientsCommandes() { List <CommandeClient> listeTest = Contexte.GetClientsCommandes(); int i = 0; int j = 0; foreach (CommandeClient coCli in listeTest) { if (coCli.CustomerId == "RANCH") { i++; } } Assert.AreEqual(830, listeTest.Count); Assert.AreEqual(5, i); }
private void AfficherClientsCommandes() { List <CommandeClient> Comm = Contexte.GetClientsCommandes(); ConsoleTable.From(Comm, "Comm").Display("Comm"); }