private static void AssertPayload(string expectedXml, INotificationContent notificationContent) { AssertHelper.AssertXml(expectedXml, notificationContent.GetContent()); #if WINDOWS_UWP // For WinRT, we'll test the XmlDocument method too, make sure it works. AssertHelper.AssertXml(expectedXml, notificationContent.GetXml().GetXml()); #endif }
private void PublishToast(INotificationContent toast, string tag) { var xmlDocument = new XmlDocument(); xmlDocument.LoadXml(toast.GetContent()); var toastNotification = new ToastNotification(xmlDocument) { Tag = tag, Group = ToastNotificationProcessor.Group }; ToastNotificationManager.CreateToastNotifier(ToastNotificationProcessor.ApplicationId).Show(toastNotification); }
private static void AssertPayload(string expectedXml, INotificationContent notificationContent) { AssertHelper.AssertXml(expectedXml, notificationContent.GetContent()); }