I have a endpoint of a websevice that we consume with application/xml
header which it accepts and it returns data for a code we look.
Now our code has all implementations for different type of responses, however, I want to simulate a scenario that the service is down and hence I should test my code for what I implemented when it is down.
I don't know how to simulate a service down, can someone please help me with .net C# code