From 42eff5d726b341d47cb8d89d76ff1b745dae392b Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 4 Dec 2016 21:35:31 +0100 Subject: [PATCH] We end up writing our application based on the acceptance test --- .../org/craftedsw/feature/BankKataApplication.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/BankKataApplication.java 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 index 0000000..06773c3 --- /dev/null +++ b/TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/BankKataApplication.java @@ -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(); + } + +} -- 2.1.4