Fixed notifications, episodestatus test

pull/3113/head
kay.one 13 years ago
parent d55e2606ad
commit ed4976de90

@ -70,7 +70,7 @@ namespace NzbDrone.Core.Test
.With(e => e.AirDate = DateTime.Now.AddDays(offsetDays)) .With(e => e.AirDate = DateTime.Now.AddDays(offsetDays))
.With(e => e.Ignored = ignored) .With(e => e.Ignored = ignored)
.With(e => e.EpisodeFileId = 0) .With(e => e.EpisodeFileId = 0)
.With(e => e.GrabDate = DateTime.Now.AddDays(-1)) .With(e => e.GrabDate = DateTime.Now.AddHours(22))
.Build(); .Build();
if (hasEpisodes) if (hasEpisodes)

@ -7,12 +7,12 @@ namespace NzbDrone.Core.Providers
{ {
public class NotificationProvider public class NotificationProvider
{ {
private readonly Dictionary<Guid, BasicNotification> _basicNotifications = private static readonly Dictionary<Guid, BasicNotification> _basicNotifications =
new Dictionary<Guid, BasicNotification>(); new Dictionary<Guid, BasicNotification>();
private readonly Object _lock = new object(); private static readonly Object _lock = new object();
private readonly Dictionary<Guid, ProgressNotification> _progressNotification = private static readonly Dictionary<Guid, ProgressNotification> _progressNotification =
new Dictionary<Guid, ProgressNotification>(); new Dictionary<Guid, ProgressNotification>();
public virtual List<BasicNotification> BasicNotifications public virtual List<BasicNotification> BasicNotifications

Loading…
Cancel
Save