public async Task GetAllSensorValues() { SensorApi api = new SensorApi(); var results = (await api.GetSensorValues(1, 60)).ToList(); Assert.IsTrue(results.Any(), "Count:" + results.Count); }
public async Task <IHttpActionResult> GetSensorValues(int days) { var userId = SecurityHelpers.ValidateToken(Request.Headers); return(Ok(await api.GetSensorValues(userId, days))); }