12 July, 2011

ASP.NET MVC3 + Ninject + Moq + Unit Testing

I answered a question on StackOverflow yesterday which I am pretty happy with, so I thought I would share the link on here.

http://stackoverflow.com/questions/6646244/mvc-3-how-to-learn-how-to-test-with-nunit-ninject-and-moq/6646591#6646591

The question asks for general advice on how to write and test an ASP.NET MVC 3 website that correctly uses Inversion-of-Control, Unit Testing and Mocking.

08 July, 2011

A RavenDb profiling plugin for Glimpse

Today my post is to announce the release of a small plugin I have been working on over the last few days. It is a plugin for the Glimpse client side debug tool that integrates profiling information from RavenDb.

The plugin is available on NuGet - http://nuget.org/List/Packages/Glimpse.RavenDb

The source is hosted on GitHub - https://github.com/csainty/Glimpse.RavenDb

Finally there are installation instructions - https://github.com/csainty/Glimpse.RavenDb/wiki/How-to-use

Links out of the way, how about a screenshot or two?

Glimpse.RavenDb.1

Glimpse.RavenDb.2

As you can see, the plugin adds a new tab to the Glimpse UI called RavenDb. On this tab you get information about the servers and sessions involved in the current request. You also get a list of the queries made against your RavenDb instances including the actual documents sent across the wire that you can drill into. It is really quite cool, and the Glimpse team have done a fantastic job creating a framework that is very simple to extend.

The profiling tools in RavenDb are still young, and as ayende adds functionality (the current unstable builds include timing information currently missing in the stable release) I will update the plugin to bring all that goodness to the UI.