async Task <FeatureRunner> StartFeatures() { var featureRunner = new FeatureRunner(featureActivator); await featureRunner.Start(builder, messageSession).ConfigureAwait(false); return(featureRunner); }
public void SetUp() { CreateActionCatalog(); IStringStepRunner stringStepRunner = new StringStepRunner(actionCatalog); featureRunner = new FeatureRunner(stringStepRunner, MockRepository.GenerateStub <IRunContext>()); }
public void SetIdxSample() { _idxSample = new IdxDocumentsRepository().GetSample(); _idxDocumentIds = _idxSample.Select(x => x.DocumentId).ToList(); FeatureRunner.Log(AventStack.ExtentReports.Status.Info, $"{_idxSample.Count()} sampled from Idx records."); }
public virtual void SetUp() { hooksCatalog = new HooksCatalog(); actionCatalog = new ActionCatalog(); var runContext = new RunContext(MockRepository.GenerateStub <IContextHandler>(), new HooksHandler(hooksCatalog)); IStringStepRunner stringStepRunner = new StringStepRunner(actionCatalog); featureRunner = new FeatureRunner(stringStepRunner, runContext); }
protected IList <FeatureResult> Run(string text, Type actionStepsType) { var parser = new StupidGherkinParser(); var result = parser.Parse(text); var activator = new TrivialObjectActivator(); var runner = new FeatureRunner(activator, new IntelligentPropertySetter(new TrivialPropertySetter(), activator)); return(result.Features .Select(f => runner.Run(f, new[] { actionStepsType }, NullFilter())) .ToList()); }
public RunningEndpointInstance(SettingsHolder settings, IBuilder builder, List <TransportReceiver> receivers, FeatureRunner featureRunner, IMessageSession messageSession, TransportInfrastructure transportInfrastructure) { this.settings = settings; this.builder = builder; this.receivers = receivers; this.featureRunner = featureRunner; this.messageSession = messageSession; this.transportInfrastructure = transportInfrastructure; }
public override void DoSetUp() { runner = new FeatureRunner(new TrivialObjectActivator(), new TrivialPropertySetter()); ClassWithActionSteps.Reset(); }
void Given_the_Feature_is_Empty() { FeatureRunner.Given_the_Feature_is(string.Empty); }