public void SetNotificationTest()
        {
            Trace.WriteLine("on ticket");

            var os            = new OpenStackMember(UserName, Password, TenantName); // with tenant
            var notifications = os.ListNotifications();

            Assert.IsNotNull(notifications);
            foreach (var n in notifications)
            {
                var notification = os.GetNotification(n.NotificationCode);
                var prevStatus   = notification.ReadStatus;

                notification = os.SetNotification(n.NotificationCode, "Unread");
                Assert.AreEqual(notification.ReadStatus, "Unread");

                notification = os.SetNotification(n.NotificationCode, "ReadTitleOnly");
                Assert.AreEqual(notification.ReadStatus, "ReadTitleOnly");

                notification = os.SetNotification(n.NotificationCode, "Read");
                Assert.AreEqual(notification.ReadStatus, "Read");

                notification = os.SetNotification(n.NotificationCode, prevStatus);

                notification = os.GetNotification(n.NotificationCode);
                Assert.AreEqual(notification.ReadStatus, prevStatus);
            }
        }
        public void ListNotificationsTest()
        {
            var os            = new OpenStackMember(UserName, Password, TenantName); // with tenant
            var notifications = os.ListNotifications();

            Assert.IsNotNull(notifications);
            foreach (var n in notifications)
            {
                Trace.WriteLine(string.Format("NotificationCode : {0}", n.NotificationCode));
                Trace.WriteLine(string.Format("DistributionMethod : {0}", n.DistributionMethod));
                Trace.WriteLine(string.Format("LanguageName : {0}", n.LanguageName));
                Trace.WriteLine(string.Format("PageName : {0}", n.PageName));
                Trace.WriteLine(string.Format("ReadStatus : {0}", n.ReadStatus));
                Trace.WriteLine(string.Format("CreatedDate : {0}", n.CreatedDate));
                Trace.WriteLine(string.Format("CreatedBy : {0}", n.CreatedBy));
                Trace.WriteLine(string.Format("LastUpdatedDate : {0}", n.LastUpdatedDate));
                Trace.WriteLine(string.Format("LastUpdatedBy : {0}", n.LastUpdatedBy));
            }
        }