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.
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.
Please check the sample project.
Aspire.Hosting.WireMock is licensed under the MIT License.
Feel free to contribute to Aspire.Hosting.WireMock. Please log an issue to discuss your contribution before submitting a pull request.