Skip to content

Igor-Pchelko/blog-wiremock-integration-test

Repository files navigation

Integration tests

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

Run services locally

dotnet run --project CatalogueService/CatalogueService.csproj &
dotnet run --project InventoryService/InventoryService.csproj &

Test services

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"

Execute integration tests

dotnet test CatalogueService.Tests/CatalogueService.Tests.csproj 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages