What type of code is suitable for unit testing?
- by RPK
In Test Driven Development, what type of code is 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.