From 1b4cb87370e2dce29f69898e689f01c136df7e74 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Tue, 24 Sep 2024 11:02:22 +0200 Subject: [PATCH] Fixed test build --- .../DocumentHybridCacheMockTests.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/Umbraco.Tests.Integration/Umbraco.PublishedCache.HybridCache/DocumentHybridCacheMockTests.cs b/tests/Umbraco.Tests.Integration/Umbraco.PublishedCache.HybridCache/DocumentHybridCacheMockTests.cs index 5fc467f2f6..d6402b2603 100644 --- a/tests/Umbraco.Tests.Integration/Umbraco.PublishedCache.HybridCache/DocumentHybridCacheMockTests.cs +++ b/tests/Umbraco.Tests.Integration/Umbraco.PublishedCache.HybridCache/DocumentHybridCacheMockTests.cs @@ -103,7 +103,8 @@ public class DocumentHybridCacheMockTests : UmbracoIntegrationTestWithContent GetRequiredService(), GetRequiredService(), GetSeedProviders(), - Options.Create(new CacheSettings())); + Options.Create(new CacheSettings()), + GetRequiredService()); _mockedCache = new DocumentCache(_mockDocumentCacheService, GetRequiredService()); } @@ -163,7 +164,7 @@ public class DocumentHybridCacheMockTests : UmbracoIntegrationTestWithContent await _mockDocumentCacheService.DeleteItemAsync(Textpage); _cacheSettings.ContentTypeKeys = [ Textpage.ContentType.Key ]; - await _mockDocumentCacheService.SeedAsync(); + await _mockDocumentCacheService.SeedAsync(CancellationToken.None); var textPage = await _mockedCache.GetByIdAsync(Textpage.Id); AssertTextPage(textPage); @@ -184,7 +185,7 @@ public class DocumentHybridCacheMockTests : UmbracoIntegrationTestWithContent await _mockDocumentCacheService.DeleteItemAsync(Textpage); _cacheSettings.ContentTypeKeys = [ Textpage.ContentType.Key ]; - await _mockDocumentCacheService.SeedAsync(); + await _mockDocumentCacheService.SeedAsync(CancellationToken.None); var textPage = await _mockedCache.GetByIdAsync(Textpage.Key); AssertTextPage(textPage); @@ -198,7 +199,7 @@ public class DocumentHybridCacheMockTests : UmbracoIntegrationTestWithContent await _mockDocumentCacheService.DeleteItemAsync(Textpage); _cacheSettings.ContentTypeKeys = [ Textpage.ContentType.Key ]; - await _mockDocumentCacheService.SeedAsync(); + await _mockDocumentCacheService.SeedAsync(CancellationToken.None); var textPage = await _mockedCache.GetByIdAsync(Textpage.Id, true); AssertTextPage(textPage); @@ -211,7 +212,7 @@ public class DocumentHybridCacheMockTests : UmbracoIntegrationTestWithContent _cacheSettings.ContentTypeKeys = [ Textpage.ContentType.Key ]; await _mockDocumentCacheService.DeleteItemAsync(Textpage); - await _mockDocumentCacheService.SeedAsync(); + await _mockDocumentCacheService.SeedAsync(CancellationToken.None); var textPage = await _mockedCache.GetByIdAsync(Textpage.Key, true); AssertTextPage(textPage);