Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.67 KB

File metadata and controls

42 lines (24 loc) · 1.67 KB

Check the official WireMock Aspire package

https://github.com/wiremock/WireMock.Net/wiki/Using-WireMock.Net.Aspire

Aspire.Hosting.WireMock CI

Aspire.Hosting.WireMock adds API mocking support for .NET Aspire using WireMock.Net.

This project was created to make it easier to mock external APIs that are out of our control.

Installing the Aspire.Hosting.WireMock NuGet package

NuGet

Install the Fredi.Aspire.Hosting.WireMock package into your Aspire App Host project, e.g. using the dotnet command line in the project directory:

dotnet add package Fredi.Aspire.Hosting.WireMock

Note: I couldn't push Aspire.Hosting.WireMock to NuGet because the Aspire package ID prefix is reserved.

How to use

Please check the sample project.

Open WireMock Inspector Command

image

Note: Requires installation of the WireMockInspector tool.

dotnet tool install WireMockInspector --global --no-cache --ignore-failed-sources

License

Aspire.Hosting.WireMock is licensed under the MIT License.

Contributing

Feel free to contribute to Aspire.Hosting.WireMock. Please log an issue to discuss your contribution before submitting a pull request.