Home > .Net, C# > Libraries for .Net: today Mocking and IOC

Libraries for .Net: today Mocking and IOC

February 6th, 2009

Since I moved to C# 3.0 and .NET 3.5, I have witness the power of the new features of the language and they bring easier and faster development. However we are still using a lot of libraries, frameworks, API dating back to the .NET 2.0 era and most of them are not yet using all the goodness of the latest .Net and C# iteration.

I found 2 libraries though that are build with the latest version of .Net and make use of the powerful features of Linq and C# 3.0 like lambda and expression trees.

If you are doing TDD (Test Driven Development), you are using a framework like MbUnit, NUnit or else but you may also be using a mocking framework like Rhino Mocks to mock your objects. If you are doing mocking and you look for an easier to use and very clean solution, consider Moq the new kid in town. Give it a try and enjoy the fast learning curve.

The second library is once again an IOC/DI library (Inversion of Control/Dependency Injection). See this post for another good IOC library. This new one is probably smaller and less bloated than the big names, but it offers an easy and clever syntax with features. Look at Autofac. Again it leverages all the goodness introduced in C# 3.0 and .NET 3.5. In a programmer point of view, this translates into a time saver and cleaner code.

That’s all for today.

Richard Lopes

Click to share
  • Digg
  • Reddit
  • Furl
  • Slashdot
  • DotNetKicks
  • Technorati
  • StumbleUpon
  • del.icio.us
  • Facebook
  • LinkedIn
  • MySpace
  • Google Bookmarks
  • email
  • Share/Bookmark

Read more...

.Net, C# , , , , ,

blog comments powered by Disqus