diff --git a/API.Tests/Services/CacheServiceTests.cs b/API.Tests/Services/CacheServiceTests.cs index f68094611..642d86e0f 100644 --- a/API.Tests/Services/CacheServiceTests.cs +++ b/API.Tests/Services/CacheServiceTests.cs @@ -13,16 +13,16 @@ namespace API.Tests.Services { public class CacheServiceTests { - private readonly CacheService _cacheService; - private readonly ILogger _logger = Substitute.For>(); - private readonly IUnitOfWork _unitOfWork = Substitute.For(); - private readonly IArchiveService _archiveService = Substitute.For(); - private readonly IDirectoryService _directoryService = Substitute.For(); - - public CacheServiceTests() - { - _cacheService = new CacheService(_logger, _unitOfWork, _archiveService, _directoryService); - } + // private readonly CacheService _cacheService; + // private readonly ILogger _logger = Substitute.For>(); + // private readonly IUnitOfWork _unitOfWork = Substitute.For(); + // private readonly IArchiveService _archiveService = Substitute.For(); + // private readonly IDirectoryService _directoryService = Substitute.For(); + // + // public CacheServiceTests() + // { + // _cacheService = new CacheService(_logger, _unitOfWork, _archiveService, _directoryService); + // } // [Fact] // public async void Ensure_ShouldExtractArchive(int chapterId) @@ -82,7 +82,7 @@ namespace API.Tests.Services // cacheService.Configure().GetVolumeCachePath(1, volume.Files.ElementAt(0)).Returns("cache/1/"); // _directoryService.Configure().GetFilesWithExtension("cache/1/").Returns(new string[] {"pexels-photo-6551949.jpg"}); // Assert.Equal(expected, _cacheService.GetCachedPagePath(volume, pageNum)); - Assert.True(true); + //Assert.True(true); } [Fact]