コード例 #1
0
        public static void Add(Customer customer)
        {
            if (customers.Contains(customer))
            {
                throw new ArgumentException("Customer " + customer + " already known.");
            }

            customers.Add(customer);
        }
コード例 #2
0
ファイル: Order.cs プロジェクト: Jonne/FitnesseWorkshop
 public Order(Customer customer)
 {
     this.customer = customer;
 }