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

Class Money #2

Open
2 of 3 tasks
rfilipo opened this issue Jan 24, 2018 · 1 comment
Open
2 of 3 tasks

Class Money #2

rfilipo opened this issue Jan 24, 2018 · 1 comment

Comments

@rfilipo
Copy link
Owner

rfilipo commented Jan 24, 2018

user story:

  • As a developer, I want a class Money with value, currency symbol, face value and the method exchange so that we can develop the finance app using it as a data type.

acceptance criteria:

  • Properties:

    • value as integer,
      *currency symbol as String,
    • face value with currency symbol as String,
    • country as String,
  • Methods:

    • Money::exchange("currency_symbol") returning a new Money object.

definition of Done:

When all tests PASS.

Notes

Must have a class Money implementing the properties: value as integer, currency symbol, face value with currency symbol as String, country and the method Money::exchange("currency_symbol") returning a new Money object.

  • Create tests

  • Document code

  • Create class

@rfilipo
Copy link
Owner Author

rfilipo commented Jan 30, 2018

Refactor class with MoneyFactory to fit version 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant