tnc1997 / azure-app-configuration-emulator

Please note that Emulator for Azure App Configuration is unofficial and not endorsed by Microsoft.
MIT License
3 stars 3 forks source link

refactor: add configuration setting repository #27

Closed tnc1997 closed 9 months ago

tnc1997 commented 9 months ago

Describe the change This change adds a configuration setting repository which abstracts the Entity Framework Core database context.

Current behavior The handlers depend on the database context which makes testing more difficult.

New behavior The handlers depend on the configuration setting repository interface which allows for mocking.

Additional context Choosing a testing strategy - Repository pattern