Exemplo n.º 1
0
        public void TestInit()
        {
            bc1 = new BankClient { NationalId = "801-89-7744", FirstName = "Roger", LastName = "Green" };

            //BankClient bc2 = new BankClient { NationalId = "835-87-7880", FirstName = "Andrew", LastName = "Evans" };
            //BankClient bc3 = new BankClient { NationalId = "855-33-4267", FirstName = "Jane", LastName = "Marshall" };
            //BankClient bc4 = new BankClient { NationalId = "132-33-1337", FirstName = "Julia", LastName = "Hawkins" };
            //BankClient bc5 = new BankClient { NationalId = "903-81-8769", FirstName = "Dennis", LastName = "Olson" };
        }
Exemplo n.º 2
0
        public BankAccount AddAccount(BankClient client)
        {
            // TODO: We should have some form of a logical check to make sure that the NationalId is unique.

            BankAccount newAccount = new BankAccount(client);

            this.BankAccountList.Add(newAccount);

            return newAccount;
        }
Exemplo n.º 3
0
        public void DoWork()
        {
            Bank DummyBank = new Bank();

            BankClient bc1 = new BankClient { NationalId = "801-89-7744", FirstName = "Roger", LastName = "Green" };
            BankClient bc2 = new BankClient { NationalId = "835-87-7880", FirstName = "Andrew", LastName = "Evans" };
            BankClient bc3 = new BankClient { NationalId = "855-33-4267", FirstName = "Jane", LastName = "Marshall" };
            BankClient bc4 = new BankClient { NationalId = "132-33-1337", FirstName = "Julia", LastName = "Hawkins" };
            BankClient bc5 = new BankClient { NationalId = "903-81-8769", FirstName = "Dennis", LastName = "Olson" };

            BankAccount bc1_acct = DummyBank.AddAccount(bc1);
        }
Exemplo n.º 4
0
 public void TestInit()
 {
     bc1 = new BankClient { NationalId = "801-89-7744", FirstName = "Roger", LastName = "Green" };
 }
Exemplo n.º 5
0
 public BankAccount(BankClient client)
     : this()
 {
     this.OwnerList.Add(client);
 }
Exemplo n.º 6
0
        public void TestInit()
        {
            bc1 = new BankClient { NationalId = "801-89-7744", FirstName = "Roger", LastName = "Green" };
            bc2 = new BankClient { NationalId = "835-87-7880", FirstName = "Andrew", LastName = "Evans" };
            bc3 = new BankClient { NationalId = "855-33-4267", FirstName = "Jane", LastName = "Marshall" };
            bc4 = new BankClient { NationalId = "132-33-1337", FirstName = "Julia", LastName = "Hawkins" };
            bc5 = new BankClient { NationalId = "903-81-8769", FirstName = "Dennis", LastName = "Olson" };

            bcList = new List<BankClient>();
            bcList.Add(bc1);
            bcList.Add(bc2);
            bcList.Add(bc3);
            bcList.Add(bc4);
            bcList.Add(bc5);

            //BankAccount ba2 = new BankAccount(bc1, bc2, bc3);
            //BankAccount ba3 = new BankAccount(bcList);
        }