示例#1
0
        public void Test_MigrateDevices()
        {
            var testConnectService = new TestConnectService();

            var response = testConnectService.Client.Post(new MigrateDevices
            {
                AccountID              = Guid.Parse("00000000-0000-0000-0000-000000000000"),
                DestinationAccount     = Guid.Parse("00000000-0000-0000-0000-000000000000"),
                DestinationApplication = Guid.Parse("55ed32e3-8363-433c-bfec-0f56b073861a"),
                ID    = Guid.Parse("38656c49-57cf-4965-b138-6d783cff3235"),
                Level = 4
            });

            var deviceResponse = testConnectService.Client.Get(new GetDevice {
                AccountID = Guid.Parse("00000000-0000-0000-0000-000000000000"), ID = Guid.Parse("38656c49-57cf-4965-b138-6d783cff3235")
            });

            Assert.IsTrue(deviceResponse.ApplicationID == Guid.Parse("55ed32e3-8363-433c-bfec-0f56b073861a"));

            response = testConnectService.Client.Post(new MigrateDevices
            {
                AccountID              = Guid.Parse("00000000-0000-0000-0000-000000000000"),
                DestinationAccount     = Guid.Parse("00000000-0000-0000-0000-000000000000"),
                DestinationApplication = Guid.Parse("505eff7b-3eb0-4f46-8cdf-13245b5a5145"),
                ID    = Guid.Parse("38656c49-57cf-4965-b138-6d783cff3235"),
                Level = 4
            });
        }
示例#2
0
        public void Test_EnqueueMessage()////////////////////////////////////////////////////
        {
            var testConnectService = new TestConnectService();

            //var response = testConnectService.Client.Get(new EnqueueMessage { AccountID = Guid.Parse("00000000-0000-0000-0000-000000000000"),   });

            //Assert.IsNotNull(response);
        }
示例#3
0
        public void Test_GetNetworkStat()
        {
            var testConnectService = new TestConnectService();

            var response = testConnectService.Client.Get(new GetNetworkStat {
                AccountID = Guid.Parse("00000000-0000-0000-0000-000000000000")
            });

            Assert.IsNotNull(response);
        }
示例#4
0
        public void Test_GetMulticastByGroupID()
        {
            var testConnectService = new TestConnectService();

            var response = testConnectService.Client.Get(new GetMulticastByGroupID {
                AccountID = Guid.Parse("00000000-0000-0000-0000-000000000000"), GroupID = "FE0A00000000"
            });

            Assert.IsNotNull(response);
        }
示例#5
0
        public void Test_GetDeviceByEui()
        {
            var testConnectService = new TestConnectService();

            var response = testConnectService.Client.Get(new GetDeviceByEui {
                AccountID = Guid.Parse("00000000-0000-0000-0000-000000000000"), EUI = "0004A30B0020E89A"
            });

            Assert.IsNotNull(response);
        }