public GhprTestExecutionEngine( IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, RuntimeConfiguration runtimeConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IStepDefinitionSkeletonProvider stepDefinitionSkeletonProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary <string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker) { _engine = new TestExecutionEngine(stepFormatter, testTracer, errorProvider, stepArgumentTypeConverter, runtimeConfiguration, bindingRegistry, unitTestRuntimeProvider, stepDefinitionSkeletonProvider, contextManager, stepDefinitionMatchService, stepErrorHandlers, bindingInvoker); _reporter = new Reporter(TestingFramework.SpecFlow); }
public TestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, SpecFlowConfiguration specFlowConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary <string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker, IObsoleteStepHandler obsoleteStepHandler, ICucumberMessageSender cucumberMessageSender, ITestResultFactory testResultFactory, ITestPendingMessageFactory testPendingMessageFactory, ITestUndefinedMessageFactory testUndefinedMessageFactory, ITestObjectResolver testObjectResolver = null, IObjectContainer testThreadContainer = null) //TODO: find a better way to access the container { _errorProvider = errorProvider; _bindingInvoker = bindingInvoker; _contextManager = contextManager; _unitTestRuntimeProvider = unitTestRuntimeProvider; _bindingRegistry = bindingRegistry; _specFlowConfiguration = specFlowConfiguration; _testTracer = testTracer; _stepFormatter = stepFormatter; _stepArgumentTypeConverter = stepArgumentTypeConverter; _stepErrorHandlers = stepErrorHandlers?.Values.ToArray(); _stepDefinitionMatchService = stepDefinitionMatchService; _testObjectResolver = testObjectResolver; TestThreadContainer = testThreadContainer; _obsoleteStepHandler = obsoleteStepHandler; _cucumberMessageSender = cucumberMessageSender; _testResultFactory = testResultFactory; _testPendingMessageFactory = testPendingMessageFactory; _testUndefinedMessageFactory = testUndefinedMessageFactory; }
public virtual void SetUp() { TestRunnerManager.Reset(); MockRepository = new MockRepository(); // FeatureContext and ScenarioContext is needed, because the [Binding]-instances live there FeatureLanguage = GetFeatureLanguage(); CultureInfo bindingCulture = GetBindingCulture(); var testThreadContainer = new ObjectContainer(); testThreadContainer.RegisterInstanceAs(new Mock <ITestRunner>().Object); testThreadContainer.RegisterTypeAs <BindingInstanceResolver, IBindingInstanceResolver>(); var containerBuilderMock = new Mock <IContainerBuilder>(); containerBuilderMock.Setup(m => m.CreateScenarioContainer(It.IsAny <IObjectContainer>(), It.IsAny <ScenarioInfo>())) .Returns((IObjectContainer ttc, ScenarioInfo si) => { var scenarioContainer = new ObjectContainer(ttc); scenarioContainer.RegisterInstanceAs(si); return(scenarioContainer); }); ContextManagerStub = new ContextManager(MockRepository.Stub <ITestTracer>(), testThreadContainer, containerBuilderMock.Object); ContextManagerStub.InitializeFeatureContext(new FeatureInfo(FeatureLanguage, "test feature", null), bindingCulture); ContextManagerStub.InitializeScenarioContext(new ScenarioInfo("test scenario")); StepArgumentTypeConverterStub = MockRepository.Stub <IStepArgumentTypeConverter>(); }
public GhprTestExecutionEngine( IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, SpecFlowConfiguration specFlowConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IStepDefinitionSkeletonProvider stepDefinitionSkeletonProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary <string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker, IObsoleteStepHandler obsoleteStepHandler, ITestObjectResolver testObjectResolver, IObjectContainer objectContainer) { _engine = new TestExecutionEngine(stepFormatter, testTracer, errorProvider, stepArgumentTypeConverter, specFlowConfiguration, bindingRegistry, unitTestRuntimeProvider, stepDefinitionSkeletonProvider, contextManager, stepDefinitionMatchService, stepErrorHandlers, bindingInvoker, obsoleteStepHandler, testObjectResolver, objectContainer); }
public StepArgumentTransformationConverter(IStepArgumentTypeConverter stepArgumentTypeConverter, ITestTracer testTracer, IBindingRegistry bindingRegistry, IContextManager contextManager, IBindingInvoker bindingInvoker) { this.stepArgumentTypeConverter = stepArgumentTypeConverter; this.testTracer = testTracer; this.bindingRegistry = bindingRegistry; this.contextManager = contextManager; this.bindingInvoker = bindingInvoker; }
private object[] GetStepTransformationArgumentsFromRegex(string stepSnippet, IStepArgumentTypeConverter stepArgumentTypeConverter, CultureInfo cultureInfo) { var match = Regex.Match(stepSnippet); var argumentStrings = match.Groups.Cast <Group>().Skip(1).Select(g => g.Value); return(argumentStrings .Select((arg, argIndex) => stepArgumentTypeConverter.Convert(arg, ParameterTypes[argIndex], cultureInfo)) .ToArray()); }
public void SetUp() { Mock<IBindingRegistry> bindingRegistryStub = new Mock<IBindingRegistry>(); List<IStepArgumentTransformationBinding> stepTransformations = new List<IStepArgumentTransformationBinding>(); bindingRegistryStub.Setup(br => br.GetStepTransformations()).Returns(stepTransformations); _stepArgumentTypeConverter = new StepArgumentTypeConverter(new Mock<ITestTracer>().Object, bindingRegistryStub.Object, new Mock<IContextManager>().Object, methodBindingInvokerStub.Object); _enUSCulture = new CultureInfo("en-US"); }
public TestRunner() { errorProvider = ObjectContainer.ErrorProvider; testTracer = ObjectContainer.TestTracer; unitTestRuntimeProvider = ObjectContainer.UnitTestRuntimeProvider; stepFormatter = ObjectContainer.StepFormatter; stepDefinitionSkeletonProvider = ObjectContainer.StepDefinitionSkeletonProvider; stepArgumentTypeConverter = ObjectContainer.StepArgumentTypeConverter; }
public StepArgumentTypeConverterTests() { Mock<IBindingRegistry> bindingRegistryStub = new Mock<IBindingRegistry>(); List<IStepArgumentTransformationBinding> stepTransformations = new List<IStepArgumentTransformationBinding>(); bindingRegistryStub.Setup(br => br.GetStepTransformations()).Returns(stepTransformations); _stepArgumentTypeConverter = new StepArgumentTypeConverter(new Mock<ITestTracer>().Object, bindingRegistryStub.Object, new Mock<IContextManager>().Object, methodBindingInvokerStub.Object); _enUSCulture = new CultureInfo("en-US"); }
public TestRunner() { errorProvider = ObjectContainer.ErrorProvider; testTracer = ObjectContainer.TestTracer; unitTestRuntimeProvider = ObjectContainer.UnitTestRuntimeProvider; stepFormatter = ObjectContainer.StepFormatter; bindingRegistry = ObjectContainer.BindingRegistry; stepArgumentTypeConverter = ObjectContainer.StepArgumentTypeConverter; }
public TestExecutionEngine( IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, SpecFlowConfiguration specFlowConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IBindingInvoker bindingInvoker, IObsoleteStepHandler obsoleteStepHandler, ICucumberMessageSender cucumberMessageSender, ITestResultFactory testResultFactory, ITestPendingMessageFactory testPendingMessageFactory, ITestUndefinedMessageFactory testUndefinedMessageFactory, ITestRunResultCollector testRunResultCollector, IAnalyticsEventProvider analyticsEventProvider, IAnalyticsTransmitter analyticsTransmitter, ITestRunnerManager testRunnerManager, IRuntimePluginTestExecutionLifecycleEventEmitter runtimePluginTestExecutionLifecycleEventEmitter, ITestThreadExecutionEventPublisher testThreadExecutionEventPublisher, ITestObjectResolver testObjectResolver = null, IObjectContainer testThreadContainer = null) //TODO: find a better way to access the container { _errorProvider = errorProvider; _bindingInvoker = bindingInvoker; _contextManager = contextManager; _unitTestRuntimeProvider = unitTestRuntimeProvider; _bindingRegistry = bindingRegistry; _specFlowConfiguration = specFlowConfiguration; _testTracer = testTracer; _stepFormatter = stepFormatter; _stepArgumentTypeConverter = stepArgumentTypeConverter; _stepDefinitionMatchService = stepDefinitionMatchService; _testObjectResolver = testObjectResolver; TestThreadContainer = testThreadContainer; _obsoleteStepHandler = obsoleteStepHandler; _cucumberMessageSender = cucumberMessageSender; _testResultFactory = testResultFactory; _testPendingMessageFactory = testPendingMessageFactory; _testUndefinedMessageFactory = testUndefinedMessageFactory; _testRunResultCollector = testRunResultCollector; _analyticsEventProvider = analyticsEventProvider; _analyticsTransmitter = analyticsTransmitter; _testRunnerManager = testRunnerManager; _runtimePluginTestExecutionLifecycleEventEmitter = runtimePluginTestExecutionLifecycleEventEmitter; _testThreadExecutionEventPublisher = testThreadExecutionEventPublisher; }
public TestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, RuntimeConfiguration runtimeConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IDictionary<ProgrammingLanguage, IStepDefinitionSkeletonProvider> stepDefinitionSkeletonProviders, IContextManager contextManager) { this.errorProvider = errorProvider; this.contextManager = contextManager; this.stepDefinitionSkeletonProviders = stepDefinitionSkeletonProviders; this.unitTestRuntimeProvider = unitTestRuntimeProvider; this.bindingRegistry = bindingRegistry; this.runtimeConfiguration = runtimeConfiguration; this.testTracer = testTracer; this.stepFormatter = stepFormatter; this.stepArgumentTypeConverter = stepArgumentTypeConverter; this.currentStepDefinitionSkeletonProvider = stepDefinitionSkeletonProviders[ProgrammingLanguage.CSharp]; // fallback if feature initialization was not proper }
public GhprTestExecutionEngine( IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, SpecFlowConfiguration specFlowConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary <string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker, IObsoleteStepHandler obsoleteStepHandler, ICucumberMessageSender cucumberMessageSender, ITestResultFactory testResultFactory, ITestPendingMessageFactory testPendingMessageFactory, ITestUndefinedMessageFactory testUndefinedMessageFactory, ITestRunResultCollector testRunResultCollector, IAnalyticsEventProvider analyticsEventProvider, IAnalyticsTransmitter analyticsTransmitter, ITestRunnerManager testRunnerManager, ITestObjectResolver testObjectResolver = null, IObjectContainer testThreadContainer = null) { _engine = new TestExecutionEngine(stepFormatter, testTracer, errorProvider, stepArgumentTypeConverter, specFlowConfiguration, bindingRegistry, unitTestRuntimeProvider, contextManager, stepDefinitionMatchService, stepErrorHandlers, bindingInvoker, obsoleteStepHandler, cucumberMessageSender, testResultFactory, testPendingMessageFactory, testUndefinedMessageFactory, testRunResultCollector, analyticsEventProvider, analyticsTransmitter, testRunnerManager, testObjectResolver, testThreadContainer); }
public TestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, RuntimeConfiguration runtimeConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IStepDefinitionSkeletonProvider stepDefinitionSkeletonProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary <string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker) { this.errorProvider = errorProvider; this.bindingInvoker = bindingInvoker; this.contextManager = contextManager; this.unitTestRuntimeProvider = unitTestRuntimeProvider; this.stepDefinitionSkeletonProvider = stepDefinitionSkeletonProvider; this.bindingRegistry = bindingRegistry; this.runtimeConfiguration = runtimeConfiguration; this.testTracer = testTracer; this.stepFormatter = stepFormatter; this.stepArgumentTypeConverter = stepArgumentTypeConverter; this.stepErrorHandlers = stepErrorHandlers == null ? null : stepErrorHandlers.Values.ToArray(); this.stepDefinitionMatchService = stepDefinitionMatchService; }
public TestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, RuntimeConfiguration runtimeConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IStepDefinitionSkeletonProvider stepDefinitionSkeletonProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary<string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker) { this.errorProvider = errorProvider; this.bindingInvoker = bindingInvoker; this.contextManager = contextManager; this.unitTestRuntimeProvider = unitTestRuntimeProvider; this.stepDefinitionSkeletonProvider = stepDefinitionSkeletonProvider; this.bindingRegistry = bindingRegistry; this.runtimeConfiguration = runtimeConfiguration; this.testTracer = testTracer; this.stepFormatter = stepFormatter; this.stepArgumentTypeConverter = stepArgumentTypeConverter; this.stepErrorHandlers = stepErrorHandlers == null ? null : stepErrorHandlers.Values.ToArray(); this.stepDefinitionMatchService = stepDefinitionMatchService; }
public TestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, RuntimeConfiguration runtimeConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IDictionary <ProgrammingLanguage, IStepDefinitionSkeletonProvider> stepDefinitionSkeletonProviders, IContextManager contextManager, IStepDefinitionMatcher stepDefinitionMatcher, IDictionary <string, IStepErrorHandler> stepErrorHandlers) { this.errorProvider = errorProvider; this.stepDefinitionMatcher = stepDefinitionMatcher; this.contextManager = contextManager; this.stepDefinitionSkeletonProviders = stepDefinitionSkeletonProviders; this.unitTestRuntimeProvider = unitTestRuntimeProvider; this.bindingRegistry = bindingRegistry; this.runtimeConfiguration = runtimeConfiguration; this.testTracer = testTracer; this.stepFormatter = stepFormatter; this.stepArgumentTypeConverter = stepArgumentTypeConverter; this.stepErrorHandlers = stepErrorHandlers == null ? null : stepErrorHandlers.Values.ToArray(); this.currentStepDefinitionSkeletonProvider = stepDefinitionSkeletonProviders[ProgrammingLanguage.CSharp]; // fallback if feature initialization was not proper }
public StepDefinitionMatchService(IBindingRegistry bindingRegistry, IStepArgumentTypeConverter stepArgumentTypeConverter, IObjectContainer objectContainer, RuntimeConfiguration runtimeConfiguration) { this.bindingRegistry = bindingRegistry; this.stepArgumentTypeConverter = stepArgumentTypeConverter; // var assemblyLoader = objectContainer.Resolve<IBindingAssemblyLoader>(); // var bindingAssemblies = new List<Assembly>() { };//;//TODO LC // assemblyLoader.Load("OrbisAccess.PublicSite.Specs") // bindingAssemblies.AddRange( // runtimeConfiguration.AdditionalStepAssemblies.Select(assemblyLoader.Load)); //foreach (Assembly assembly in bindingAssemblies) //{ // bindingRegistryBuilder.BuildBindingsFromAssembly(assembly); //} }
public virtual void SetUp() { TestRunnerManager.Reset(); MockRepository = new MockRepository(); // FeatureContext and ScenarioContext is needed, because the [Binding]-instances live there FeatureLanguage = GetFeatureLanguage(); CultureInfo bindingCulture = GetBindingCulture(); var container = new ObjectContainer(); container.RegisterInstanceAs(new Mock <ITestRunner>().Object); ContextManagerStub = new ContextManager(MockRepository.Stub <ITestTracer>(), container); ContextManagerStub.InitializeFeatureContext(new FeatureInfo(FeatureLanguage, "test feature", null), bindingCulture); ContextManagerStub.InitializeScenarioContext(new ScenarioInfo("test scenario")); StepArgumentTypeConverterStub = MockRepository.Stub <IStepArgumentTypeConverter>(); }
public TestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, Configuration.SpecFlowConfiguration specFlowConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IStepDefinitionSkeletonProvider stepDefinitionSkeletonProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary <string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker, ITestObjectResolver testObjectResolver = null, IObjectContainer testThreadContainer = null) //TODO: find a better way to access the container { this.errorProvider = errorProvider; this.bindingInvoker = bindingInvoker; this.contextManager = contextManager; this.unitTestRuntimeProvider = unitTestRuntimeProvider; this.stepDefinitionSkeletonProvider = stepDefinitionSkeletonProvider; this.bindingRegistry = bindingRegistry; this.specFlowConfiguration = specFlowConfiguration; this.testTracer = testTracer; this.stepFormatter = stepFormatter; this.stepArgumentTypeConverter = stepArgumentTypeConverter; this.stepErrorHandlers = stepErrorHandlers == null ? null : stepErrorHandlers.Values.ToArray(); this.stepDefinitionMatchService = stepDefinitionMatchService; this.testObjectResolver = testObjectResolver; this.TestThreadContainer = testThreadContainer; }
public virtual void SetUp() { TestRunnerManager.Reset(); MockRepository = new MockRepository(); // FeatureContext and ScenarioContext is needed, because the [Binding]-instances live there FeatureLanguage = GetFeatureLanguage(); var runtimeConfiguration = ConfigurationLoader.GetDefault(); runtimeConfiguration.BindingCulture = GetBindingCulture(); TestThreadContainer = new ObjectContainer(); TestThreadContainer.RegisterInstanceAs(runtimeConfiguration); TestThreadContainer.RegisterInstanceAs(new Mock <ITestRunner>().Object); TestThreadContainer.RegisterTypeAs <TestObjectResolver, ITestObjectResolver>(); var containerBuilderMock = new Mock <IContainerBuilder>(); containerBuilderMock.Setup(m => m.CreateScenarioContainer(It.IsAny <IObjectContainer>(), It.IsAny <ScenarioInfo>())) .Returns((IObjectContainer fc, ScenarioInfo si) => { var scenarioContainer = new ObjectContainer(fc); scenarioContainer.RegisterInstanceAs(si); return(scenarioContainer); }); containerBuilderMock.Setup(m => m.CreateFeatureContainer(It.IsAny <IObjectContainer>(), It.IsAny <FeatureInfo>())) .Returns((IObjectContainer ttc, FeatureInfo fi) => { var featureContainer = new ObjectContainer(ttc); featureContainer.RegisterInstanceAs(fi); return(featureContainer); }); ContainerBuilderStub = containerBuilderMock.Object; ContextManagerStub = new ContextManager(MockRepository.Stub <ITestTracer>(), TestThreadContainer, ContainerBuilderStub); ContextManagerStub.InitializeFeatureContext(new FeatureInfo(FeatureLanguage, "test feature", null)); ContextManagerStub.InitializeScenarioContext(new ScenarioInfo("test scenario")); StepArgumentTypeConverterStub = MockRepository.Stub <IStepArgumentTypeConverter>(); }
public TestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, RuntimeConfiguration runtimeConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IDictionary<ProgrammingLanguage, IStepDefinitionSkeletonProvider> stepDefinitionSkeletonProviders, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary<string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker, IRuntimeBindingRegistryBuilder bindingRegistryBuilder) { this.errorProvider = errorProvider; //this.stepDefinitionMatcher = stepDefinitionMatcher; this.bindingInvoker = bindingInvoker; this.bindingRegistryBuilder = bindingRegistryBuilder; this.contextManager = contextManager; this.stepDefinitionSkeletonProviders = stepDefinitionSkeletonProviders; this.unitTestRuntimeProvider = unitTestRuntimeProvider; this.bindingRegistry = bindingRegistry; this.runtimeConfiguration = runtimeConfiguration; this.testTracer = testTracer; this.stepFormatter = stepFormatter; this.stepArgumentTypeConverter = stepArgumentTypeConverter; this.stepErrorHandlers = stepErrorHandlers == null ? null : stepErrorHandlers.Values.ToArray(); this.currentStepDefinitionSkeletonProvider = stepDefinitionSkeletonProviders[ProgrammingLanguage.CSharp]; // fallback if feature initialization was not proper this.stepDefinitionMatchService = stepDefinitionMatchService; }
public VerticalTableConverter(IStepArgumentTypeConverter stepArgumentTypeConverter) { this.stepArgumentTypeConverter = stepArgumentTypeConverter; }
public static async Task <object> ConvertAsync(this IStepArgumentTypeConverter converter, object value, Type typeToConvertTo, CultureInfo cultureInfo) { return(await converter.ConvertAsync(value, new RuntimeBindingType(typeToConvertTo), cultureInfo)); }
public static object Convert(this IStepArgumentTypeConverter converter, object value, Type typeToConvertTo, CultureInfo cultureInfo) { return(converter.Convert(value, new RuntimeBindingType(typeToConvertTo), cultureInfo)); }
public StepDefinitionMatcher(IBindingRegistry bindingRegistry, IStepArgumentTypeConverter stepArgumentTypeConverter, IContextManager contextManager) { this.bindingRegistry = bindingRegistry; this.contextManager = contextManager; this.stepArgumentTypeConverter = stepArgumentTypeConverter; }
public object Transform(IContextManager contextManager, object value, ITestTracer testTracer, IStepArgumentTypeConverter stepArgumentTypeConverter, CultureInfo cultureInfo) { object[] arguments; if (Regex != null && value is string) { arguments = GetStepTransformationArgumentsFromRegex((string)value, stepArgumentTypeConverter, cultureInfo); } else { arguments = new object[] { value } }; return(InvokeAction(contextManager, arguments, testTracer)); } }
public HorizontalTableConverter(IStepArgumentTypeConverter stepArgumentTypeConverter) { this.stepArgumentTypeConverter = stepArgumentTypeConverter; }
public StepDefinitionMatchService(IBindingRegistry bindingRegistry, IStepArgumentTypeConverter stepArgumentTypeConverter) { this.bindingRegistry = bindingRegistry; this.stepArgumentTypeConverter = stepArgumentTypeConverter; }
public AllureTestExecutionEngine(IStepFormatter stepFormatter, ITestTracer testTracer, IErrorProvider errorProvider, IStepArgumentTypeConverter stepArgumentTypeConverter, RuntimeConfiguration runtimeConfiguration, IBindingRegistry bindingRegistry, IUnitTestRuntimeProvider unitTestRuntimeProvider, IStepDefinitionSkeletonProvider stepDefinitionSkeletonProvider, IContextManager contextManager, IStepDefinitionMatchService stepDefinitionMatchService, IDictionary <string, IStepErrorHandler> stepErrorHandlers, IBindingInvoker bindingInvoker) : base(stepFormatter, testTracer, errorProvider, stepArgumentTypeConverter, runtimeConfiguration, bindingRegistry, unitTestRuntimeProvider, stepDefinitionSkeletonProvider, contextManager, stepDefinitionMatchService, stepErrorHandlers, bindingInvoker) { }
public void SetUp() { _stepArgumentTypeConverter = new StepArgumentTypeConverter(); _enUSCulture = new CultureInfo("en-US"); }