Esempio n. 1
0
        public async Task GetNewLightsTest()
        {
            IHueRequest request = new GetNewLightsRequest();

            var response = await _client.GetResponseAsync(request);

            Assert.True(response is GetNewLightsResponse);
            Assert.Empty((GetNewLightsResponse)response);
        }
Esempio n. 2
0
        public async Task SearchNewLightsTest()
        {
            IHueRequest request = new SearchNewLightsRequest();

            var response = await _client.GetResponseAsync(request);

            Assert.True(response is SuccessResponse);

            request  = new GetNewLightsRequest();
            response = await _client.GetResponseAsync(request);

            Assert.True(response is GetNewLightsResponse);
            Assert.True(((GetNewLightsResponse)response).LastScan == DateTime.MaxValue);
        }