Hi folks,
what's the best practice for creating test persistence layers when doing an ASP.NET site (eg. ASP.NET MVC site)?
Many examples I've seen use Moq (or another mocking framework) in the unit test project, but I want to, like .. moq out my persistence layer so that my website shows data and stuff, but it's not coming from a database. I want to do that last. All the mocking stuff I've seen only exists in unit tests.
What practices do people do when they want to (stub?) fake out a persistence layer for quick and fast development? I use Dependency Injection to handle it, and have some hard coded results for my persistence layer (which is really manual and boring).
What are other people doing? Examples and links would be awesome :)
UPDATE
Just a little update: so far i'm getting a fair bit of milage out of having a fake repository and a sql repository - where each class impliments an interface. Then, using DI (i'm using StructureMap), I can switch between my fake repository or the sql repository. So far, it's working well :)
(also scary to think that I asked this question nearly 11 months ago, from when i'm editing this, right now!)