<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>design-patterns</title>
        <link>http://geekswithblogs.net/rajeshpillai/category/10983.aspx</link>
        <description>All about patterns.</description>
        <language>en-US</language>
        <copyright>Rajesh Pillai</copyright>
        <managingEditor>thinkrajesh@yahoo.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Summary of MVP in Action - Unit Testing</title>
            <link>http://geekswithblogs.net/rajeshpillai/archive/2009/11/30/mvpinactiontdd.aspx</link>
            <description>&lt;h2&gt;MVP in Action - Unit Test&lt;/h2&gt;
&lt;p&gt;Read the post here..&lt;a href="http://geekswithblogs.net/rajeshpillai/archive/2009/11/30/mvp2.aspx"&gt;geekswithblogs.net/rajeshpillai/archive/2009/11/30/mvp2.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Synopsis&lt;br /&gt;
&lt;br /&gt;
This is in continuation to the article &lt;a href="http://geekswithblogs.net/rajeshpillai/archive/2009/11/29/mvp1.aspx"&gt;geekswithblogs.net/rajeshpillai/archive/2009/11/29/mvp1.aspx&lt;/a&gt;.  This post will deal with &lt;br /&gt;
writing simple unit test case for the "User" user creation use case we covered in the above blog post.&lt;/p&gt;
&lt;p&gt;Background&lt;/p&gt;
&lt;p&gt;Unit testing means testing a piece of code or a method.  White unit testing we need to stub or fake out external dependencies&lt;br /&gt;
so that the test can run in isolation.  The following two test cases we will cover&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;When saving a user with valid data should display "Successfully submitted the user." message on the view.&lt;/li&gt;
    &lt;li&gt;When saving a user with empty name should display "&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;user:User name cannot be empty&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;" the &lt;br /&gt;
    following message on the view.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Read the post here..&lt;a href="http://geekswithblogs.net/rajeshpillai/archive/2009/11/30/mvp2.aspx"&gt;geekswithblogs.net/rajeshpillai/archive/2009/11/30/mvp2.aspx&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/rajeshpillai/aggbug/136617.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Rajesh Pillai</dc:creator>
            <guid>http://geekswithblogs.net/rajeshpillai/archive/2009/11/30/mvpinactiontdd.aspx</guid>
            <pubDate>Mon, 30 Nov 2009 12:01:08 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/rajeshpillai/comments/136617.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/rajeshpillai/archive/2009/11/30/mvpinactiontdd.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/rajeshpillai/comments/commentRss/136617.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/rajeshpillai/services/trackbacks/136617.aspx</trackback:ping>
        </item>
    </channel>
</rss>
