Permalink
Browse files

Inner loop - Green: Implement repository store transactions

  • Loading branch information...
CarlosMChica committed May 2, 2016
1 parent f1585c3 commit 6b0bf42d59285675f66130ed39851e0ffa11bfa7
@@ -1,12 +1,18 @@
package me.panavtec.androidbankkata.account.transaction;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TransactionRepository {
private final ArrayList<Transaction> transactions = new ArrayList<>();
public void store(Transaction transaction) {
transactions.add(transaction);
}
public List<Transaction> transactions() {
return null;
return Collections.unmodifiableList(transactions);
}
}

0 comments on commit 6b0bf42

Please sign in to comment.