<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KarlZ &#187; MVC</title>
	<atom:link href="http://joyofexcellence.com/blog/index.php/tag/mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://joyofexcellence.com/blog</link>
	<description>As a Software Development Director I still try to stay on top of Microsoft technologies by using some personal projects... And I follow some of my footsteps here.</description>
	<lastBuildDate>Thu, 02 Sep 2010 17:14:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unit Testing a Very Simple ViewResult in MVC</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/#comments</comments>
		<pubDate>Sun, 30 May 2010 01:17:57 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/</guid>
		<description><![CDATA[Technorati Tags: Unit Testing,MVC,VS 2010
I have a view that really only provides content, is there a quick way to test that it exists? What’s the Assert?
There’s really not much to unit test if you have a page that has only HTML in a MVC (Model-View-Controller) project. And to some extent, if you had a test [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unit Testing CodeSmith Insight</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/#comments</comments>
		<pubDate>Sat, 29 May 2010 22:37:12 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CodeSmith]]></category>
		<category><![CDATA[Insight]]></category>
		<category><![CDATA[Moq]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/</guid>
		<description><![CDATA[Technorati Tags: Unit Testing,MVC,Moq,CodeSmith,Insight
As anyone that knows me knows, I use test driven development. So when I put together a Feedback page in my MVC (Model-View-Controller) site I started with my test. What should the test be?
Let’s start with the User Story : As a site user (anonymous or logged in) I want to submit [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unit Test Authorize Attribute</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 17:24:40 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/</guid>
		<description><![CDATA[Technorati Tags: Unit Testing,ASP.NET,MVC,VS 2010
Story: I want to write a unit test to ensure that the Authorize attribute is applied to a controller ActionResult or ViewResult so that security is tested.
Here is the test:


Unit Test


[TestMethod]
public void PreviousSiteUserConversion_Authorization_Attributes_Have_Been_Applied()
{
    // Arrange
    MethodInfo varietalMethod = typeof(AdminController).GetMethod(&#34;PreviousSiteUserConversion&#34;, new Type[] { });
&#160;
    // Act
    var attributes = varietalMethod.GetCustomAttributes(typeof(AuthorizeAttribute), true);
&#160;
    // Assert
    Assert.IsNotNull(attributes);
    Assert.AreEqual(1, attributes.Length);
    var authAttribute = (AuthorizeAttribute)attributes[0];
    string[] [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Impressed with CrystalTech for .NET 4.0</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/04/24/impressed-with-crystaltech-for-net-4-0/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/04/24/impressed-with-crystaltech-for-net-4-0/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 16:26:21 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/04/24/impressed-with-crystaltech-for-net-4-0/</guid>
		<description><![CDATA[Technorati Tags: .NET 4.0,Hosting,ASP.NET
I’ve used CrystalTech for years. They seemed to be falling behind a bit when I started to work with the MVC (Model-View-Controller) pattern. That works MUCH better with IIS 7 than with IIS 6, but CrystalTech only had IIS 6 servers.
That’s all changed!
I now have no excuses for not upgrading my sites [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/04/24/impressed-with-crystaltech-for-net-4-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MVC &#8211; The Start</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 19:03:15 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code Analysis]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/</guid>
		<description><![CDATA[Technorati Tags: ASP.NET,MVC,Code Analysis,Unit Testing
This shows my initial setup of an MVC 2 RC 2 application. Using Visual Studio 2010 RC I selected File –&#62; New –&#62; Project… then under Visual C#, Web, I selected the ASP.NET MVC 2 Web Application.
 
Then when I click OK I get the following dialog. Since I’m a very [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MVC Overview</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/03/02/mvc-overview/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/03/02/mvc-overview/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 12:20:38 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/03/02/mvc-overview/</guid>
		<description><![CDATA[Technorati Tags: MVC
What’s different about Microsoft’s ASP.NET MVC (Model-View-Controller)?
There are some very good books about MVC (such as Steven Sanderson’s book), but here are the features I enjoy the most:
Routing – The routing model in MVC makes you really think about what you want your URLs to look like. In EVERY instance my application ended [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/03/02/mvc-overview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MVC &#8211; Upcoming Series</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/03/01/mvc-upcoming-series/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/03/01/mvc-upcoming-series/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 01:06:10 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/03/01/mvc-upcoming-series/</guid>
		<description><![CDATA[Technorati Tags: MVC,VS 2010
I’ve been playing with Microsoft’s ASP.NET MVC (Model-View-Controller) application on and off for about a year now. It’s been moving at such a fast pace that it seemed I was always starting over with another install – CTPs, V1 Visual Studio 2008, previews for Visual Studio 2010… And now I’m currently on [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/03/01/mvc-upcoming-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing HtmlHelper in MVC 2 RC 2</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 18:37:27 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Moq]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/</guid>
		<description><![CDATA[Technorati Tags: MVC,TDD,Mock,Moq
I strive to use TDD (Test Driven Development) so not having unit tests drives me crazy. I was so pleased to run across this post http://ox.no/posts/mocking-htmlhelper-in-aspnet-mvc-rc1-using-moq making it easy for me to unit test the Html Helper.
But then I downloaded the MVC 2 RC 2 and all my unit tests for HtmlHelper broke! [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Check for MaxLength in Entity Framework</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/02/13/error-check-for-maxlength-in-entity-framework/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/02/13/error-check-for-maxlength-in-entity-framework/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 17:50:03 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[EF]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/02/13/error-check-for-maxlength-in-entity-framework/</guid>
		<description><![CDATA[Technorati Tags: EF,MVC,VS 2010
HEADLINE: edmProperty.TypeUsage.Facets[“MaxLength”].Value comes in handy.
I don’t make a habit of making a post when someone else has done some work… I might point it out, and in that spirit here is the post that finally sent me in the right direction: http://soci.hu/blog/. However, the post is not in English (fortunately, C# is [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/02/13/error-check-for-maxlength-in-entity-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing the Version for an MVC App</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/02/06/showing-the-version-for-an-mvc-app/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/02/06/showing-the-version-for-an-mvc-app/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 21:50:35 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/02/06/showing-the-version-for-an-mvc-app/</guid>
		<description><![CDATA[Technorati Tags: MVC,ASP.NET,VS 2010
The primary MVC (Model-View-Controller) application that I’m working on is called KarlZMvc resulting in a dll called KarlZMvc.dll. To get the version output on my Site.Master page I need to include the following line:


Code Snippet


&#60;%= typeof(KarlZMvc.MvcApplication).Assembly.GetName().Version.ToString() %&#62;



I tried all sorts of combinations with the GetExecutingAssembly, or calling, etc. But none seemed to [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/02/06/showing-the-version-for-an-mvc-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
