title: Not sure if I'm creating a correct lifetime scope
body: <p>One of my Specflow steps is trying to use a method which takes Autofac's <code>ILifetimeScope</code> as a parameter. This is the method the step is trying to call:</p>
  <pre><code>public Client(string clientAddress, ILogger&lt;Client&gt; logger, IFieldDict fieldDict, IdGenerator idGenerator, ILifetimeScope scope);
  </code></pre>
  <p>I don't use Autofac in my Specflow application so am not sure if I'm creating the <code>ILifetimeScope</code> correctly.</p>
  <p>I added this to my constructor but am not sure if it's the correct thing to do but my client instance doesn't seem to be getting created correctly.</p>
  <pre><code>var containerBuilder = new ContainerBuilder();
  container = (Container)containerBuilder.Build();
  var lifetimeScope = container.BeginLifetimeScope(&quot;KEY&quot;);
  _iLifetimeScope = lifetimeScope;
  </code></pre>
  <p>Can anybody advise what I might need to do here?</p>