Example #1
0
        public async Task GetAllSensorValues()
        {
            SensorApi api = new SensorApi();

            var results = (await api.GetSensorValues(1, 60)).ToList();

            Assert.IsTrue(results.Any(), "Count:" + results.Count);
        }
Example #2
0
        public async Task <IHttpActionResult> GetSensorValues(int days)
        {
            var userId = SecurityHelpers.ValidateToken(Request.Headers);

            return(Ok(await api.GetSensorValues(userId, days)));
        }