We end up writing our application based on the acceptance test
authorGustavo Martin Morcuende <gustavo.martin@scmspain.com>
Sun, 4 Dec 2016 20:35:31 +0000 (21:35 +0100)
committerGustavo Martin Morcuende <gustavo.martin@scmspain.com>
Sun, 4 Dec 2016 20:35:31 +0000 (21:35 +0100)
TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/BankKataApplication.java [new file with mode: 0644]

diff --git a/TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/BankKataApplication.java b/TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/BankKataApplication.java
new file mode 100644 (file)
index 0000000..06773c3
--- /dev/null
@@ -0,0 +1,19 @@
+package org.craftedsw.feature;
+
+public class BankKataApplication {
+
+       public static void main(String[] args) {
+               Clock clock = new Clock();
+               TransactionRepository transactionRepository = new TransactionRepository(clock );
+               Console console = new Console();
+               StatementPrinter statementPrinter = new StatementPrinter(console );
+               Account account = new Account(transactionRepository , statementPrinter );
+               
+               account.deposit(1000);
+               account.withdraw(400);
+               account.deposit(100);
+
+               account.printStatement();
+       }
+
+}