コード例 #1
0
 public void AddOwnerToBankAccount(IBankAccount acc, ICustomer owner)
 {
     if (owner.BankAccounts.Contains(acc))
     {
         throw new ArgumentException("Owner already registered for bank account");
     }
     acc.AddOwner(owner);
 }