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

Posted by Erick T on Stack Overflow See other posts from Stack Overflow or by Erick T
Published on 2011-01-08T21:27:50Z Indexed on 2011/01/09 16:53 UTC
Read the original article Hit count: 343

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?

Thanks, Erick

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about Azure