Esempio n. 1
0
 /// <summary>
 /// Creates a new BankAccount instance with a specific opening balance for the account.
 /// </summary>
 /// <param name="openingAccountBalance">Balance to open the account with.</param>
 public BankAccount(decimal openingAccountBalance)
 {
     this.balance             = openingAccountBalance;
     this.pendingTransactions = new TransactionCollection();
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new customer, which holds account and transaction information.
 /// </summary>
 /// <param name="accounts">The accounts for this customer.</param>
 public Customer(BankAccountCollection accounts)
 {
     this.accounts           = accounts;
     this.transactionHistory = new TransactionCollection();
 }
Esempio n. 3
0
 public Customer()
 {
     accounts     = new BankAccountCollection();
     transactions = new TransactionCollection();
 }