1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

New: On Delete Notifications

Closes #2410
This commit is contained in:
Robin Dadswell
2021-01-24 09:21:29 +00:00
committed by GitHub
parent 21fafb895f
commit c91fabcf2d
36 changed files with 601 additions and 14 deletions
@@ -64,7 +64,14 @@ namespace NzbDrone.Core.Test.NotificationTests
{
TestLogger.Info("OnRename was called");
}
public override void OnEpisodeFileDelete(EpisodeDeleteMessage message)
{
TestLogger.Info("Episode OnDelete was called");
}
public override void OnSeriesDelete(SeriesDeleteMessage deleteMessage)
{
TestLogger.Info("Series OnDelete was called");
}
public override void OnHealthIssue(NzbDrone.Core.HealthCheck.HealthCheck artist)
{
TestLogger.Info("OnHealthIssue was called");
@@ -107,6 +114,8 @@ namespace NzbDrone.Core.Test.NotificationTests
notification.SupportsOnDownload.Should().BeTrue();
notification.SupportsOnUpgrade.Should().BeTrue();
notification.SupportsOnRename.Should().BeTrue();
notification.SupportsOnSeriesDelete.Should().BeTrue();
notification.SupportsOnEpisodeFileDelete.Should().BeTrue();
notification.SupportsOnHealthIssue.Should().BeTrue();
}
@@ -120,6 +129,8 @@ namespace NzbDrone.Core.Test.NotificationTests
notification.SupportsOnDownload.Should().BeFalse();
notification.SupportsOnUpgrade.Should().BeFalse();
notification.SupportsOnRename.Should().BeFalse();
notification.SupportsOnSeriesDelete.Should().BeFalse();
notification.SupportsOnEpisodeFileDelete.Should().BeFalse();
notification.SupportsOnHealthIssue.Should().BeFalse();
}
}