Azure / azure-databricks-client

Client library for Azure Databricks
MIT License
76 stars 63 forks source link

Protected parameterless constructor for DatabricksClient to support mocking #232

Closed mellis-ao closed 3 weeks ago

mellis-ao commented 1 month ago

Propose to add a protected constructor to the DatabricksClient so that it can be mocked during unit tests. This would match functionality provided by other Azure packages such as Azure.Storage.Blobs, Azure.Storage.Queues, Azure.Messaging.ServiceBus etc

Image

Image

Image

Mocking guidelines for Azure packages:

https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking

Image