Add HealthCheckCompletedNotification (#15276)

This commit is contained in:
Erik-Jan Westendorp
2023-11-30 15:53:05 +01:00
committed by GitHub
parent d088ed8bf6
commit c0e0e7bad8
5 changed files with 75 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ using NUnit.Framework;
using Umbraco.Cms.Core;
using Umbraco.Cms.Core.Configuration;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.HealthChecks;
using Umbraco.Cms.Core.HealthChecks.NotificationMethods;
using Umbraco.Cms.Core.Logging;
@@ -105,7 +106,8 @@ public class HealthCheckNotifierJobTests
mockScopeProvider.Object,
mockLogger.Object,
mockProfilingLogger.Object,
Mock.Of<ICronTabParser>());
Mock.Of<ICronTabParser>(),
Mock.Of<IEventAggregator>());
}
private void VerifyNotificationsNotSent() => VerifyNotificationsSentTimes(Times.Never());