Month: March 2012

SpecsFor.Mvc 1.1 Released

A new release of SpecsFor.Mvc is now live on NuGet.  This release includes one simple, but important, enhancement as well as a few other minor improvements. [more] Area Support One major oversight of SpecsFor.Mvc 1.0 was lack of support for Areas.  Well, that’s now fixed in 1.1.  First, you need to register the Area in…

Read More

Using SpecsFor.Mvc – Navigation and Form Submission

This is part two of my series on Using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application.  In this post, we’ll look at navigating around your app from SpecsFor.Mvc and at how to locate, populate, and submit forms.  [more] The “Using SpecsFor.Mvc” Series Using SpecsFor.Mvc – Introduction Using SpecsFor.Mvc – Navigation…

Read More

A very simple Jasmine runner for ASP.NET Applications

This post is more of a reference for me than anything else.  The Standalone Jasmine runner requires that you manually include any spec files.  That gets pretty annoying.  So, I built a simple ASP.NET WebPages file that can be used with any ASP.NET 4.0+ application as a light-weight, convention-based Jasmine test runner. [more] Here’s the…

Read More

Using SpecsFor.Mvc – Introduction

It’s been a long time coming, but I finally shipped version 1.0 of SpecsFor.Mvc last week.  There’s a slew of features in this release.  Enough, in fact, for a series of blog posts.  Hence this post!  This is the first of many covering what you can do with SpecsFor.Mvc 1.0.  Read on, and I’ll show…

Read More

SpecsFor.Mvc 1.0 Released!

It’s late, so this will be a short post, but SpecsFor.Mvc version 1.0 has been released.  It took me a lot longer to wrap this up than I expected, but there are a lot more features in the 1.0 release than I had originally planned.  Overall, I’m very pleased with the end-user experience of the…

Read More

ASP.NET MVC 3, Razor-C#, and VB.NET WebForms – ActionLink, RenderPartial, and RenderAction in WebForms

Today I’m going to show you how to use MVC helper methods in your ASP.NET WebForms markup.  Why would you want to do this?  As I explained and demonstrated in the previous two posts in this series, I’m working on a project that has an extensive investment in WebForms (of the Visual Basic .NET variety),…

Read More

Quick-and-Easy Database Integration Tests with SpecsFor

SpecsFor makes it very easy to bolt on your own conventions, create your own base classes, and extend its behavior to support your specific testing needs.  I’m working on a project that’s built on LINQ to SQL, and I wanted to start creating integration tests around our stored procedures and views.  Here’s the base class…

Read More

ASP.NET MVC 3, Razor-C#, and VB.NET WebForms – Using Razor Views With WebForms Master Pages

When we left off last time, I showed you how to write ASP.NET MVC code in C#, then consume and expose that functionality within a VB.NET WebForms project.  Why?  Because I’m maintaining a project with a huge investment in VB.NET WebForms, and a wholesale migration isn’t feasible.  This approach allows for a gradual migration from…

Read More