Building a MVC2 Template, Part 9, Adding a Custom Role Provider

1 Comment

In this installment we’ll add the specifications and the skeleton code for a custom role provider. Start by adding a class file to the Providers folder in the Nehemiah.Specs folder. Give the file a name of RoleProviderSpecs.cs.

Here is our skeleton custom role provider. Just like the membership provider, these specs will be expanded upon in the next post about the custom role provider. More

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Building a MVC2 Template, Part 8, Adding a Custom Membership Provider

2 Comments

This post will be more code than explanation. As will the next two posts. I want to get an outline of the code necessary to build our own custom membership, role, and profile providers. Once we have the outline, then we’ll expand our specifications, write our code, and we’ll probably need to add Ninject into the mix during this and the next five or six posts. More

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Building a MVC2 Template, Part 6, Writing Specs Continued

No Comments

Summary

In this post we’ll finish converting the auto-generated tests to MSpec specification.

Automate Running MSpec

Nehemiah.Specs-Properties
If you wish to automate the running of the MSpec tool, open the properties to the Nehemiah.Specs project. Add the line below to the “Post-build event command line:” field.  Now when Nehemiah.Specs builds successfully, MSpec will run automatically.

C:\_CodeVault\MSpec\mspec.exe $(TargetName)$(TargetExt) –html “$(ProjectDir)Report.html” More

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Building a MVC2 Template, Part 4, BDD with MSpec

1 Comment

This post will cover installing TestDriven.Net (TD.Net), NUnit, and  Machine.Specifications (MSpec). There are plenty of resources on the internet for installing all of these applications.  I don’t want to duplicate the content of those posts, but I am including this post for completeness.

If you read any of the Behavior Driven Development posts on the net you’ll read where the tests should be written first. Since the MVC2 project auto-generates the code with a handful of tests, we’ll convert them to MSPec specificatoins now so we don’t get behind on writing our spec.

If you have been following this series, you’ll wonder if you missed any steps after installing these three applications.  The install process is so simple and straight forward there is no need for any screen shots. More

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Building a MVC2 Template, Part 3, Automated Builds

No Comments

In this post we’ll setup TeamCity to do automated builds. So the first thing we need to do is download the latest install of TeamCity from JetBrains.  Since we installed version 2 of VisualSVN you’ll want the EAP version of TeamCity, which can be downloaded from here, http://confluence.jetbrains.net/display/TW/Download+Latest.  During the install and setup we’ll download three additional applications, all from within TeamCity.

At the time of the article the current version of TeamCity EAP is 5.1. So download the setup and install it. I won’t show all the screen shots from the installation process in this post, as there are certainly more than necessary.  Most of them, however, will be included.

More

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Building a MVC2 Template, Part 2, Version Control

No Comments

In this posting we will cover the steps necessary to install Subversion along with support applications and then add our project to source control.

There are numerous posts on the internet for installing Subversion and its usage. I know they have helped me get everything configured and installed.  If I could remember them all I would reference them in the article, but alas, I cannot remember.  Also, I don’t remember any that tied all of these steps together. If they did or do exist, I did not stumble across them. More

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Building a MVC2 Template, Part 1, Introduction

6 Comments

In this series of blog posts I will attempt to document all my efforts, from start to finish, for building a reusable Asp.Net Mvc2 Application Template. My goal in this endeavor is to establish a Visual Studio application template that can be easily used upon request and uses best practices and technologies. More

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)