microsoft / durabletask-mssql

Microsoft SQL storage provider for Durable Functions and the Durable Task Framework
MIT License
87 stars 32 forks source link

Any good way to mock the data store for testing #65

Closed jundayin closed 2 years ago

jundayin commented 2 years ago

Currently we have to provide an actual database connection string when running our unit test. It is fine when it is running on local but when it comes to production environment we don't want to insert test data into prod database.

There used to be a emulator for Azure Storage for unit testing but I'm not sure if there is similar mechanism for Sql Provider as well.