You've written a service in your ASP.NET Core application that interacts with an external API. To test this service without making actual API calls, what testing approach might you adopt?

  • Mocking
  • Load Testing
  • Integration Testing
  • Regression Testing
To test a service without making actual API calls, you would typically adopt the approach of "mocking." Mocking involves creating simulated objects (mocks) that mimic the behavior of real objects, allowing you to isolate and test the service's logic without involving external dependencies.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *