Mocking external services response #8962
sharpzilla
started this conversation in
General
Replies: 1 comment
-
Maybe Wiremock? https://www.nuget.org/packages/WireMock.Net.Aspire |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing an application on ASP.NET Core 8 using Aspire for infrastructure management. I have containers set up for the database and message bus, and overall everything is working correctly. However, I’ve encountered a challenge when debugging use cases that interact with external HTTP services.
Problem:
When my code interacts with internal dependencies (database, message bus), I can easily debug my code through Aspire containers. But for external HTTP requests, I have to manually modify the code (e.g., by adding mocks) to emulate responses. This slows down the process of testing.
Question:
How can I configure Aspire or container integration to automatically replace external HTTP requests with mock responses during manual debugging? I need a solution that doesn’t require writing full-fledged tests but allows me to quickly test scenarios in the existing Aspire environment.
Beta Was this translation helpful? Give feedback.
All reactions