コード例 #1
0
        private void Affichage()
        {
            string          idClient = Input.Read <string>("Id de client:");
            List <Customer> liste    = Contexte.GetClientsCommandes();

            ConsoleTable.From(liste).Display();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        private void AfficherClientsCommandes()
        {
            List <CommandeClient> Comm = Contexte.GetClientsCommandes();

            ConsoleTable.From(Comm, "Comm").Display("Comm");
        }