public virtual SessionContext GetSessionContext(string currentAssemblyLocation, IEnumerable <Assembly> assemblies) { AssemblyRegistry assemblyRegistry = GetAssemblyRegistry(currentAssemblyLocation, assemblies); ParameterConverter.AddCustomConverters(assemblyRegistry); return(new SessionContext(assemblyRegistry)); }
private ISessionContext GetSessionContext(ConfigSettings settings) { var assemblyRegistry = new AssemblyRegistry(settings.AssemblyLocations); ParameterConverter.AddCustomConverters(assemblyRegistry); var sessionContext = new SessionContext(assemblyRegistry); return(sessionContext); }
protected DriverBase(IEventBus eventBus) { //ResultListener = resultListener; _eventBus = eventBus; var assemblyRegistry = new AssemblyRegistry(GetAssemblies()); ScenarioInterpreter = new ScenarioInterpreter(new InterpreterForTypeFactory(assemblyRegistry), new MostRecentlyUsedContext(), new DefaultLanguageService()); LineExecuter = new ScenarioLineExecuter(ScenarioInterpreter, _eventBus); _context = new SessionContext(assemblyRegistry); ParameterConverter.AddCustomConverters(assemblyRegistry); }
public RemoteScenarioExecutor(IRemoteTaskServer server, AssemblyRegistry assemblyRegistry) { _server = server; _assemblyRegistry = assemblyRegistry; _sessionContext = new SessionContext(assemblyRegistry); _eventBus = new EventBus(); new EventBusAutoRegistrar(_assemblyRegistry).InstallTo(_eventBus); _listener = new ResharperResultListener(_server); _resolver = new MostRecentlyUsedContext(); _runner = BuildInPlaceRunner(_resolver); _eventBus.Register(_resolver); _eventBus.Register(_listener); ParameterConverter.AddCustomConverters(_assemblyRegistry); }