JStonham / budjen

MIT License
0 stars 0 forks source link

[5] Write what's happening in pictures in engineering design. #31

Open JStonham opened 5 years ago

JStonham commented 5 years ago

The object is to persist the list of transactions between different instances of the application.

{
  "transactions": [
    {
      "type":"DEBIT",
      "description":"Plastic Surgery",
      "money":-2500000,
      "date":"2018-06-13"
    },
    {
      "type":"CREDIT",
      "description":"Let Flat",
      "money":420000,
      "date":"2018-06-08"
    }
  ]
}

json interpreter add and print transactions

Acceptance Criteria

  1. Given I have not yet used the application, when I run budjen print then I expect no transactions.
  2. Given I have not yet used the application and I provide a transaction, when I run budjen add then I expect transaction to be saved.
  3. Given I have previously used the application, when I run budjen print then I expect a list of transactions.
  4. Given I changed the JSON file to be rubbish, when I run budjen print then I only expect a message telling me to contact the developer.
kinbiko commented 5 years ago

My current thinking (taking into account the code we wrote last time) is something like this. Hopefully you can fill a bit more detail?