Testing Our Code

Let’s learn how to write tests for the code in our counter project.

Importance of testing

One of the benefits of structuring our project into core and boundary layers is that our code organization will simplify testing. With a basic API layer that does most of the business logic, we’ll be able to write tests to exercise our business code thoroughly should we choose to do so. We’ll be able to represent our testing concepts in any way we choose, and we’ll discuss a few strategies as the course progresses.

Commencing our tests

...