mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Reworked the custom notifications... again. Need to figure out how to find the view to the model
This commit is contained in:
parent
f0ce5556c3
commit
a19e81d1f8
6 changed files with 112 additions and 35 deletions
|
@ -43,7 +43,7 @@ namespace PlexRequests.Core.Tests
|
|||
var n = new NotificationMessageResolver();
|
||||
var s = new NotificationSettings
|
||||
{
|
||||
Message = new Dictionary<NotificationType, NotificationMessageContent> { { NotificationType.NewRequest, new NotificationMessageContent { Body = body } } }
|
||||
Message = new List<NotificationMessage> { new NotificationMessage { NotificationType = NotificationType.NewRequest, Body = body } }
|
||||
};
|
||||
|
||||
var result = n.ParseMessage(s, NotificationType.NewRequest, param);
|
||||
|
@ -56,7 +56,7 @@ namespace PlexRequests.Core.Tests
|
|||
var n = new NotificationMessageResolver();
|
||||
var s = new NotificationSettings
|
||||
{
|
||||
Message = new Dictionary<NotificationType, NotificationMessageContent> { { NotificationType.NewRequest, new NotificationMessageContent {Subject = subject} } }
|
||||
Message = new List<NotificationMessage> { new NotificationMessage { NotificationType = NotificationType.NewRequest, Subject = subject }}
|
||||
};
|
||||
|
||||
var result = n.ParseMessage(s, NotificationType.NewRequest, param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue