Пример #1
0
        public void DeviceType_e_Delete()
        {
            var u = new IBMWIoTP.DeviceTypeInfoUpdate();

            u.description = "test";
            var result = client.DeleteDeviceType("CsharpTestType");
        }
Пример #2
0
        public void DeviceType_d_Update()
        {
            var u = new IBMWIoTP.DeviceTypeInfoUpdate();

            u.description = "test";
            var result = client.UpdateDeviceType("CsharpTestType", u);

            StringAssert.AreEqualIgnoringCase(u.description, result["description"]);
        }
Пример #3
0
        public void Device_b_ListDevices()
        {
            var u = new IBMWIoTP.DeviceTypeInfoUpdate();

            u.description = "test";
            var result = client.ListDevices(deviceType);
            int length = result["results"].GetType() == typeof(ArrayList) ? result["results"].Count : result["results"].Length;

            Assert.That(length, Is.Not.EqualTo(0));
        }