如何对 Blob 进行功能测试
How can I make a functional test for a Blob
有人知道如何对 blob 进行功能测试吗?
在我的控制器中我有一个 POST 方法,我需要测试这个功能但是在互联网上我没有找到任何东西
您可能不想测试 blob 服务,因为它是一项外部服务。如果您想使用 测试 您对 的实现,请查看使用 Fake or Mock。
另一个解决方案可能是 Use the Azure storage emulator for development and testing。
The Microsoft Azure storage emulator provides a local environment that emulates the Azure Blob, Queue, and Table services for development purposes. Using the storage emulator, you can test your application against the storage services locally, without creating an Azure subscription or incurring any costs. When you're satisfied with how your application is working in the emulator, you can switch to using an Azure storage account in the cloud.
有人知道如何对 blob 进行功能测试吗? 在我的控制器中我有一个 POST 方法,我需要测试这个功能但是在互联网上我没有找到任何东西
您可能不想测试 blob 服务,因为它是一项外部服务。如果您想使用 测试 您对 的实现,请查看使用 Fake or Mock。
另一个解决方案可能是 Use the Azure storage emulator for development and testing。
The Microsoft Azure storage emulator provides a local environment that emulates the Azure Blob, Queue, and Table services for development purposes. Using the storage emulator, you can test your application against the storage services locally, without creating an Azure subscription or incurring any costs. When you're satisfied with how your application is working in the emulator, you can switch to using an Azure storage account in the cloud.