title: Unit testing APIs that require OAuth tokens
body: <p>I am trying to write a suite of automated integration tests to test my C# client library calls to the <a href="http://developer.yahoo.com/fantasysports/guide/" rel="noreferrer">Yahoo Fantasy Sports API</a>.  Several API calls require OAuth tokens, which is where I am having some difficulty.  I can use a web browser to generate an access key and secret and then pass those along in my test code, but the tokens expire after an hour, so I need to manually regenerate these and update my test configuration any time I want to run the tests.</p>
  
  <p>Are there best practices for writing API integration tests when OAuth tokens are required?</p>