C# Unit Testing - Generating Mock DataContexts / LINQ -> SQL classes
- by gav
Hi All,
I am loving the new world that is C#, I've come to a point with my toy programs where I want to start writing some unit tests.
My code currently uses a database via a DatabaseDataContext object (*.dbml file), what's the best way to create a mock for this object? Given how easy it is to generate the database LINQ - SQL code and how common…