Ejemplo n.º 1
0
        public async void HttpTriggerWithoutParams()
        {
            var request  = TestFactory.CreateHttpRequest("", "");
            var response = (BadRequestObjectResult)await FnHttpTriggerAnonymous.Run(request, logger);

            Assert.Equal("Please pass a name on the query string or in the request body", response.Value);
        }
Ejemplo n.º 2
0
        public async void HttpTriggerWithParams()
        {
            var request  = TestFactory.CreateHttpRequest("name", "nick");
            var response = (OkObjectResult)await FnHttpTriggerAnonymous.Run(request, logger);

            Assert.Equal("Hello, nick", response.Value);
        }