package com.accenture.multibank;

import com.accenture.multibank.accounts.AccountType;
import com.accenture.multibank.bank.Bank;
import com.accenture.multibank.bank.RaiffeisenBank;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author manuel
 * @version 11/29/16
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml", "daos.xml");
        Bank bank = (Bank) context.getBean(RaiffeisenBank.class);
        bank.createAccount(AccountType.CREDIT, 0);
    }
}

@@ -588,16 +588,31 @@
 %0A       
+ Integer from =
  bank.cr
@@ -639,17 +639,127 @@
 ype.
-CREDIT, 0
+SAVING, 1000),%0A                to = bank.createAccount(AccountType.SAVING, 2000);%0A%0A        bank.transfer(from, to, 1001
 );%0A 

test transfer