Esempio n. 1
0
 public async Task Test_CreateRequiredFolders()
 {
     using (NASA_FileService fs = new NASA_FileService())
     {
         fs.CreateRequiredFolders();
     }
 }
Esempio n. 2
0
        public async Task Test_SaveNASAPhoto()
        {
            string remoteFileIncludingPath = "https://codeproject.freetls.fastly.net/App_Themes/CodeProject/Img/logo250x135.gif";
            string localFileFolder         = $"{_dataFilePath}Photos\\";
            string localFileIncludingPath  = $"{localFileFolder}{Path.GetFileName(remoteFileIncludingPath)}";

            using (NASA_FileService fs = new NASA_FileService())
            {
                await fs.SaveNASAPhoto(remoteFileIncludingPath, localFileIncludingPath);
            }
        }
Esempio n. 3
0
        public async Task Test_ReadDatesFile()
        {
            List <string> dates;
            string        fileNameWithPath = $"{_dataFilePath}Dates.txt";

            using (NASA_FileService fs = new NASA_FileService())
            {
                dates = fs.ReadDatesFile();
            }
            Assert.IsNotNull(dates);
        }