예제 #1
0
        private InPlaceStoryRunner BuildInPlaceRunner(RemoteTask remoteTask)
        {
            _listener = new ResharperResultListener(_server, remoteTask);
            IScenarioPreprocessor preprocessor = new ScenarioPreprocessor();

            return new InPlaceStoryRunner(_listener, preprocessor, new ScenarioInterpreter(new InterpreterForTypeFactory(new ExtensionMethodHandler())), new IncludeAllFilter(), _factory );
        }
예제 #2
0
 private IStoryHandler BuildInPlaceRunner(IAmbiguousMatchResolver resolver)
 {
     IScenarioPreprocessor preprocessor = new ScenarioPreprocessor();
     var sameDomainHandlerFactory = new SameDomainHandlerFactory(new AssemblyGenerator(), _assemblyRegistry,new Filesystem());
     return new InPlaceCompilingStoryRunner(sameDomainHandlerFactory, preprocessor, new IncludeAllFilter(), _sessionContext, _eventBus);
 }
예제 #3
0
        private IStoryHandler BuildInPlaceRunner(IAmbiguousMatchResolver resolver)
        {
            IScenarioPreprocessor preprocessor = new ScenarioPreprocessor();

            //var interpreterForTypeFactory = new InterpreterForTypeFactory(new ExtensionMethodHandler(_assemblyRegistry));

            //var scenarioInterpreter = new ScenarioInterpreter(interpreterForTypeFactory, resolver);

            //return new InPlaceStoryRunner(preprocessor, scenarioInterpreter, new IncludeAllFilter(), _sessionContext, _eventBus );
            return new InPlaceCompilingStoryRunner(new RemoteHandlerFactory(new AssemblyGenerator(), _assemblyRegistry, new Filesystem()),  preprocessor, new IncludeAllFilter(), _sessionContext, _eventBus);
        }