feature/ci (#1)
Consolidate data and config into separate folders that will be expected to be mapped in the container Reviewed-on: #1 Co-authored-by: Huy Nguyen <ecenshu@gmail.com> Co-committed-by: Huy Nguyen <ecenshu@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
@@ -3,6 +3,7 @@ using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using LibHac.Ncm;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using Microsoft.Extensions.Hosting.Internal;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Moq;
|
||||
@@ -44,6 +45,7 @@ namespace TinfoilVibeServerTest.Tests
|
||||
_loggerMock = new Mock<ILogger<SnapshotService>>();
|
||||
_archiveHander = new Mock<IArchiveHandler>();
|
||||
_nspExtractorMock = new Mock<INSPExtractor>();
|
||||
var hostEnv = new Mock<HostingEnvironment>();
|
||||
var memoryCacheOptions = Options.Create(new MemoryCacheOptions());
|
||||
_memoryCache = new MemoryCache(memoryCacheOptions);
|
||||
|
||||
@@ -52,7 +54,8 @@ namespace TinfoilVibeServerTest.Tests
|
||||
_nspExtractorMock.Setup(extractor => extractor.ExtractFromStream(It.IsAny<Stream>())).Returns(
|
||||
new NcaMetadataWithHash(titleId: "0000000000000000","0000000000000000", version: 1, ContentMetaType.Application, "HASH"));
|
||||
//Settings.RootDirs = new List<string> { "TestData/Root1", "TestData/Root2" };
|
||||
_service = new SnapshotService(_memoryCache, _mockOptions.Object, _nspExtractorMock.Object, _archiveHander.Object, _loggerMock.Object);
|
||||
|
||||
_service = new SnapshotService(_memoryCache, _mockOptions.Object, _nspExtractorMock.Object, _archiveHander.Object, _loggerMock.Object, hostEnv.Object);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
|
||||
Reference in New Issue
Block a user