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>(); var scenarioInterpreter = new ScenarioInterpreter(new InterpreterForTypeFactory(new AssemblyRegistry()), MockRepository.GenerateStub <IAmbiguousMatchResolver>(), new DefaultLanguageService()); var inPlaceRunner = new InPlaceStoryRunner(scenarioInterpreter, new IncludeAllFilter(), new SessionContext(), FakeEventBus); inPlaceRunner.Finished(); }