public void UserBase_NotificationDevices_Iteration()
 {
     foreach (NotificationDevice oDevice in _tempUser.NotificationDevices())
     {
         Console.WriteLine(oDevice.ToString());
         Console.WriteLine(oDevice.DumpAllProps());
     }
 }
Beispiel #2
0
        public void NotificationDevice_FetchTests()
        {
            List <NotificationDevice> oDevices = _tempUser.NotificationDevices(true);

            Assert.IsNotNull(oDevices, "Failted to get devices from user");
            Assert.IsNotNull(oDevices, "Null device list returned from user");
            Assert.IsTrue(oDevices.Count > 0, "No devices returned from user");
            Console.WriteLine(oDevices[0].ToString());
            Console.WriteLine(oDevices[0].DumpAllProps());

            NotificationDevice oDevice;
            var res = NotificationDevice.GetNotificationDevice(_connectionServer, _tempUser.ObjectId, "", oDevices[0].DisplayName, out oDevice);

            Assert.IsTrue(res.Success, "Failed to fetch notificaiton device by name:" + res);
        }