public LibraryRepositoryMock(ILibraryRepositoryConfig config)
		{
			Config = config;
			Sources = new List<LibraryRepositoryDto>();
			RefreshedLibraries = new List<ILibraryRepositoryConfig>();
			PackagesDetailed = new List<LibraryPackageDetailed>();
		}
		public LibraryRepository(ILibraryRepositoryConfig config, ILibraryLocalFolder folder,
		                         ILibraryRepositorySynchronizer synchronizer, IMashupLoader mashupLoader)
		{
			_config = config;
			_path = Path.Combine(folder.Path, config.Name);
			_initializationMarkFilePath = Path.Combine(_path, InitializationMarkFileName);
			_synchonizer = synchronizer;
			_mashupLoader = mashupLoader;
		}
		public void AddConfig(ILibraryRepositoryConfig config)
		{
			Configs.Add(config);
		}
Exemple #4
0
 public ILibraryRepository GetRepository(ILibraryRepositoryConfig config)
 {
     return(new LibraryRepository(config, _folder, _synchronizer, _mashupLoader));
 }
		private IEnumerable<LibraryPackage> GetPackages(ILibraryRepositoryConfig config)
		{
			return _libraryRepositoryFactory
				.GetRepository(config)
				.GetPackages();
		}
		public ILibraryRepository GetRepository(ILibraryRepositoryConfig config)
		{
			return new LibraryRepository(config, _folder, _synchronizer, _mashupLoader);
		}