public async Task DeleteFileAsync_Test_RepoDoesNotContainFileAfterDeletion()
        {
            await _fileRepo.AddFileAsync(_systemFile);

            await _fileRepo.DeleteFileAsync(_systemFile.Filepath);

            Assert.IsFalse(await _fileRepo.ContainsAsync(_systemFile));
        }
Esempio n. 2
0
 private async Task FilterFilesAgainstDatabaseRecords()
 {
     foreach (var file in userSelectedFiles)
     {
         if (await _fileRepository.ContainsAsync(file.MetadataFile))
         {
             file.MetadataFile.CheckForUpdates = false;
         }
     }
 }