mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Added series update notification.
This commit is contained in:
@@ -12,6 +12,7 @@ namespace NzbDrone.Core.Providers.Fakes
|
||||
|
||||
|
||||
ProgressNotification fakeNotification = new ProgressNotification("Updating Series");
|
||||
ProgressNotification fakeNotification2 = new ProgressNotification("Updating Series2");
|
||||
public void Register(ProgressNotification notification)
|
||||
{
|
||||
_progressNotification.Add(notification.Id, notification);
|
||||
@@ -27,14 +28,16 @@ namespace NzbDrone.Core.Providers.Fakes
|
||||
get { return new List<BasicNotification>(_basicNotifications.Values); }
|
||||
}
|
||||
|
||||
public List<ProgressNotification> ProgressNotifications
|
||||
public List<ProgressNotification> GetProgressNotifications
|
||||
{
|
||||
|
||||
get
|
||||
{
|
||||
fakeNotification.Status = NotificationStatus.InProgress;
|
||||
fakeNotification.Status = NotificationStatus.InProgress;
|
||||
fakeNotification2.CurrentStatus = DateTime.UtcNow.ToString();
|
||||
fakeNotification.CurrentStatus = DateTime.Now.ToString();
|
||||
return new List<ProgressNotification> { fakeNotification };
|
||||
return new List<ProgressNotification> { fakeNotification , fakeNotification2 };
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user