How do I make code bound to an ORM testable?
Posted
by
RPK
on Programmers
See other posts from Programmers
or by RPK
Published on 2012-08-31T09:21:36Z
Indexed on
2012/08/31
15:52 UTC
Read the original article
Hit count: 435
In Test Driven Development, how do I make code bound to an ORM testable?
I am using a Micro-ORM (PetaPoco) and I have several methods that interact with the database like:
AddCustomer
UpdateRecord
etc.
I want to know how to write a test for these methods. I searched YouTube for videos on writing a test for DAL, but I didn't find any.
I want to know which method or class is testable and how to write a test before writing the code itself.
© Programmers or respective owner