title: Mock settings in Web.conf with moq
body: <p>I am using <code>VisualStudio.TestTools</code> for unit-tests in my MVC3-application. The file <code>/Web.conf</code> contains a custom configuration which value <code>"false"</code> I cant get in my controller by <code>ConfigurationManager.AppSettings["DisableCheckboxes"];</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/b4CGm.png" alt="screenshot web.conf"></p>
  
  <p>That works well on productive, but not in unit-tests. The value is <code>"null"</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/EX1zQ.png" alt="result of appsettings"></p>
  
  <p>How can I use the framework Moq to Mock the settings in <code>/Web.conf</code>?</p>