public void SetupContext() { ResultListener = MockRepository.GenerateStub<IResultListener>(); var inPlaceRunner = new InPlaceStoryRunner(ResultListener, new ScenarioPreprocessor(), new ScenarioInterpreter(new InterpreterForTypeFactory(new ExtensionMethodHandler())), new IncludeAllFilter(), new StoryContextFactory()); inPlaceRunner.Finished(); }
public void SetupContext() { FakeEventBus = MockRepository.GenerateStub <IEventBus>(); FakeSessionContext = new FakeSessionContext(); var scenarioInterpreter = new ScenarioInterpreter(new InterpreterForTypeFactory(new AssemblyRegistry()), MockRepository.GenerateStub <IAmbiguousMatchResolver>(), new DefaultLanguageService()); var inPlaceRunner = new InPlaceStoryRunner(scenarioInterpreter, new IncludeAllFilter(), FakeSessionContext, FakeEventBus); inPlaceRunner.Finished(); }