public async Task TearDown()
        {
            // Ensure the application file is removed from storage after to running test
            await _fileStorageService.DownloadApplicationFile(_applicationId, _fileName, _containerType, new CancellationToken());

            // Ensure the page file is removed from storage after to running test
            await _fileStorageService.DeleteFile(_applicationId, _sequenceNumber, _sectionNumber, _pageId, _fileName, _containerType, new CancellationToken());
        }
Ejemplo n.º 2
0
        public void DeleteMember(int memberId)
        {
            var connection = new SqliteConnection("Data Source=" + dbPath);

            connection.Open();
            using (var ic = connection.CreateCommand()) {
                ic.CommandText = "DELETE FROM [Member] " +
                                 " WHERE [Key]=" + memberId;
                ic.ExecuteNonQuery();
            }

            connection.Close();

            FileStorageService storage = new FileStorageService();

            storage.DeleteFile(memberId.ToString());
        }
Ejemplo n.º 3
0
 public IEnumerable <FileOperationWraper> DeleteFile(T fileId, bool deleteAfter, bool immediately)
 {
     return(FileStorageService.DeleteFile("delete", fileId, false, deleteAfter, immediately)
            .Select(FileOperationWraperHelper.Get));
 }