Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created July 19, 2017 13:53
Show Gist options
  • Save justinyoo/375343f0fbd34c00183f08674129af62 to your computer and use it in GitHub Desktop.
Save justinyoo/375343f0fbd34c00183f08674129af62 to your computer and use it in GitHub Desktop.
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