Notifications can be tested

Notification ImplementationType was added for showing in UI (Humanized/Title cased of Implementation)
This commit is contained in:
Mark McDowall 2013-06-12 23:41:26 -07:00
commit 8cac7ed1cd
34 changed files with 418 additions and 328 deletions

View file

@ -5,9 +5,9 @@ namespace NzbDrone.Core.Notifications.Email
{
public class Email : NotificationBase<EmailSettings>
{
private readonly EmailProvider _smtpProvider;
private readonly IEmailService _smtpProvider;
public Email(EmailProvider smtpProvider)
public Email(IEmailService smtpProvider)
{
_smtpProvider = smtpProvider;
}
@ -17,6 +17,11 @@ namespace NzbDrone.Core.Notifications.Email
get { return "Email"; }
}
public override string ImplementationName
{
get { return "Email"; }
}
public override void OnGrab(string message)
{
const string subject = "NzbDrone [TV] - Grabbed";