Building Microservices with .NET Core
by Soumya Mukherjee, Gaurav Aroraa, Lalit Kale, Manish Kanwar
Testing microservices
We all know the importance of unit testing and why every developer should be writing these more often than not. Unit tests are a good means to verify the smallest of the functionality that contributes toward building larger systems.
However, testing microservices is not a routine affair like testing a monolith since one microservice might interact with a number of other microservices. In that case, should we utilize the calls to the actual microservices to ensure that the complete workflow is working fine? The answer is no, as this would make developing a microservice dependent on another piece. If we do this, then the whole purpose of having a microservice-based architecture is lost. In order to get around this, we ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access