title: How to mock ConfigurationManager.AppSettings with moq
body: <p>I am stuck at this point of code that I do not know how to mock:</p>
  
  <pre><code>ConfigurationManager.AppSettings["User"];
  </code></pre>
  
  <p>I have to mock the ConfigurationManager, but I don't have a clue, I am using <a href="http://code.google.com/p/moq/." rel="noreferrer">Moq</a>.</p>
  
  <p>Someone can give me a tip? Thanks!</p>