コード例 #1
0
        public void SetGroup()
        {
            var request = new SetGroupRequest(GeneralRequests.SetGroup);

            request.Parse();
            Assert.Equal("test", request.GroupName);
        }
コード例 #2
0
        public async Task SetGroupTest()
        {
            IHueRequest  request  = new GetGroupRequest(1);
            IHueResponse response = await _client.GetResponseAsync(request);

            OnLog(response);

            request = new SetGroupRequest((GetGroupResponse)response);
            ((SetGroupRequest)request).NewName = "Testname";

            response = await _client.GetResponseAsync(request);

            Assert.True(response is SuccessResponse);

            OnLog(response);
        }