Exemple #1
0
        public void InitializeDownload_Daily__DownloadsAndUnzipsFile()
        {
            StockDefinition stock = new StockDefinition()
            {
                ID = 793, Type = StockType.NBPCurrency, FullName = "USD"
            };
            string downloadFilePath = TestObj.InitializeDownload(stock, DataPumpDownloadRange.Daily);

            downloadFilePath.ShouldBe(Path.Combine(_rootPath, ZipMstnbp));
            File.Exists(downloadFilePath).ShouldBeTrue();
            Directory.Exists(Path.Combine(_rootPath, "mstnbp")).ShouldBeTrue();
            File.Exists(Path.Combine(_rootPath, "mstnbp", stock.FullName + ".mst")).ShouldBeTrue();
        }