From 9c8786b47a2c77c4f8758b829aedd19ea18335b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 1 Nov 2024 23:32:58 +0100 Subject: [PATCH] Adding test breaking change --- Services/AuditTrailContentVersionNumberService.cs | 2 +- Services/IAuditTrailContentVersionNumberService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Services/AuditTrailContentVersionNumberService.cs b/Services/AuditTrailContentVersionNumberService.cs index d38662e..c27e055 100644 --- a/Services/AuditTrailContentVersionNumberService.cs +++ b/Services/AuditTrailContentVersionNumberService.cs @@ -13,7 +13,7 @@ public class AuditTrailContentVersionNumberService : IAuditTrailContentVersionNu public AuditTrailContentVersionNumberService(ISession session) => _session = session; - public Task GetLatestVersionNumberAsync(string contentItemId) => + public Task GetLatestVersionNumberChangedAsync(string contentItemId) => _session .Query(index => index.CorrelationId == contentItemId && index.Name == Saved) diff --git a/Services/IAuditTrailContentVersionNumberService.cs b/Services/IAuditTrailContentVersionNumberService.cs index 0c48bce..e591689 100644 --- a/Services/IAuditTrailContentVersionNumberService.cs +++ b/Services/IAuditTrailContentVersionNumberService.cs @@ -14,7 +14,7 @@ public interface IAuditTrailContentVersionNumberService /// /// Returns the current largest version number for the content item. /// - Task GetLatestVersionNumberAsync(string contentItemId); + Task GetLatestVersionNumberChangedAsync(string contentItemId); /// /// Returns the version number and its content of a specific version as of the event identified by the given @@ -30,5 +30,5 @@ public static class ContentVersionNumberServiceExtensions public static Task GetLatestVersionNumberAsync( this IAuditTrailContentVersionNumberService service, IContent content) => - service.GetLatestVersionNumberAsync(content?.ContentItem?.ContentItemId); + service.GetLatestVersionNumberChangedAsync(content?.ContentItem?.ContentItemId); }