public UnitTestMethodGenerator(IUnitTestGeneratorProvider unitTestGeneratorProvider, IDecoratorRegistry decoratorRegistry, CodeDomHelper codeDomHelper, ScenarioPartHelper scenarioPartHelper, SpecFlowConfiguration specFlowConfiguration)
 {
     _unitTestGeneratorProvider = unitTestGeneratorProvider;
     _decoratorRegistry         = decoratorRegistry;
     _codeDomHelper             = codeDomHelper;
     _scenarioPartHelper        = scenarioPartHelper;
     _specFlowConfiguration     = specFlowConfiguration;
 }
Пример #2
0
 public UnitTestFeatureGenerator(
     IUnitTestGeneratorProvider testGeneratorProvider,
     CodeDomHelper codeDomHelper,
     SpecFlowConfiguration specFlowConfiguration,
     IDecoratorRegistry decoratorRegistry)
 {
     _testGeneratorProvider   = testGeneratorProvider;
     _codeDomHelper           = codeDomHelper;
     _specFlowConfiguration   = specFlowConfiguration;
     _decoratorRegistry       = decoratorRegistry;
     _linePragmaHandler       = new LinePragmaHandler(_specFlowConfiguration, _codeDomHelper);
     _scenarioPartHelper      = new ScenarioPartHelper(_specFlowConfiguration, _codeDomHelper, _testGeneratorProvider);
     _unitTestMethodGenerator = new UnitTestMethodGenerator(testGeneratorProvider, decoratorRegistry, _codeDomHelper, _scenarioPartHelper, _specFlowConfiguration);
 }