title: How to break the registry dependency?
body: <p>I have a code which read some values from the registry.</p>
  
  <p>How to break such a dependency? Here is a piece of code:</p>
  
  <pre><code>RegistryKey readKey = 
          Registry.LocalMachine.OpenSubKey("SOFTWARE\\MyCompany\\MySoft");
  </code></pre>