public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters)
 {
     generatorPluginEvents.CustomizeDependencies += (sender, args) =>
     {
         args.ObjectContainer.RegisterTypeAs <AttributeGeneratorProvider, IUnitTestGeneratorProvider>();
     };
 }
Exemplo n.º 2
0
 public void Initialize(
     GeneratorPluginEvents generatorPluginEvents,
     GeneratorPluginParameters generatorPluginParameters,
     UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     generatorPluginEvents.CustomizeDependencies += (sender, args) => CustomizeGeneratorDependencies(args.ObjectContainer);
 }
Exemplo n.º 3
0
        public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters,
                               UnitTestProviderConfiguration unitTestProviderConfiguration)
        {
            unitTestProviderConfiguration.UseUnitTestProvider(MasterGeneratorProvider.Name);

            generatorPluginEvents.RegisterDependencies += CustomizeDependencies;
        }
Exemplo n.º 4
0
 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);
        }
Exemplo n.º 6
0
 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");
     };
 }
Exemplo n.º 7
0
 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>();
     };
 }
Exemplo n.º 8
0
 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);
        }
Exemplo n.º 10
0
 public void Initialize(
     GeneratorPluginEvents generatorPluginEvents,
     GeneratorPluginParameters generatorPluginParameters,
     UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     generatorPluginEvents.RegisterDependencies += (sender, args) =>
     {
         args.ObjectContainer.RegisterTypeAs <SharedBackgroundFeatureGeneratorProvider, IFeatureGeneratorProvider>();
         args.ObjectContainer.RegisterTypeAs <SharedBackgroundFeatureGenerator, IFeatureGenerator>();
     };
 }
Exemplo n.º 11
0
        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");
            };
        }
Exemplo n.º 12
0
        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);
        }
Exemplo n.º 13
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     unitTestProviderConfiguration.UseUnitTestProvider("xunit"); //todo make a constant
 }
Exemplo n.º 14
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     generatorPluginEvents.ConfigurationDefaults += (sender, args) => { specifyDefaults(args.SpecFlowProjectConfiguration); };
 }
Exemplo n.º 15
0
 public virtual void InitializeInternal(GeneratorPluginEvents events, GeneratorPluginParameters parameters)
 {
 }
Exemplo n.º 16
0
 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;
 }
Exemplo n.º 18
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     unitTestProviderConfiguration.UseUnitTestProvider("nunit");
 }
Exemplo n.º 19
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters)
 {
     generatorPluginEvents.RegisterDependencies += GeneratorPluginEvents_RegisterDependencies;
 }
Exemplo n.º 20
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters,
                        UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     // Register the decorator
     generatorPluginEvents.RegisterDependencies += RegisterDependencies;
 }
Exemplo n.º 21
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     //unitTestProviderConfiguration.UseUnitTestProvider("specs-multiple-configurations");
     generatorPluginEvents.RegisterDependencies  += GeneratorPluginEvents_RegisterDependencies;
     generatorPluginEvents.CustomizeDependencies += GeneratorPluginEvents_CustomizeDependencies;
 }
Exemplo n.º 22
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters)
 {
     generatorPluginEvents.CustomizeDependencies += this.GeneratorPluginEventsOnCustomizeDependencies;
 }
Exemplo n.º 23
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters,
                        UnitTestProviderConfiguration unitTestProviderConfiguration)
 {
     var pars = new SpecFlowGherkinParser(new GherkinDialectProvider());
 }
Exemplo n.º 24
0
 public void Initialize(GeneratorPluginEvents generatorPluginEvents, GeneratorPluginParameters generatorPluginParameters)
 {
 }