Tuesday, 3 November 2009

ASP.NET MVC resources


Guides, best practices

ASP.NET Webforms and ASP.NET MVC side by side

Dev stack


Dependency injection

[Read More…]

Sunday, 3 May 2009

Updated templates for xUnit.net in ASP.NET MVC RTM


  • Visual Studio 2008 Pro
  • xUnit.net v1.5 (build

xUnit.net has very few tests by default, so I have adapted the standard Visual Studio tests generated for ASP.NET MVC web applications. This resulted in two files: AccountControllerTests.cs and HomeControllerTests.cs (the last one is similar with HomeControllerFacts.cs)

The xUnit.net template for ASP.NET MVC unit testing can be found on the following location:


After unpacking the content of the template to a temp folder, we must place the new files in the Controllers folder, and update the content of MvcTemplate.csproj and MyTemplate.vstemplate:
[Read More…]

Setup xUnit.net for unit testing in ASP.NET MVC RTM


  • Visual Studio 2008 Pro
  • xUnit.net v1.5 (build

If you are using a zip file downloaded from the Source Code section of their site, extract it on a temp folder and move the binaries from the Samplesxunit folder to your destination of choice. If you are using the zipped binaries from their downloads page, simply extract them to your desired location.

The next step is running xunit.installer.exe and enabling support for ASP.NET MVC. The result should look like this:


If the installer throws an exception like this one:


then you should create manually the folder specified in the error message (usually the Test folders).
[Read More…]

Wednesday, 18 March 2009


Since RC2, jQuery was updated from 1.3.1 to 1.3.2, and a bug related to Silverlight was solved.

It is available for download here or here, including the source code.


376595f661c6152a453c3c3a75602d45 *AspNetMVC1.msi
1034fe23da0e8c6b912e5b3fda483326 *AspNetMvc1.0.Ms-PL.source.zip
e588133ff9d9f0526b47ab9557ba7f4c *ASP.NET MVC - 1.0 Release Notes.doc

The source code can also be downloaded from CodePlex. A quick tutorial about how to use the source code to debug your application can be found on Steve Sanderson's blog.


4102d8694a4d7202543010d44fef546e *DataAnnotationsModelBinder.zip
fd472d121b1162a4d91c3ecd57c35972 *Microsoft.Web.Mvc.dll
929f9ad6574bdccfc2c636df59281348 *MVC-RTM.zip
91a2e290a32aba6c128e571360d083e6 *RestForAspNetMvc.zip
8edc414ad4c3c961bc9e2903e81ce11f *T4MVC.zip
dcef1d3e491058593207b432cfbc4f97 *Using the AsyncController.docx

Before ASP.NET MVC installation, it is recommended to install the following updates: