Exemplo n.º 1
0
        // ajout de client
        private void AjoutClient()
        {
            Console.WriteLine("Entrer le nom du client");
            string Nom = Console.ReadLine();

            Console.WriteLine("Entrer le prenom du client");
            string Prenom = Console.ReadLine();

            Console.WriteLine("Entrer le mail du client");
            string Mail = Console.ReadLine();
            ICollection <Commande> commandes = new Collection <Commande>();

            controleur.AjoutClient(Nom, Prenom, Mail, commandes);
        }
Exemplo n.º 2
0
 public void TestAjoutCok()
 {
     ctrl.AjoutClient("Robert", "Richard", "*****@*****.**", null);
     Assert.AreEqual("Robert", ctrl.GetClients().Last().Nom);
 }