package TestBanks;
import Banking_6.*;
public class TestBanking_6 {
    public static void main(String[] args) {
        Bank  bank = Bank.getBank();
        Customer customer;
        CustomerReport report = new CustomerReport();
        // Create several customers and their accounts
        bank.addCustomer("Jane", "Simms");
        customer = bank.getCustomer(0);
        customer.setAccount(new SavingAccount(500.00, 0.05),1);
        customer.setAccount(new CheckingAccount(200.00, 400.00),2);
        bank.addCustomer("Owen", "Bryant");
        customer = bank.getCustomer(1);
        customer.setAccount(new CheckingAccount(200.00),2);
        bank.addCustomer("Tim", "Soley");
        customer = bank.getCustomer(2);
        customer.setAccount(new SavingAccount(1500.00, 0.05),1);
        customer.setAccount(new CheckingAccount(200.00),2);
        bank.addCustomer("Maria", "Soley");
        customer = bank.getCustomer(3);
        // Maria and Tim have a shared checking account
        customer.setAccount(bank.getCustomer(2).getCheckingAccount(),1);
        customer.setAccount(new SavingAccount(150.00, 0.05),2);
        // Generate a report
        report.generateReport();
    }
}