예제 #1
0
 public UnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, GeneratorConfiguration generatorConfiguration, IDecoratorRegistry decoratorRegistry)
 {
     this.testGeneratorProvider  = testGeneratorProvider;
     this.codeDomHelper          = codeDomHelper;
     this.generatorConfiguration = generatorConfiguration;
     this.decoratorRegistry      = decoratorRegistry;
 }
 public UnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, SpecFlow.Configuration.SpecFlowConfiguration specFlowConfiguration, IDecoratorRegistry decoratorRegistry)
 {
     this.testGeneratorProvider  = testGeneratorProvider;
     this.codeDomHelper          = codeDomHelper;
     this._specFlowConfiguration = specFlowConfiguration;
     this.decoratorRegistry      = decoratorRegistry;
 }
예제 #3
0
 public TestClassGenerator(IDecoratorRegistry decoratorRegistry, IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, SpecFlowConfiguration specFlowConfiguration)
 {
     _decoratorRegistry     = decoratorRegistry;
     _testGeneratorProvider = testGeneratorProvider;
     _codeDomHelper         = codeDomHelper;
     _specFlowConfiguration = specFlowConfiguration;
 }
 public UnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, GeneratorConfiguration generatorConfiguration, IDecoratorRegistry decoratorRegistry, IStepDefinitionMatchService stepDefinitionMatchService)
 {
     this.testGeneratorProvider   = testGeneratorProvider;
     this.codeDomHelper           = codeDomHelper;
     this.generatorConfiguration  = generatorConfiguration;
     this.decoratorRegistry       = decoratorRegistry;
     m_stepDefinitionMatchService = stepDefinitionMatchService;
 }
 public UnitTestMethodGenerator(IUnitTestGeneratorProvider unitTestGeneratorProvider, IDecoratorRegistry decoratorRegistry, CodeDomHelper codeDomHelper, ScenarioPartHelper scenarioPartHelper, SpecFlowConfiguration specFlowConfiguration)
 {
     _unitTestGeneratorProvider = unitTestGeneratorProvider;
     _decoratorRegistry         = decoratorRegistry;
     _codeDomHelper             = codeDomHelper;
     _scenarioPartHelper        = scenarioPartHelper;
     _specFlowConfiguration     = specFlowConfiguration;
 }
예제 #6
0
 public RetryUnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, GeneratorConfiguration generatorConfiguration, IDecoratorRegistry decoratorRegistry, ITagFilterMatcher tagFilterMatcher)
 {
     this.testGeneratorProvider  = testGeneratorProvider;
     this.codeDomHelper          = codeDomHelper;
     this.generatorConfiguration = generatorConfiguration;
     this.decoratorRegistry      = decoratorRegistry;
     this.tagFilterMatcher       = tagFilterMatcher;
 }
        //NEW CODE END

        public FeatureGeneratorExtended(IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, SpecFlowConfiguration specFlowConfiguration, IDecoratorRegistry decoratorRegistry, string variantKey)
            : base(decoratorRegistry, testGeneratorProvider, codeDomHelper, specFlowConfiguration)
        {
            _testGeneratorProvider = testGeneratorProvider;
            _codeDomHelper         = codeDomHelper;
            _specFlowConfiguration = specFlowConfiguration;
            _decoratorRegistry     = decoratorRegistry;
            _variantHelper         = new VariantHelper(variantKey); //NEW CODE
        }
예제 #8
0
 public RetryUnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider,
                                      CodeDomHelper codeDomHelper, SpecFlowConfiguration specFlowConfiguration,
                                      IDecoratorRegistry decoratorRegistry, ITagFilterMatcher tagFilterMatcher)
 {
     _testGeneratorProvider = testGeneratorProvider;
     _codeDomHelper         = codeDomHelper;
     _specFlowConfiguration = specFlowConfiguration;
     _decoratorRegistry     = decoratorRegistry;
     _tagFilterMatcher      = tagFilterMatcher;
 }
예제 #9
0
 public UnitTestFeatureGenerator(
     IUnitTestGeneratorProvider testGeneratorProvider,
     CodeDomHelper codeDomHelper,
     SpecFlowConfiguration specFlowConfiguration,
     IDecoratorRegistry decoratorRegistry)
 {
     _testGeneratorProvider = testGeneratorProvider;
     _codeDomHelper         = codeDomHelper;
     _specFlowConfiguration = specFlowConfiguration;
     _decoratorRegistry     = decoratorRegistry;
 }
예제 #10
0
        public void DoRegistration(IDecoratorRegistry registry, IApplication application)
        {
            var config = application.Config.GetConfig(this.DecoratorId, PluginConfigType.Decorator);

            if (!config.Enabled)
            {
                Logging.Log.Info($"Skipping disabled Decorator : { DecoratorId }.");
                return;
            }

            registry.RegisterDecorator <TTemplate, TDecoratorContract>(DecoratorId, (template) => CreateDecoratorInstance(template, application));
        }
 public SharedBackgroundFeatureGenerator(
     IUnitTestGeneratorProvider testGeneratorProvider,
     CodeDomHelper codeDomHelper,
     SpecFlowConfiguration generatorConfiguration,
     IDecoratorRegistry decoratorRegistry,
     ProjectSettings projectSettings,
     IGherkinParserFactory gherkinParserFactory)
 {
     _generatorConfiguration   = generatorConfiguration;
     _projectSettings          = projectSettings;
     _gherkinParserFactory     = gherkinParserFactory;
     _unitTestFeatureGenerator = new UnitTestFeatureGenerator(testGeneratorProvider, codeDomHelper, generatorConfiguration, decoratorRegistry);
 }
예제 #12
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);
 }
 public CombinationFeatureGenerator(CodeDomHelper codeDomHelper, SpecFlowConfiguration specFlowConfiguration, IDecoratorRegistry decoratorRegistry, Combination combination) :
     base(new CustomXUnitGeneratorProvider(codeDomHelper, combination), codeDomHelper, specFlowConfiguration, decoratorRegistry)
 {
 }
예제 #14
0
 public CustomUnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, SpecFlowConfiguration specFlowConfiguration, IDecoratorRegistry decoratorRegistry)
     : base(testGeneratorProvider, codeDomHelper, specFlowConfiguration, decoratorRegistry)
 {
 }