Ejemplo n.º 1
0
        public static void Add(Customer customer)
        {
            if (customers.Contains(customer))
            {
                throw new ArgumentException("Customer " + customer + " already known.");
            }

            customers.Add(customer);
        }
Ejemplo n.º 2
0
 public Order(Customer customer)
 {
     this.customer = customer;
 }