protected override Func <GeneratorServices> GeneratorServicesProvider(Project project) { IVisualStudioTracer tracer = VsxHelper.ResolveMefDependency <IVisualStudioTracer>(ServiceProvider.GlobalProvider); IntegrationOptionsProvider = VsxHelper.ResolveMefDependency <IIntegrationOptionsProvider>(ServiceProvider.GlobalProvider); return(() => new VsGeneratorServices(project, new VsSpecFlowConfigurationReader(project, tracer), tracer, IntegrationOptionsProvider)); }
public NoProjectScope(GherkinFileEditorClassifications classifications, IVisualStudioTracer visualStudioTracer, IIntegrationOptionsProvider integrationOptionsProvider) { GherkinTextBufferParser = new GherkinTextBufferParser(this, visualStudioTracer); GherkinProcessingScheduler = new GherkinProcessingScheduler(visualStudioTracer, false); SpecFlowProjectConfiguration = new SpecFlowProjectConfiguration(); GherkinDialectServices = new GherkinDialectServices(SpecFlowProjectConfiguration.GeneratorConfiguration.FeatureLanguage); Classifications = classifications; IntegrationOptionsProvider = integrationOptionsProvider; }
public VsGeneratorServices(Project project, ISpecFlowConfigurationReader configurationReader, IIdeTracer tracer, IIntegrationOptionsProvider integrationOptionsProvider) : base( //TODO: load dependencies through DI new TestGeneratorFactory(), new RemoteAppDomainTestGeneratorFactory(tracer), new OutOfProcessTestGeneratorFactory(tracer, integrationOptionsProvider.GetOptions()), new VsGeneratorInfoProvider(project, tracer, configurationReader), tracer, false) { this.project = project; this.configurationReader = configurationReader; _integrationOptionsProvider = integrationOptionsProvider; UseOutOfProcess = _integrationOptionsProvider.GetOptions().GenerationMode == GenerationMode.OutOfProcess; }
internal VsProjectScope(Project project, DteWithEvents dteWithEvents, GherkinFileEditorClassifications classifications, IVisualStudioTracer visualStudioTracer, IIntegrationOptionsProvider integrationOptionsProvider, IBindingSkeletonProviderFactory bindingSkeletonProviderFactory) { Classifications = classifications; this.project = project; this.dteWithEvents = dteWithEvents; this.visualStudioTracer = visualStudioTracer; this.integrationOptionsProvider = integrationOptionsProvider; this.bindingSkeletonProviderFactory = bindingSkeletonProviderFactory; var integrationOptions = integrationOptionsProvider.GetOptions(); parser = new GherkinTextBufferParser(this, visualStudioTracer); //TODO: enable when analizer is implemented // if (integrationOptions.EnableAnalysis) // analyzer = new GherkinScopeAnalyzer(this, visualStudioTracer); GherkinProcessingScheduler = new GherkinProcessingScheduler(visualStudioTracer, integrationOptions.EnableAnalysis); }
internal VsProjectScope(Project project, DteWithEvents dteWithEvents, GherkinFileEditorClassifications classifications, IVisualStudioTracer tracer, IIntegrationOptionsProvider integrationOptionsProvider) { Classifications = classifications; this.project = project; this.dteWithEvents = dteWithEvents; this.tracer = tracer; this.integrationOptionsProvider = integrationOptionsProvider; var integrationOptions = integrationOptionsProvider.GetOptions(); parser = new GherkinTextBufferParser(this, tracer); //TODO: enable when analizer is implemented // if (integrationOptions.EnableAnalysis) // analyzer = new GherkinScopeAnalyzer(this, visualStudioTracer); GherkinProcessingScheduler = new GherkinProcessingScheduler(tracer, integrationOptions.EnableAnalysis); GeneratorServices = new VsGeneratorServices(project, new VsSpecFlowConfigurationReader(project, tracer), tracer, integrationOptionsProvider); }
internal VsProjectScope(Project project, DteWithEvents dteWithEvents, GherkinFileEditorClassifications classifications, IVisualStudioTracer tracer, IIntegrationOptionsProvider integrationOptionsProvider) { Classifications = classifications; this.project = project; this.dteWithEvents = dteWithEvents; this.tracer = tracer; this.integrationOptionsProvider = integrationOptionsProvider; var integrationOptions = integrationOptionsProvider.GetOptions(); parser = new GherkinTextBufferParser(this, tracer); //TODO: enable when analizer is implemented // if (integrationOptions.EnableAnalysis) // analyzer = new GherkinScopeAnalyzer(this, visualStudioTracer); GherkinProcessingScheduler = new GherkinProcessingScheduler(tracer, integrationOptions.EnableAnalysis); GeneratorServices = new VsGeneratorServices(project, new VsSpecFlowConfigurationReader(project, tracer), tracer); }
public EnableAnalyticsChecker(IIntegrationOptionsProvider integrationOptionsProvider, IEnvironmentSpecFlowTelemetryChecker environmentSpecFlowTelemetryChecker) { _integrationOptionsProvider = integrationOptionsProvider; _environmentSpecFlowTelemetryChecker = environmentSpecFlowTelemetryChecker; }
public TestRunnerGatewayProvider(IObjectContainer container, IIntegrationOptionsProvider integrationOptionsProvider, IIdeTracer tracer) { this.container = container; this.tracer = tracer; this.integrationOptionsProvider = integrationOptionsProvider; }
public VsGeneratorServices(Project project, IConfigurationReader configurationReader, IIdeTracer tracer, IIntegrationOptionsProvider integrationOptionsProvider) : base( //TODO: load dependencies through DI new TestGeneratorFactory(), new OutOfProcessTestGeneratorFactory(integrationOptionsProvider.GetOptions()), new VsGeneratorInfoProvider(project, tracer, configurationReader), tracer, false) { this.project = project; _configurationReader = configurationReader; }
public EnableAnalyticsChecker(IIntegrationOptionsProvider integrationOptionsProvider) { _integrationOptionsProvider = integrationOptionsProvider; }