Refactored archive code into a service so that I can write tests for it.
This commit is contained in:
parent
07fd959b22
commit
6b76c8b211
22 changed files with 146 additions and 49 deletions
10
API/Interfaces/IArchiveService.cs
Normal file
10
API/Interfaces/IArchiveService.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using System.IO.Compression;
|
||||
|
||||
namespace API.Interfaces
|
||||
{
|
||||
public interface IArchiveService
|
||||
{
|
||||
bool ArchiveNeedsFlattening(ZipArchive archive);
|
||||
public void ExtractArchive(string archivePath, string extractPath);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue