示例#1
0
        public void TestNotificationOnNotication_Dispatched()
        {
            Message             source              = this.CreateSourceMessage();
            Notification        notification        = this.CreateProcessedNotification();
            MailAddress         from                = new MailAddress(source.FromValue);
            NotificationMessage notificationMessage = source.CreateNotificationMessage(from, notification);

            //
            // Shouldn never be able to issue a notification for a notification
            //
            Assert.Throws <MDNException>(() => notificationMessage.RequestNotification());
            Assert.Null(notificationMessage.CreateNotificationMessage(from, notification));
        }