public static async Task <IActionResult> GetTrends([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "trends/filter/{filterId}")] HttpRequest req, ILogger log, int filterId) { log.LogInformation("Getting all Trends"); Trends trends = new Trends(GetOptions()); return(new OkObjectResult(trends.GetTrendsJSON(filterId))); }
public void SelectJSONResultOfTrendsFromDatabase() { Trends trends = new Trends(opts); var json = trends.GetTrendsJSON(1); Assert.NotNull(json); }