Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Testing Serverless Applications - Part 1
public static class GetArmTemplateDirectoriesHttpTrigger
{
public static FunctionFactory FunctionFactory { get; set; } = new FunctionFactory();
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, ILogger log)
{
var options = new GetArmTemplateDirectoriesFunctionParameterOptions() { Query = GetQuery(req) };
var res = await FunctionFactory.Create<IGetArmTemplateDirectoriesFunction>(log)
.InvokeAsync(req, options)
.ConfigureAwait(false);
return res;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment