What is the best way to test AzureFunctions [C#, HTTP trigger] in local environment, using VisualStudio and XUnit?
Lets assume that I have following two Azure Functions:
- AF1: Parse JSON input and store to database
- AF2: Generate XML file from data uploaded to database
I would like to test them in following manner:
- Prepare a JSON and sent to first Azure Function by HTTP request
- Azure function returns documentId in HTTP response
- Send documentId to second AzureFunction by HTTP request
- Test the output XML
Is it possible to run those two AzureFunction simultaneously from XUnit environment ? How to achieve that? I don't want to test the .dll with Azure Function itself, I would like to test it using HTTP requests.