title: Constructor dependency code snippet in visual studio
body: <p>I find myself adding dependencies a lot to constructors like so:</p>
  
  <pre><code>public class SomeClass() {
      private ISomeService _service;
      private IAnotherService _anotherService;
      public SomeClass(ISomeService service, IAnotherService anotherService) {
          _service = service;
          _anotherService = anotherService;
      }
  }
  </code></pre>
  
  <p>They're quite tedious to write, I've been looking for code snippets in visual studio to automatically add one to the constructor but haven't found one.</p>
  
  <p>What I want is:</p>
  
  <ul>
  <li>When adding a dependency to a constructor some snippet automatically creates a local variable and assigns to it.</li>
  </ul>
  
  <p>OR</p>
  
  <ul>
  <li>Add a private variable and then some snippet automatically adds it to the constructor and assigns it to the local variable.</li>
  </ul>