Unit testing with Data Access Layer?

I'm using Linq2Sql for my DAL layer and I have it as a seperate project. In my domain project I have a repository interface which I then implement using a custom Linq2SqlCarRepository in my DAL project, this class wraps up the generated Linq2Sql classes.

I would use the Repository Pattern outlined in the September 2009 article in Visual Studio magazine titled "Eliminate Database Dependencies in Test-Driven development". I have been using this pattern since I read the article with great success. This pattern will help to decouple your data layer and write good unit tests.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send