![](/img/trans.png)
[英]How to create a test double for model that has internal constructor? using c#, xunit and nsubstitute
我有一個調用 azure API 的方法來列出給定容器中的 blob。 然后我有一些業務邏輯(主要基於它們的名稱),然后此方法刪除了一些 blob。 所以調用了BlobContainerClient.GetBlobs 現在我想創建一些單元測試,以確保我的代碼確實按照我的意願執行(使用 xunit ...