Esempio n. 1
0
        public Customer(Account _account)
        {
            CustomersAccounts cs = new CustomersAccounts()
            {
                account       = _account,
                accountNumber = _account.AccountNumber
            };

            customersAccounts = new List <CustomersAccounts>();
            customersAccounts.Add(cs);
        }
Esempio n. 2
0
        //public List<Customer> Customers { get; }

        public Account(int accountNumber, double balance, double interestRate = DEFAULT_INTEREST_RATE)
        {
            AccountNumber = accountNumber;
            InterestRate  = interestRate;
            Balance       = balance;
            var newCus           = new Customer(this);
            CustomersAccounts cs = new CustomersAccounts()
            {
                customer   = newCus,
                customerID = newCus.Id
            };

            customersAccounts = new List <CustomersAccounts>();
            customersAccounts.Add(cs);
        }