Write a test for your Bitcoin program (from the API topic) that converts a number of Bitcoin
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a test for your Bitcoin program (from the API topic) that converts a number of Bitcoin to their value in US Dollars.
Structure your program so you don't need to mock user input.
Structure your program so it's possible to isolate and then mock the API call.
Mock the API call by providing a mock JSON response. Assert that your program calculates the correct value in dollars.
Related Book For
Financial Reporting Financial Statement Analysis and Valuation a strategic perspective
ISBN: 978-1337614689
9th edition
Authors: James M. Wahlen, Stephen P. Baginski, Mark Bradshaw
Posted Date: