Tests - MarcosPiedra/CalculatorService GitHub Wiki
There are two project created as test:
CalculatorService.WebAPI.Tests.Integration:
- It is focused to test several components at the same time, for instance a check that the method /div (calling by a http client) and should be respond correctly with the proper content.
CalculatorService.WebAPI.Tests.Unit
- Focused on the components and will expect correct behavior in the system. Using mocks/stub for replace the service (mostly using by constructor).
In the repository you can see a collection of tests prepared for using in the Postman. In this file CalculatorService.postman_collection.json contains a collection. Just need to import in Postman and run the test. The tests basically check that all methods respond with the correct status and check that the content is correct. In the following image It can see that all tests passed correctly.