public void SetGroup() { var request = new SetGroupRequest(GeneralRequests.SetGroup); request.Parse(); Assert.Equal("test", request.GroupName); }
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); }