Integration testing

In unit testing, we test a single unit of code. In component or service testing, we test mock services depending on an external or third-party component. But integration testing in microservices is a bit challenging or critical as in this type of testing, we test components that work together; also, service calls here should be made with integration with external services. In this test strategy, we make sure that the system is working together correctly and the behavior of services are as expected. In our case, we have various microservices and some of them depend upon external services.

For example, StockService depends upon OrderService in a way that a particular number of items is reduced from the stock as soon as the ...

Get Building Microservices with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.