Explicit cache entry settings and expose cache settings in json schema (#17480)
* Changed the cache entry settings to be explicit and exposed it in the schema file * commit of tests * Fix seed options --------- Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
This commit is contained in:
@@ -94,8 +94,6 @@ public class DocumentHybridCacheMockTests : UmbracoIntegrationTestWithContent
|
||||
});
|
||||
|
||||
_mockedNucacheRepository.Setup(r => r.DeleteContentItemAsync(It.IsAny<int>()));
|
||||
var optionsMonitorMock = new Mock<IOptionsMonitor<CacheEntrySettings>>();
|
||||
optionsMonitorMock.Setup(x => x.Get(It.IsAny<string>())).Returns(new CacheEntrySettings());
|
||||
|
||||
_mockDocumentCacheService = new DocumentCacheService(
|
||||
_mockedNucacheRepository.Object,
|
||||
@@ -105,7 +103,7 @@ public class DocumentHybridCacheMockTests : UmbracoIntegrationTestWithContent
|
||||
GetRequiredService<IPublishedContentFactory>(),
|
||||
GetRequiredService<ICacheNodeFactory>(),
|
||||
GetSeedProviders(),
|
||||
optionsMonitorMock.Object,
|
||||
new OptionsWrapper<CacheSettings>(new CacheSettings()),
|
||||
GetRequiredService<IPublishedModelFactory>(),
|
||||
GetRequiredService<IPreviewService>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user