Пример #1
0
        public void LoadTestAssemblies(string directoryPath)
        {
            TestAssemblies.Clear();
            var testAssemblyInfos = _assemblyLoader.LoadAssemblies(directoryPath);

            testAssemblyInfos.ForEach(testAssemblyInfo => TestAssemblies.Add(testAssemblyInfo));
        }
Пример #2
0
        /// <summary>
        /// Starts the application and loads the assemblies with the given assembly loader
        /// </summary>
        public void StartApplication(IAssemblyLoader loader)
        {
            _loadedAssemblies = loader.LoadAssemblies();
            IList<Type> plugins = new List<Type>();

            foreach (var assembly in _loadedAssemblies)
            {
                OnAssembliesLoading(assembly, plugins);
            }

            OnDependencyLoading(_resolver);

            _pluginService.Store(plugins);
        }