Unit testing LINQ to SQL

Posted by: Mehfuzs WebLog, on 20 Jul 2010 | View original | Bookmarked: 0 time(s)

Unit testing LINQ to SQL repositories can be very challenging. Unit testing such requires faking hard to mock classes and requires simulation to return your custom data for a particular LINQ statement. In this post, i will show how you can mock your LINQ repositories easily without much digging in. As,  i was goggling [my start page is bing, its a matter of time when i will be bing-ing :-)] around, found a nice post by Ronnie Holm, where he shows how to unit test a  LINQ to SQL repository....

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XLinq | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 822 | Hits: 43

Similar Posts

  • Migrating to Postgresql with my friend NHibernate more
  • Migrated from Community Server to DasBlog more
  • Dovetail is Hiring a Junior-to-Mid-level .NET Developer more
  • RadScheduler for Silverlight learning series, part 3: Add, Edit, and Delete Appointments more
  • IDCC conference in Israel – Spet. 14th more
  • Important Entity Framework Query Improvements for .NET 4.0 more
  • NHibernate : Some Naked Thoughts more
  • LINQ in Action samples in LINQPad more
  • Free ASP.NET Bundle more
  • The Technology Post for May 15th more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD