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

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