private InPlaceStoryRunner GetRunner() { FakeEventBus = new CapturingEventBus(); var assemblyRegistry = new AssemblyRegistry(new[] { typeof(TestExtensionMethods).Assembly }); var scenarioInterpreter = new ScenarioInterpreter(new InterpreterForTypeFactory(assemblyRegistry), MockRepository.GenerateStub <IAmbiguousMatchResolver>(), new DefaultLanguageService()); return(new InPlaceStoryRunner(scenarioInterpreter, new IncludeAllFilter(), new FakeSessionContext(Context), FakeEventBus)); }
protected void RunStory(Story story) { FakeEventBus = new CapturingEventBus(); //new ExtensionMethodHandler(new AssemblyRegistry(new[] { typeof(TestExtensionMethods).Assembly})); Context = new StoryContext(new FakeSessionContext(), typeof(T)); if (UseCompilingRunner()) { RunInCompilingRunner(story); } else { GetRunner().HandleStory(story); } }