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