Code cleanup. Implemented ability to schedule Library Backups.

This commit is contained in:
Joseph Milazzo 2021-02-17 08:58:36 -06:00
parent 83b9394b17
commit b4ee16d8d1
35 changed files with 217 additions and 91 deletions

View file

@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using API.Entities.Enums;
using API.Parser;

View file

@ -1,6 +1,6 @@
using System.IO;
using System.IO.Compression;
using API.Interfaces;
using API.Interfaces.Services;
using API.Services;
using Microsoft.Extensions.Logging;
using NSubstitute;

View file

@ -10,10 +10,10 @@ namespace API.Tests.Services
// private readonly IArchiveService _archiveService = Substitute.For<IArchiveService>();
// private readonly IDirectoryService _directoryService = Substitute.For<DirectoryService>();
public CacheServiceTests()
{
//_cacheService = new CacheService(_logger, _unitOfWork, _archiveService, _directoryService);
}
// public CacheServiceTests()
// {
// //_cacheService = new CacheService(_logger, _unitOfWork, _archiveService, _directoryService);
// }
//string GetCachedPagePath(Volume volume, int page)
[Fact]

View file

@ -1,5 +1,4 @@
using API.Interfaces;
using API.Services;
using API.Services;
using Microsoft.Extensions.Logging;
using NSubstitute;
using Xunit;

View file

@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using API.Entities;
using API.Entities.Enums;
using API.Interfaces;
using API.Interfaces.Services;
using API.Parser;
using API.Services;
using Microsoft.Extensions.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NSubstitute;
using Xunit;
using Xunit.Abstractions;