Exemple #1
0
        public DefaultStoreConfig()
        {
            var packagesCacheDir = new DirectoryInfo(Path.Combine(StorePath.FullName, PackagesCacheDirectory));
            var config           = new PostgresDownloaderConfig(packagesCacheDir);
            var downloader       = new PostgresPackageDownloader(config);

            PackageResolver = new DefaultPackageResolver(downloader);
        }
        public void Should_download_postgres_package()
        {
            var config     = new DefaultStoreConfig();
            var cacheDir   = new DirectoryInfo(Path.Combine(config.ArtifactStorePath.FullName, config.PackagesCache));
            var downloader = new PostgresPackageDownloader(new PostgresDownloaderConfig(cacheDir));
            var distro     = new Distribution.Distribution(new Version("9.3.20"), OSPlatform.Windows, Architecture.X64);

            var package = downloader.GetPackage(distro);

            Assert.NotNull(package);
        }