This is a demo project for Integration tests with WireMock.net. The complete blog post you can find here: Using WireMock for dotnet core Integration tests
dotnet run --project CatalogueService/CatalogueService.csproj &
dotnet run --project InventoryService/InventoryService.csproj &
Update inventory:
curl -X PUT --location "http://localhost:5000/v1/inventory" \
-H "Content-Type: application/json" \
-d "{
\"ProductId\": \"yellow-wings\",
\"Quantity\": 699
}"
Get products catalogue:
curl -X GET --location "http://localhost:5010/v1/catalogue/products"
dotnet test CatalogueService.Tests/CatalogueService.Tests.csproj