Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }