Exemplo n.º 1
0
        public void DeviceType_e_Delete()
        {
            var u = new IBMWIoTP.DeviceTypeInfoUpdate();

            u.description = "test";
            var result = client.DeleteDeviceType("CsharpTestType");
        }
Exemplo n.º 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"]);
        }
Exemplo n.º 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));
        }