Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Mocking the generic repository

, 29 Jul 2012 CPOL
This post describes one possible way to mock the generic repository. This can be useful when isolating the application from the database, usually inside unit tests. Another possible usage might be the creation of "portable" version of your application.



Compare Revision Minor Date Status Editor
5 - publicly available Yes 29-Jul-12 11:52 Available Smitha Vijayan
Updates in content.
3 No 4-May-12 10:04 Available Sean Ewington
2 No 3-May-12 2:43 Available Jan Fajfr
1 No 2-May-12 21:23 Available Jan Fajfr


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Jan Fajfr
Software Developer (Junior) OCTO Technology
Czech Republic Czech Republic
I work as IT consultant at OCTO Technology. Previously I have lived and studied CS in Prague, Paris and Valencia.
Articles at OCTO blog

| Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 29 Jul 2012
Article Copyright 2012 by Jan Fajfr
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid