public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters) { generatorPluginEvents.CustomizeDependencies += (sender, args) => { args.ObjectContainer.RegisterTypeAs <AttributeGeneratorProvider, IUnitTestGeneratorProvider>(); }; }
public void Initialize( GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.CustomizeDependencies += (sender, args) => CustomizeGeneratorDependencies(args.ObjectContainer); }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { unitTestProviderConfiguration.UseUnitTestProvider(MasterGeneratorProvider.Name); generatorPluginEvents.RegisterDependencies += CustomizeDependencies; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters) { if (generatorPluginEvents != null) { generatorPluginEvents.CustomizeDependencies += GeneratorPluginEvents_CustomizeDependencies; } }
private static void LoadPlugin(PluginDescriptor pluginDescriptor, IGeneratorPluginLoader pluginLoader, GeneratorPluginEvents generatorPluginEvents) { var plugin = pluginLoader.LoadPlugin(pluginDescriptor); var generatorPluginParameters = new GeneratorPluginParameters { Parameters = pluginDescriptor.Parameters }; plugin.Initialize(generatorPluginEvents, generatorPluginParameters); }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters) { generatorPluginEvents.RegisterDependencies += (sender, args) => { args.ObjectContainer.RegisterTypeAs <RetryUnitTestFeatureGenerator, IFeatureGenerator>(); args.ObjectContainer.RegisterTypeAs <RetryUnitTestFeatureGeneratorProvider, IFeatureGeneratorProvider>("retry"); args.ObjectContainer.RegisterTypeAs <RemoveRetryTagFromCategoriesDecorator, ITestClassTagDecorator>("retry"); args.ObjectContainer.RegisterTypeAs <RemoveRetryTagFromCategoriesDecorator, ITestMethodTagDecorator>("retry"); }; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.RegisterDependencies += (sender, args) => { args.ObjectContainer.RegisterTypeAs <ExternalDataTestGenerator, ITestGenerator>(); args.ObjectContainer.RegisterTypeAs <ExternalDataFeaturePatcher, IExternalDataFeaturePatcher>(); args.ObjectContainer.RegisterTypeAs <TestDataProvider, ITestDataProvider>(); }; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.CustomizeDependencies += (sender, args) => { if (args.SpecFlowProjectConfiguration.SpecFlowConfiguration.StopAtFirstError) { args.ObjectContainer.RegisterTypeAs <CustomHeaderWriter, ITestHeaderWriter>(); } }; }
private static void LoadPlugin(PluginDescriptor pluginDescriptor, IGeneratorPluginLoader pluginLoader, GeneratorPluginEvents generatorPluginEvents, UnitTestProviderConfiguration unitTestProviderConfigration) { var plugin = pluginLoader.LoadPlugin(pluginDescriptor); var generatorPluginParameters = new GeneratorPluginParameters { Parameters = pluginDescriptor.Parameters }; plugin.Initialize(generatorPluginEvents, generatorPluginParameters, unitTestProviderConfigration); }
public void Initialize( GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.RegisterDependencies += (sender, args) => { args.ObjectContainer.RegisterTypeAs <SharedBackgroundFeatureGeneratorProvider, IFeatureGeneratorProvider>(); args.ObjectContainer.RegisterTypeAs <SharedBackgroundFeatureGenerator, IFeatureGenerator>(); }; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.RegisterDependencies += (sender, args) => { args.ObjectContainer.RegisterTypeAs <ExternalDataTestGenerator, ITestGenerator>(); args.ObjectContainer.RegisterTypeAs <SpecificationProvider, ISpecificationProvider>(); args.ObjectContainer.RegisterTypeAs <DataSourceLoaderFactory, IDataSourceLoaderFactory>(); args.ObjectContainer.RegisterTypeAs <CsvLoader, IDataSourceLoader>("CSV"); args.ObjectContainer.RegisterTypeAs <ExcelLoader, IDataSourceLoader>("Excel"); }; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.RegisterDependencies += (_, args) => { args.ObjectContainer.RegisterTypeAs <Generator, ITestGenerator>(); }; generatorPluginEvents.CustomizeDependencies += (_, args) => { args.ObjectContainer.RegisterTypeAs <MissingExamplesParserFactory, IGherkinParserFactory>(); args.ObjectContainer.Resolve <ExamplesGeneratorContainer>().RegisterGenerator <T>(); }; InitializeInternal(generatorPluginEvents, generatorPluginParameters); }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { unitTestProviderConfiguration.UseUnitTestProvider("xunit"); //todo make a constant }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.ConfigurationDefaults += (sender, args) => { specifyDefaults(args.SpecFlowProjectConfiguration); }; }
public virtual void InitializeInternal(GeneratorPluginEvents events, GeneratorPluginParameters parameters) { }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.RegisterDependencies += (sender, args) => args.ObjectContainer.RegisterTypeAs <CustomDependency, ICustomDependency>(); }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { generatorPluginEvents.CustomizeDependencies += CustomizeDependencies; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { unitTestProviderConfiguration.UseUnitTestProvider("nunit"); }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters) { generatorPluginEvents.RegisterDependencies += GeneratorPluginEvents_RegisterDependencies; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { // Register the decorator generatorPluginEvents.RegisterDependencies += RegisterDependencies; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { //unitTestProviderConfiguration.UseUnitTestProvider("specs-multiple-configurations"); generatorPluginEvents.RegisterDependencies += GeneratorPluginEvents_RegisterDependencies; generatorPluginEvents.CustomizeDependencies += GeneratorPluginEvents_CustomizeDependencies; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters) { generatorPluginEvents.CustomizeDependencies += this.GeneratorPluginEventsOnCustomizeDependencies; }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) { var pars = new SpecFlowGherkinParser(new GherkinDialectProvider()); }
public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters) { }