public InPlaceScenarioRunner(IResultListener listener, MemberInvoker memberInvoker,
                              ScenarioInterpreter scenarioInterpreter)
 {
     _listener = listener;
     _scenarioInterpreter = scenarioInterpreter;
     _lineExecuter = new ScenarioLineExecuter(memberInvoker, scenarioInterpreter, listener);
 }
Esempio n. 2
0
        protected void BeforeAll()
        {
            _eventBus = StorEvilEvents.Bus;

            _storyContext = TestSession.SessionContext(GetType().Assembly.Location).GetContextForStory();
            _interpreter = new StandardScenarioInterpreter();
            _scenarioLineExecuter = new ScenarioLineExecuter(_interpreter, _eventBus);
        }
Esempio n. 3
0
        protected DriverBase(IResultListener listener)
        {
            _listener = listener;

            ScenarioInterpreter = new ScenarioInterpreter(new InterpreterForTypeFactory(new ExtensionMethodHandler()));

            LineExecuter = new ScenarioLineExecuter(new MemberInvoker(), ScenarioInterpreter, _listener);

            ContextFactory = new StoryContextFactory();
        }
Esempio n. 4
0
 protected DriverBase(IEventBus eventBus)
 {
     //ResultListener = resultListener;
     _eventBus = eventBus;
     var assemblyRegistry = new AssemblyRegistry(GetAssemblies());
     ScenarioInterpreter = new ScenarioInterpreter(new InterpreterForTypeFactory(assemblyRegistry), new MostRecentlyUsedContext(), new DefaultLanguageService());
     LineExecuter = new ScenarioLineExecuter(ScenarioInterpreter, _eventBus);
     _context = new SessionContext(assemblyRegistry);
     ParameterConverter.AddCustomConverters(assemblyRegistry);
 }
Esempio n. 5
0
        protected DriverBase(IEventBus eventBus)
        {
            //ResultListener = resultListener;
            _eventBus = eventBus;
            var assemblyRegistry = new AssemblyRegistry(GetAssemblies());

            ScenarioInterpreter = new ScenarioInterpreter(new InterpreterForTypeFactory(assemblyRegistry), new MostRecentlyUsedContext(), new DefaultLanguageService());
            LineExecuter        = new ScenarioLineExecuter(ScenarioInterpreter, _eventBus);
            _context            = new SessionContext(assemblyRegistry);
            ParameterConverter.AddCustomConverters(assemblyRegistry);
        }
Esempio n. 6
0
 public InPlaceScenarioRunner(IEventBus eventBus, ScenarioInterpreter scenarioInterpreter)
 {
     _eventBus            = eventBus;
     _scenarioInterpreter = scenarioInterpreter;
     _lineExecuter        = new ScenarioLineExecuter(scenarioInterpreter, eventBus);
 }
 public InPlaceScenarioRunner(IEventBus eventBus, ScenarioInterpreter scenarioInterpreter)
 {
     _eventBus = eventBus;
     _scenarioInterpreter = scenarioInterpreter;
     _lineExecuter = new ScenarioLineExecuter(scenarioInterpreter, eventBus);
 }