Example #1
0
      void testState()
      {
          ProjetSI73.State.Commande commande = new ProjetSI73.State.Commande();
          commande.ajouteProduit(new Produit("véhicule 1"));
          commande.ajouteProduit(new Produit("Accessoire 2"));
          commande.affiche();
          commande.etatSuivant();
          commande.ajouteProduit(new Produit("Accessoire 3"));
          commande.efface();
          commande.affiche();

          ProjetSI73.State.Commande commande2 = new ProjetSI73.State.Commande();
          commande2.ajouteProduit(new Produit("véhicule 11"));
          commande2.ajouteProduit(new Produit("Accessoire 21"));
          commande2.affiche();
          commande2.etatSuivant();
          commande2.affiche();
          commande2.etatSuivant();
          commande2.efface();
          commande2.affiche();
      }
Example #2
0
 public CommandeEnCours(Commande commande)
     : base
         (commande)
 {
 }
Example #3
0
 public CommandeValidee(Commande commande)
     : base
         (commande)
 {
 }
Example #4
0
 public EtatCommande(Commande commande)
 {
     this.commande = commande;
 }
Example #5
0
 public CommandeLivree(Commande commande)
     : base(commande)
 {
 }