MVC Preview 2 - Part 4 - Testing

In this fourth video, Scott Hanselman sits down with the ASP.NET MVC Preview 2 bits and does some Test Driven Development (TDD). We’ll explore how to Mock away the new intrinsics with Mocking Frameworks in order to test your Controllers.

Be sure to watch the other three videos on ASP.NET MVC

ASP.NET MVC is available in the ASP.NET 3.5 Extensions Preview (December 2007) and the ASP.NET MVC Preview 2.

Presented by Scott Hanselman

Duration: 23 minutes, 20 seconds

Date: 28 February 2008

Watch the video   |   Download the video

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 9

Leave a Comment

matiaswoloski : On March 05, 2008 8:41 PM said:

Excelent screencast Scott.

Suggestion: post the source code

Thanks

Matias

staff.southworks.net/matiaswoloski

BringerOD : On March 12, 2008 8:07 PM said:

Great screencast Scott!

I second Matias!

Please post the source!

Bryan Reynolds

http://www.LaminarCo.com

shanselman : On March 14, 2008 5:32 PM said:

Sure, the source is already up on my blog at www.hanselman.com/.../CategoryView.aspx

bstein77 : On March 16, 2008 10:57 PM said:

Very good screencast, especially thanks for the clear explanation of how to use Rhino mocks with MVC.

guzuqiang : On March 24, 2008 10:49 PM said:

Establishing a link to the sample sln shown in the video may be better.

guzuqiang : On March 24, 2008 10:59 PM said:

Many thanks to Scott for the source code.

davidkiff : On March 31, 2008 2:52 PM said:

Hi Scott,

Excellent videos,

I use NMock2 and am finding it hard to mock an abstract class!  HttpContextBase does not seem to implement an Interface that I could use either.

Any ideas?

shanselman : On May 28, 2008 12:51 AM said:

David - When mocking an abstract class, you just need to derive (or your mock system needs to) from that abstract class and implement just those methods you're interested in.

dw.egun : On June 12, 2008 5:21 AM said:

Thank you so much, Scott. This is very nice video.

Leave a Comment

You must be logged in to leave a comment. Click here to log in.