title: How to inject service to class with parameters in constructor using autofac?
body: <p>I am developing WPF application and I'm using autofac for dependency injection.
  It's not a problem to inject some service to view model with parameterless constructor:</p>
  
  <pre><code>public class RoomViewModel
  {
      private ISomeService _someService;
      public (ISomeService someService)
      {
          _someService = someService;
      }
  }
  </code></pre>
  
  <p>But I have no idea how to inject service to view model with parameters. For example:</p>
  
  <pre><code>public class BedViewModel
  {
      public BedViewModel(double width, double height)
      {
          //Some logic
      }
  }
  </code></pre>
  
  <p>I am creating BedViewModel dynamically in runtime, like this:</p>
  
  <pre><code>BedViewModel model = new BedViewModel(width, height);
  </code></pre>
  
  <p>So the question, how to inject service to BedViewModel?</p>