📄️ The Foreign Exchange API
The API that we'll be using for our deep dive into Unit testing
📄️ The QuoteService
The Quote Service we'll be testing
📄️ Trying to write a test
Let's try to write a test
📄️ Introducing Mocking
What is mocking and why we need it
📄️ Asserting exceptions
Writing assertions for exceptions
📄️ Verifying expected calls
Verifying calls on items that don't return a result
📄️ Exercise: The quote service
It's your turn to write the rest of the tests for the Quote Service
📄️ Dealing with time
Why time in tests can be problematic
📄️ Testing internals
Writing tests for internal items can be challenging
📄️ Exercise: Testing legacy projects
Let's write unit tests for a legacy project
🗃️ Test driven development
2 items
📄️ Code coverage
What is code coverage and how can we collect it?