title: Running coded web tests in VS using restsharp calls
body: <p>I have a test library that handles basic response handling like sending and parsing requests using Restsharp. So for most of the tests that I write, I only have to do something like </p>
  
  <pre><code>ServiceClient client = ServiceProvider.GetClient();
  IRestResponse r = client.createItem(item);
  Item i = r.data;
  </code></pre>
  
  <p>etc and the correct APIs for create and get etc are picked up and processed</p>
  
  <p>I want to create a web test to run performance tests and wanted to know if I could use the same library to handle requests for me and have visual studio know about the requests. Or would I have to use the WebTestRequest class to make calls so that VS can intercept them and return results appropriately?</p>