Beispiel #1
0
        public async Task PutById()
        {
            var all = await localHueClient.GetEntertainmentServices();

            var id = all.Data.Last().Id;

            UpdateEntertainment req = new UpdateEntertainment();
            var result = await localHueClient.UpdateEntertainmentService(id, req);

            Assert.IsNotNull(result);
            Assert.IsFalse(result.HasErrors);

            Assert.IsTrue(result.Data.Count == 1);
            Assert.AreEqual(id, result.Data.First().Rid);
        }
Beispiel #2
0
 public Task <HuePutResponse> UpdateEntertainmentService(Guid id, UpdateEntertainment data) => HuePutRequest(ResourceIdUrl(EntertainmentUrl, id), data);