From: Gustavo Martin Morcuende Date: Sun, 4 Dec 2016 20:35:31 +0000 (+0100) Subject: We end up writing our application based on the acceptance test X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=42eff5d726b341d47cb8d89d76ff1b745dae392b;p=JavaForFun We end up writing our application based on the acceptance test --- 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(); + } + +}