Esempio n. 1
0
        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)));
        }
Esempio n. 2
0
        public void SelectJSONResultOfTrendsFromDatabase()
        {
            Trends trends = new Trends(opts);
            var    json   = trends.GetTrendsJSON(1);

            Assert.NotNull(json);
        }