How to use AutoFac with SpecFlow.SharedSteps? #461
-
Hi all, I'm trying to use AutoFac instead of DependancyInjection on our solution as it the only one that allow the definition of object instance at Global Level, Feature level and Scenario Level - DependancyInjection do not allow the Global level. My problem is that when SpecFlow.SharedSteps invoke the other scenario, the container is not pass to it and so all the classes that has been instantiated from the "caller" scenario are "reseted" on the child scenario. How can we pass the current IObjectContainer to the called scenario to not loose the current context? thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
SpecFlow.SharedSteps (I have never heard about this before) is a plugin for SpecFlow. It will definitely not work with Reqnroll as it is. You need to adapt the code to Reqnroll or ask the maintainer to do so. |
Beta Was this translation helpful? Give feedback.
SpecFlow.SharedSteps (I have never heard about this before) is a plugin for SpecFlow. It will definitely not work with Reqnroll as it is. You need to adapt the code to Reqnroll or ask the maintainer to do so.