dimanche 29 octobre 2017

Component testing Azure Functions

I am using Azure Functions backed by a SQL database using the Entity Framework.

To ensure code correctness, I would like to perform full automated component tests on my local machine.

Injecting a connection string which points to a local database solves the SQL server issue, but I am yet to find a way to spin up a local instance of Azure Functions programmatically. As VS exposes this behavior using the “Debug” functionality, it should theoretically possible.

How do I programmatically spin up a local version of Azure Functions using a project which is located in the same solutions as my testing project?

Aucun commentaire:

Enregistrer un commentaire