Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fake Azure Table Storage in .NET for Unit Testing? [closed]

I am working on a system that uses Azure Table Storage. In other systems (e.g., SQL, File based, etc), I can write a fake that allows me to test my data persistence logic. However, I can't see an easy way to create a fake for the Azure Table Service.

I could create a new IIS project that behaves the same way, but that isn't a good way to write a unit test, it is more of an integration test.

Any thoughts on how to unit test data access code that uses the Azure Table Storage client?

like image 963
Erick T Avatar asked Jan 08 '11 21:01

Erick T


Video Answer


1 Answers

I was considering this more for integration testing, but I suppose it could also work for unit testing. Meet Azure Storage Emulator. It sounds like a very awesome tool for testing Azure Blob, Queue and Table Services. I'm play around with it and try to post my findings if I can remember to do so.

like image 68
Dan Csharpster Avatar answered Oct 02 '22 11:10

Dan Csharpster