<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: How to Unit Test ASP.NET MVC Controllers</title> <atom:link href="http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/feed/" rel="self" type="application/rss+xml" /><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/</link> <description>Jag Reehal on Agile Development, ASP.NET MVC and all manner of good stuff</description> <lastBuildDate>Sun, 29 Jan 2012 22:29:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: ccnweb ccnweb</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-249</link> <dc:creator>ccnweb ccnweb</dc:creator> <pubDate>Mon, 06 Jun 2011 19:48:00 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-249</guid> <description>I have same problem as Norbert Baum, I try create an custom attribute instead of the regular expression called TiempoEnDiasHorasMinutos, but in test, model state contains nothing, no values, no keys.</description> <content:encoded><![CDATA[<p>I have same problem as Norbert Baum, I try create an custom attribute instead of the regular expression called TiempoEnDiasHorasMinutos, but in test, model state contains nothing, no values, no keys.</p> ]]></content:encoded> </item> <item><title>By: adam</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-114</link> <dc:creator>adam</dc:creator> <pubDate>Wed, 01 Sep 2010 13:45:49 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-114</guid> <description>very useful thanks</description> <content:encoded><![CDATA[<p>very useful thanks</p> ]]></content:encoded> </item> <item><title>By: Jag Reehal</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-110</link> <dc:creator>Jag Reehal</dc:creator> <pubDate>Wed, 25 Aug 2010 23:27:46 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-110</guid> <description>Hi Norbert,One thing I would suggest is creating an email attribute instead of the regular expression you&#039;re currently using.  See &lt;a href=&quot;http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx&quot; rel=&quot;nofollow&quot;&gt;Scott Gu&#039;s post on Model Validation&lt;/a&gt; for an example.Cheers,Jag</description> <content:encoded><![CDATA[<p>Hi Norbert,</p><p>One thing I would suggest is creating an email attribute instead of the regular expression you&#8217;re currently using.  See <a
href="http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx" rel="nofollow">Scott Gu&#8217;s post on Model Validation</a> for an example.</p><p>Cheers,</p><p>Jag</p> ]]></content:encoded> </item> <item><title>By: Norbert Baum</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-108</link> <dc:creator>Norbert Baum</dc:creator> <pubDate>Fri, 20 Aug 2010 09:28:30 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-108</guid> <description>Hello,
i have a problem :(my Model:
public class HomeKontakt
{
[RegularExpression(@&quot;^\w+([-+.&#039;]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$&quot;, ErrorMessageResourceType = typeof(ModelValidation), ErrorMessageResourceName = &quot;MailInvalid&quot;)]
[Required(ErrorMessageResourceType = typeof(ModelValidation), ErrorMessageResourceName = &quot;MailRequired&quot;)]
public String Mail { get; set; }
}if my Mail-Adress: baum@bla@evaluate-lesson.de
so its no valid! Over the Website, the Validation is Correkt and say, that the Mail-Adress not Valid is!But in my Tests, they ignor my ValidationRules! Why?
The Modelstate is clear/ with no ErrorsCan you Help me?Thx and greets from Germany
Norbert</description> <content:encoded><![CDATA[<p>Hello,<br
/> i have a problem <img
src='http://www.arrangeactassert.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p><p>my Model:<br
/> public class HomeKontakt<br
/> {<br
/> [RegularExpression(@"^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$&#8221;, ErrorMessageResourceType = typeof(ModelValidation), ErrorMessageResourceName = &#8220;MailInvalid&#8221;)]<br
/> [Required(ErrorMessageResourceType = typeof(ModelValidation), ErrorMessageResourceName = "MailRequired")]<br
/> public String Mail { get; set; }<br
/> }</p><p>if my Mail-Adress: baum@bla@evaluate-lesson.de<br
/> so its no valid! Over the Website, the Validation is Correkt and say, that the Mail-Adress not Valid is!</p><p>But in my Tests, they ignor my ValidationRules! Why?<br
/> The Modelstate is clear/ with no Errors</p><p>Can you Help me?</p><p>Thx and greets from Germany<br
/> Norbert</p> ]]></content:encoded> </item> <item><title>By: Jag Reehal</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-15</link> <dc:creator>Jag Reehal</dc:creator> <pubDate>Thu, 24 Sep 2009 20:57:09 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-15</guid> <description>Both are big topics, so it depends on time.Until then Ben Scheirman is your man for unit testing &lt;a href=&quot;http://flux88.com/blog/fluent-route-testing-in-asp-net-mvc/&quot; rel=&quot;nofollow&quot;&gt;ASP.NET MVC Routes&lt;/a&gt;.  Check out &lt;a href=&quot;http://www.codeplex.com/MVCContrib&quot; rel=&quot;nofollow&quot;&gt;MVC Contrib&lt;/a&gt; for updates.For views check out Steve Sanderson&#039;s post on &lt;a href=&quot;http://blog.codeville.net/2009/03/27/first-steps-with-lightweight-test-automation-framework/&quot; rel=&quot;nofollow&quot;&gt;First steps with Lightweight Test Automation Framework&lt;/a&gt;.</description> <content:encoded><![CDATA[<p>Both are big topics, so it depends on time.</p><p>Until then Ben Scheirman is your man for unit testing <a
href="http://flux88.com/blog/fluent-route-testing-in-asp-net-mvc/" rel="nofollow">ASP.NET MVC Routes</a>.  Check out <a
href="http://www.codeplex.com/MVCContrib" rel="nofollow">MVC Contrib</a> for updates.</p><p>For views check out Steve Sanderson&#8217;s post on <a
href="http://blog.codeville.net/2009/03/27/first-steps-with-lightweight-test-automation-framework/" rel="nofollow">First steps with Lightweight Test Automation Framework</a>.</p> ]]></content:encoded> </item> <item><title>By: Rav Panesar</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-13</link> <dc:creator>Rav Panesar</dc:creator> <pubDate>Mon, 21 Sep 2009 14:54:23 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-13</guid> <description>I will be using the examples in my code.Will you be covering routes and views?</description> <content:encoded><![CDATA[<p>I will be using the examples in my code.</p><p>Will you be covering routes and views?</p> ]]></content:encoded> </item> <item><title>By: Jag Reehal</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-12</link> <dc:creator>Jag Reehal</dc:creator> <pubDate>Sun, 20 Sep 2009 21:01:25 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-12</guid> <description>Thanks Patrice.  I&#039;m working on a post to do exactly that, should be posted in the next couple of days.</description> <content:encoded><![CDATA[<p>Thanks Patrice.  I&#8217;m working on a post to do exactly that, should be posted in the next couple of days.</p> ]]></content:encoded> </item> <item><title>By: Russell Cox</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-11</link> <dc:creator>Russell Cox</dc:creator> <pubDate>Sun, 20 Sep 2009 18:17:14 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-11</guid> <description>Thanks for the excellent examples</description> <content:encoded><![CDATA[<p>Thanks for the excellent examples</p> ]]></content:encoded> </item> <item><title>By: Patrick Steele</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-10</link> <dc:creator>Patrick Steele</dc:creator> <pubDate>Thu, 17 Sep 2009 15:03:22 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-10</guid> <description>Once you get into more advanced testing (involving Session, Response, Request, HttpContext, etc...) you&#039;ll find the MvcContrib library on CodePlex very helpful.  I blogged about using it here:http://weblogs.asp.net/psteele/archive/2009/08/23/asp-net-mvc-mvc-contrib-unit-testing.aspx</description> <content:encoded><![CDATA[<p>Once you get into more advanced testing (involving Session, Response, Request, HttpContext, etc&#8230;) you&#8217;ll find the MvcContrib library on CodePlex very helpful.  I blogged about using it here:</p><p><a
href="http://weblogs.asp.net/psteele/archive/2009/08/23/asp-net-mvc-mvc-contrib-unit-testing.aspx" rel="nofollow">http://weblogs.asp.net/psteele/archive/2009/08/23/asp-net-mvc-mvc-contrib-unit-testing.aspx</a></p> ]]></content:encoded> </item> <item><title>By: Patrice Calvé</title><link>http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/#comment-9</link> <dc:creator>Patrice Calvé</dc:creator> <pubDate>Thu, 17 Sep 2009 12:24:19 +0000</pubDate> <guid
isPermaLink="false">http://www.arrangeactassert.com/?p=250#comment-9</guid> <description>Hi,Great post, thank you.At the end of your article, you state that &quot;I will update this post when I see more examples on good ASP.NET MVC controller unit tests worth sharing&quot;, may I suggest that you also include &quot;I will update this post when I see more examples on &gt;&gt;bad&lt;&lt; ASP.NET MVC controllers or unit tests and change them into good ones&quot;Pat</description> <content:encoded><![CDATA[<p>Hi,</p><p>Great post, thank you.</p><p>At the end of your article, you state that &#8220;I will update this post when I see more examples on good ASP.NET MVC controller unit tests worth sharing&#8221;, may I suggest that you also include &#8220;I will update this post when I see more examples on &gt;&gt;bad&lt;&lt; ASP.NET MVC controllers or unit tests and change them into good ones&quot;</p><p>Pat</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.arrangeactassert.com @ 2012-02-06 00:23:36 by W3 Total Cache -->
