Ejemplo n.º 1
0
 public async Task Test_CreateRequiredFolders()
 {
     using (NASA_FileService fs = new NASA_FileService())
     {
         fs.CreateRequiredFolders();
     }
 }
Ejemplo 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);
            }
        }
Ejemplo 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);
        }