public static async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, ILogger log) { string responseMessage = new Pidesas().Do(); return(new OkObjectResult(responseMessage)); // log.LogInformation("C# HTTP trigger function processed a request."); //string name = req.Query["name"]; // string requestBody = await new StreamReader(req.Body).ReadToEndAsync(); // dynamic data = JsonConvert.DeserializeObject(requestBody); // name = name ?? data?.name; // return name != null // ? (ActionResult)new OkObjectResult($"Hello, {name}") // : new BadRequestObjectResult("Please pass a name on the query string or in the request body"); }
public void Pidesas_do_no_es_empty() { var sas = new Pidesas().Do(); Assert.NotEmpty(sas); }