This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.25k
stars
4.6k
forks
source link
[QUERY] Mocking with ArmClient and CostManagementExportCollection #45697
Library name and version
Azure.ResourceManager.CostManagement 1.0.1
Query/Question
It is quite difficult to mock functionality related to the Cost Management api, specifically around the CostManagementExportResource.
Once you've instantiated the
According to the design guidelines, https://azure.github.io/azure-sdk/dotnet_introduction.html,
I'm assuming this is because ArmClient is in Azure.ResourceManager and CostManagementExtensions is in Azure.ResourceManager.CostManagement.
I would much rather have a CostManagementClient that takes an ArmClient as a parameter than have the current debacle.
Additionally this guidance seems to be missing completely.
Maybe I'm missing it, but I wanted a simple/easy way for my business class to call. If I'm missing something obvious, please let me know.
Environment
dotnet core 6 VS 2022 v17.9.6