I'd like to write a unit test for my data access layer to make sure that everything works allright in it. The question is, what kind of things should I put into the tests?
The DAL is a static Repository
class which hides the underlying layer (Fluent NHibernate) and exposes stuff to the public through an IQueryable
.
I thought about
- CRUD (Create/Retrieve/Update/Delete) operations
- Transactions
Is there anything else about a DAL that is worth testing?
Thanks in advance for your answers!