private static WindowsPhoneRawPushNotificationMessage GetValidWindowsPhoneRawPushNotificationMessage()
        {
            var message = new WindowsPhoneRawPushNotificationMessage()
            {
                NotificationUri = WindowsPhonePushNotificationMessageUnitTest.ChannelUri,
                NameValues = new System.Collections.Generic.Dictionary<string, string>()
                {
                {"Value1", "Raw Header"},
                {"Value2", "Raw Text"},
                },
            };

            return message;
        }
Esempio n. 2
0
 /// <summary>
 /// Validates the Windows Phone Raw Notification Message for the rules set forth by the Notification System.
 /// </summary>
 /// <param name="windowsPhoneRawPushNotificationMessage">The notification message to be validated.</param>
 /// <param name="vrs">The uber validation results.</param>
 private static void ValidateWindowsPhoneRawPushNotificationMessage(WindowsPhoneRawPushNotificationMessage windowsPhoneRawPushNotificationMessage, ValidationResults vrs)
 {
     // i don't what rules apply for a whimsical payload. probably just the total size should not be a crazy number.
 }