title: How to simulate network failure for test purposes (in C#)?
body: <p>I'm building what could be called the DAL for a new app.  Unfortunately, network connectivity to the database is a real problem.</p>
  
  <p>I'd like to be able to temporarily block network access within the scope of my test so that I can ensure my DAL behaves as expected under those circumstances.</p>
  
  <p>UPDATE: There are many manual ways to disable the network, but it sure would be nice if I could enable/disable within the test itself.</p>