title: How would you modify this function to IOC?
body: <p>I have a simple function, just want an idea of how I would convert my coding style to IOC.</p>
  
  <pre><code>public User GetUserByID(int userID)
  {
     DataProvider dp = new DataProvider();
  
     return dp.GetUserByID(userID);
  }
  </code></pre>
  
  <p>my dataprovider is simple ADO.net, it opens a connection, calls the sproc and returns the User object.</p>