Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code changes for application test #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rlperez
Copy link

@rlperez rlperez commented Aug 12, 2016

No description provided.

Unignore unit test and fix it

no need for a var in summary. Make summations more idiomatic eliminating intermediate collections. Use common function in total sum

Change var to val

Add new tests for getfirstcustomer and make test val names match the type of account they are

Remove dangerous list access to use safer operations

If we are going to use mutable state it should be as hidden as possible and also a var isn't needed here

Make the var a val in account case class, use enum for account types, and add unit tests for account types
…saction

make transaction date an argument to facilitate testing

Implement MaxiSavings interest feature change

Implement MaxiSavings interest feature change

DateProvider singleton really isn't needed and remove more vars. Also move accounts out of customer constructor

I didn't like the returns mixed into the interest logic

Add transfer function. Also add an account balance var to avoid having to sum transactions every time we need that data

Removed the balance checks. It's not a requirement and should not be present

Add transfer test and verification test of balance matching transaction sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant