title: How do you refactor static classes to use dependency injection?
body: <p>I've inherited some code that has a class AuthenticationManager with all static methods.</p>
  
  <p>Im introducing DI and wanted to add a constructor that took a dependency UserController</p>
  
  <pre><code>UserController _userController;
  
  public AuthenticationManager(UserController userCont)
  {
      _userController = userCont;
  }
  </code></pre>
  
  <p>Now Im getting the compile time error as a non-static variable is referenced from a static method. What would your best practice recommendation be to get this to work with the minmimal changes to this class and the calling code?</p>
  
  <p>We're using the SimpleServiceLocator as the IOC container.</p>