コード例 #1
0
        async Task <FeatureRunner> StartFeatures()
        {
            var featureRunner = new FeatureRunner(featureActivator);
            await featureRunner.Start(builder, messageSession).ConfigureAwait(false);

            return(featureRunner);
        }
コード例 #2
0
ファイル: FeatureRunnerSpec.cs プロジェクト: gpolunin/NBehave
        public void SetUp()
        {
            CreateActionCatalog();
            IStringStepRunner stringStepRunner = new StringStepRunner(actionCatalog);

            featureRunner = new FeatureRunner(stringStepRunner, MockRepository.GenerateStub <IRunContext>());
        }
コード例 #3
0
        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.");
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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());
        }
コード例 #6
0
 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;
 }
コード例 #7
0
        public override void DoSetUp()
        {
            runner = new FeatureRunner(new TrivialObjectActivator(), new TrivialPropertySetter());

            ClassWithActionSteps.Reset();
        }
コード例 #8
0
 void Given_the_Feature_is_Empty()
 {
     FeatureRunner.Given_the_Feature_is(string.Empty);
 }