title: How to test Webrequest Timeout
body: <p>My problem is for how do i test a Webrequest timeout . My C# code is making a SOAP service call to a 3rd party vendor whose code i do not have .  When their service goes down , most of my application URLs also go down as well.</p>
  
  <p>So I thought of adding a timeout ; and read this blog as well which was helpful , but what would be the best way to test my code ?</p>
  
  <p><a href="https://stackoverflow.com/questions/1500955/adjusting-httpwebrequest-connection-timeout-in-c-sharp">Adjusting HttpWebRequest Connection Timeout in C#</a></p>