public void UpdateNotificationDevice_EmptyPropertyList_Failure() { var res = NotificationDevice.UpdateNotificationDevice(_mockServer, "objectid", "aaa", NotificationDeviceTypes.Pager, null); Assert.IsFalse(res.Success, "Empty prop list should fail"); }
public void UpdateNotificationDevice_EmptyDeviceObjectId_Failure() { ConnectionPropertyList oProps = new ConnectionPropertyList(); oProps.Add("item", "value"); var res = NotificationDevice.UpdateNotificationDevice(_mockServer, "objectid", "", NotificationDeviceTypes.Pager, oProps); Assert.IsFalse(res.Success, "Empty device objectID should fail"); }
public void UpdateNotificationDevice_NullConnectionServer_Failure() { ConnectionPropertyList oProps = new ConnectionPropertyList(); oProps.Add("item", "value"); WebCallResult res = NotificationDevice.UpdateNotificationDevice(null, "objectid", "aaa", NotificationDeviceTypes.Pager, oProps); Assert.IsFalse(res.Success, "Null Connection Server object should fail"); }
public void UpdateNotificationDevice_InvalidObjectId_Failure() { //failure paths for update calls ConnectionPropertyList oProps = new ConnectionPropertyList(); oProps.Add("item", "value"); var res = NotificationDevice.UpdateNotificationDevice(_connectionServer, _tempUser.ObjectId, "aaa", NotificationDeviceTypes.Pager, oProps); Assert.IsFalse(res.Success, "Invalid device objectId should fail"); }