<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Woah, Nellie.NET!</title>
	<atom:link href="http://nmonta76.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nmonta76.wordpress.com</link>
	<description>From my simple mind to... mine...</description>
	<lastBuildDate>Mon, 01 Dec 2008 14:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nmonta76.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Woah, Nellie.NET!</title>
		<link>http://nmonta76.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nmonta76.wordpress.com/osd.xml" title="Woah, Nellie.NET!" />
	<atom:link rel='hub' href='http://nmonta76.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Notes from &quot;DDD, Chapter 2: Communication and the User of Language&quot;</title>
		<link>http://nmonta76.wordpress.com/2008/12/01/notes-from-ddd-chapter-2-communication-and-the-user-of-language/</link>
		<comments>http://nmonta76.wordpress.com/2008/12/01/notes-from-ddd-chapter-2-communication-and-the-user-of-language/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 14:21:39 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Domain Driven Design]]></category>
		<category><![CDATA[satbc]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/12/01/notes-from-ddd-chapter-2-communication-and-the-user-of-language/</guid>
		<description><![CDATA[I&#8217;m rereading DDD by Evans for the San Antonio Tech Book Club. We&#8217;re taking it a chapter at a time. As is usual with this book, there is always more to learn every time I crack open this fairly dry, but useful tome. The intro to Part 1 of the book defined terms such as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=250&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m rereading DDD by Evans for the San Antonio Tech Book Club. We&#8217;re taking it a chapter at a time. As is usual with this book, there is always more to learn every time I crack open this fairly dry, but useful tome.</p>
<p>The intro to Part 1 of the book defined terms such as DOMAIN, DOMAIN MODEL, and the need for the domain model. Chapter 1 discussed &#8220;Knowledge Crunching&#8221; &#8211; reworking the domain model to the essentials, changing the model based on learning, and deep models.</p>
<p>Chapter 2 is about the use of the UBIQUITOUS LANGUAGE (UL). </p>
<ul>
<li>If the DOMAIN MODEL is the refined elements of the domain, as decided upon by business experts and developers, then the UBIQUITOUS LANGUAGE (UL) is the common language that is more robust than &#8211; but still based on &#8211; the model.</li>
<li>Schisms should not be allowed when using the UL. That is, different team members should not use terms in different ways from the agreed upon meaning. If so, a change in the model is required.</li>
<li>With no UL in place, or if schisms are allowed, then the need to translate between different uses of terms is significant. When the terms used in the code are different from those used in day-to-day language, then other aspects of modeling become troublesome (&#8220;makes knowledge crunching anemic&#8221;).</li>
<li>The UL consists of names of classes and methods, rules, organizing principles, model relationships.</li>
<li>The UL should be used by all team members to make it pervasive and thus ubiquitous. Team must be committed to this.</li>
<li>Model out loud. Use the UL in day-to-day speech.</li>
<li>Although the UL can consist of more than what is in the code, when something is identified as strange in the UL, then that concept/term should be corrected and propagated back to the DOMAIN MODEL.</li>
<li>The model derives from the domain expert&#8217;s language, but is refined. Domain experts should object if the meaning of something in the model diverges from the meaning accepted in the domain.</li>
<li>As with anything Agile, the UL should be constantly reworked as concepts are introduced or changed.</li>
<li>Multiple languages in the domain are allowed, but NEVER between the domain expert and developer. A language EXTENSION&nbsp; is specialized jargon that is not used in the UL but has meaning to a certain party (developer or domain expert) to discuss an aspect of the system. See Figure 2.3 in the book.</li>
<li>A few pages of discussion on documentation. My take is to realize that 1) the UL will always be more dynamic than documentation, 2) you must be careful as to what concepts you decide to commit to paper since the moment you do, you have to maintain that documentation especially if the UL is always changing, and 3) the model is NOT just the diagram representation &#8211; any documentation beyond the code should complement the model. All other details should be captured in the code since it is the definitive representation of the agreed upon model.</li>
<li>Code must be based on the UL and DOMAIN MODEL to be useful. Developer should not say something in the UL and represent that concept differently in the code.</li>
<li>EXPLANATORY MODELS are models that are not related to code, but can be used for learning. They are often a different representation of the DOMAIN MODEL or EXTENSIONS.</li>
<li>BOTTOM LINE: The UBIQUITOUS LANGUAGE is important because it goes beyond a purposefully limited DOMAIN MODEL and acknowledges that the spoken language is more dynamic than code, diagrams and other forms of documentation.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/250/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=250&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/12/01/notes-from-ddd-chapter-2-communication-and-the-user-of-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>Incorporating Liquibase into NAnt Builds</title>
		<link>http://nmonta76.wordpress.com/2008/11/07/incorporating-liquibase-into-nant-build/</link>
		<comments>http://nmonta76.wordpress.com/2008/11/07/incorporating-liquibase-into-nant-build/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 14:14:47 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Agile Software]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/11/07/incorporating-liquibase-into-nant-build/</guid>
		<description><![CDATA[With Liquibase for .NET a little ways off, I spent a little time trying to get Liquibase for Java incorporated into my NAnt build. The following lessons learned were originally from a spike, but I&#8217;ve gone ahead and incorporated liquibase into my new project. Let me know if you have something better. The first step [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=242&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With Liquibase for .NET a little ways off, I spent a little time trying to get Liquibase for Java incorporated into my NAnt build. The following lessons learned were originally from a spike, but I&#8217;ve gone ahead and incorporated liquibase into my new project. Let me know if you have something better.</p>
<p>The first step is to download the <a href="http://sourceforge.net/project/showfiles.php?group_id=187970&amp;package_id=219657" target="_blank">Liquibase jar</a>, the <a href="http://msdn.microsoft.com/en-us/data/aa937724.aspx" target="_blank">SQL Server JDBC driver</a> (if you are using SQL Server) and <a href="http://sourceforge.net/project/showfiles.php?group_id=69637&amp;package_id=68631" target="_blank">ikvm</a>.</p>
<p>Liquibase is a pretty good database refactoring tool, facilitating such things as multiple DB support, multiple developer merges, test data inserts for unit testing, and so on.</p>
<p>ikvm is a Java implementation for .NET and Mono. I chose this route as opposed to installing Java just to keep things easy for me.</p>
<p>My NAnt target utilizes the &lt;exec&gt; task to execute liquibase using ikvm.exe:</p>
<p><pre class="brush: xml;">
&lt;target
  description=&quot;Sets up database for unit testing purposes&quot;
  name=&quot;liquibase.for.testing&quot;&gt;
    &lt;exec basedir=&quot;..\..\tools\ikvm&quot;
      managed=&quot;true&quot;
      program=&quot;ikvm.exe&quot;&gt;
        &lt;arg line=&quot;-jar ..\..\tools\liquibase\liquibase-1.8.1.jar&quot; /&gt;
        &lt;arg value=&quot;--logLevel=SEVERE&quot; /&gt;
        &lt;arg value=&quot;--classpath=..\..\tools\ikvm\sqljdbc.jar&quot; /&gt;
        &lt;arg value=&quot;--driver=com.microsoft.sqlserver.jdbc.SQLServerDriver&quot; /&gt;
        &lt;arg value=&quot;--url=jdbc:sqlserver://localhost;databasename=DirectSalesSoftware;integratedSecurity=true;&quot; /&gt;
        &lt;arg value=&quot;--changeLogFile=.\Persistence\liquibase\db.changelog.xml &quot; /&gt;
        &lt;arg value=&quot;--contexts=tests&quot; /&gt;
        &lt;arg value=&quot;update&quot; /&gt;
    &lt;/exec&gt;
  &lt;/target&gt;
</pre></p>
<p>From here, I setup a batch file that I can double click to update my database:</p>
<p>@ECHO OFF<br />
@..\..\tools\nant\bin\nant.exe -buildfile:default.build liquibase.for.testing<br />
PAUSE</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=242&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/11/07/incorporating-liquibase-into-nant-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>Productivity 2.0 &#8211; sounds a lot like Agile</title>
		<link>http://nmonta76.wordpress.com/2008/10/14/productivity-20-sounds-a-lot-like-agile/</link>
		<comments>http://nmonta76.wordpress.com/2008/10/14/productivity-20-sounds-a-lot-like-agile/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 10:32:11 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Agile Software]]></category>
		<category><![CDATA[Leadership]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/10/14/productivity-20-sounds-a-lot-like-agile/</guid>
		<description><![CDATA[I was reading through recent ZenHabits posts in my RSS reader and came upon this post. A lot of the points made seem to be a part of Agile based methodologies.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=240&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was reading through recent <a href="http://zenhabits.net/" target="_blank">ZenHabits</a> posts in my RSS reader and came upon <a href="http://zenhabits.net/2008/10/productivity-20-how-the-new-rules-of-work-are-changing-the-game/" target="_blank">this post</a>. A lot of the points made seem to be a part of Agile based methodologies.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/240/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=240&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/10/14/productivity-20-sounds-a-lot-like-agile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>Rhino Mocks&#8217; new Arrange, Act, Assert model&#8230;</title>
		<link>http://nmonta76.wordpress.com/2008/10/08/rhino-mocks-new-arrange-act-assert-model/</link>
		<comments>http://nmonta76.wordpress.com/2008/10/08/rhino-mocks-new-arrange-act-assert-model/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 07:46:46 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/10/08/rhino-mocks-new-arrange-act-assert-model/</guid>
		<description><![CDATA[The difference between mocks and stubs in Rhino Mock&#8217;s new triple-A model is so subtle, that I can&#8217;t really distinguish between the two (except in ordering scenarios, apparently). Oh well&#8230; I love the syntax. In my test:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=233&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The difference <a href="http://ayende.com/Wiki/Rhino+Mocks+3.5.ashx#Thedifferencebetweenstubsandmocks" target="_blank">between mocks and stubs</a> in Rhino Mock&#8217;s new triple-A model is so subtle, that I can&#8217;t really distinguish between the two (except in ordering scenarios, apparently).</p>
<p>Oh well&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I love the syntax. In my test:</p>
<p><pre class="brush: csharp;">        
        [TestFixture]
        public class When_creating_a_replication_context_based_on_information_in_the_session
        {
            #region Setup/Teardown

            [SetUp]
            public void Setup_context()
            {
                session = MockRepository.GenerateStub&lt;HttpSessionStateBase&gt;();
                session.Stub(x =&gt; x[&quot;replicatedSite&quot;]).Return(&quot;bar&quot;);

                HttpRequestBase request = MockRepository.GenerateStub&lt;HttpRequestBase&gt;();
                request.Stub(x =&gt; x[&quot;replicatedSite&quot;]).Return(null);

                HttpContextBase context = MockRepository.GenerateStub&lt;HttpContextBase&gt;();
                context.Stub(x =&gt; x.Session).Return(session);
                context.Stub(x =&gt; x.Request).Return(request);

                context.Stub(x =&gt; x.Session).Return(session);
                session.Stub(x =&gt; x.Add(&quot;replicatedSite&quot;, &quot;bar&quot;));

                replicationContextFactory = new HttpParamsReplicationContextFactory(context);
                replicationContext = replicationContextFactory.Create();
            }

            #endregion

            private HttpParamsReplicationContextFactory replicationContextFactory;
            private ReplicationContext replicationContext;
            private HttpSessionStateBase session;

            [Test]
            public void Should_return_instance_of_subdomain_replication_context()
            {
                Assert.That(replicationContext.GetType().ToString(), Is.EqualTo(&quot;LinearJunction.Replication.Domain.SimpleReplicationContext&quot;));
            }

            [Test]
            public void Should_return_replicated_site()
            {
                Assert.That(replicationContext.ReplicatedSite, Is.EqualTo(&quot;bar&quot;));
            }

            [Test]
            public void Should_set_NEW_replicated_site_into_session()
            {
                session.AssertWasCalled(x =&gt; x.Add(&quot;replicatedSite&quot;, &quot;bar&quot;));
            }
        }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=233&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/10/08/rhino-mocks-new-arrange-act-assert-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>Cross Loop</title>
		<link>http://nmonta76.wordpress.com/2008/09/25/cross-loop/</link>
		<comments>http://nmonta76.wordpress.com/2008/09/25/cross-loop/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 12:46:19 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/09/25/cross-loop/</guid>
		<description><![CDATA[Interesting way to help people out: Cross Loop Watch tv while you wait: Hulu<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=231&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Interesting way to help people out: <a href="http://www.crossloop.com/nmonta76" target="_blank">Cross Loop</a></p>
<p>Watch tv while you wait: <a href="http://www.hulu.com" target="_blank">Hulu</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=231&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/09/25/cross-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET MVC Model Binders</title>
		<link>http://nmonta76.wordpress.com/2008/09/24/aspnet-mvc-model-binders/</link>
		<comments>http://nmonta76.wordpress.com/2008/09/24/aspnet-mvc-model-binders/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 11:20:16 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/09/24/aspnet-mvc-model-binders/</guid>
		<description><![CDATA[Model binders are a great way to allow the ASP.NET MVC framework to bind the passed request or query string data to a model object. For more information start here with Scott Gu&#8217;s blog: http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx I found this&#8230; the fourth post down by freechoice being most significant: http://forums.asp.net/p/1317611/2611395.aspx There is code in there for a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=220&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Model binders are a great way to allow the ASP.NET MVC framework to bind the passed request or query string data to a model object.</p>
<p>For more information start here with Scott Gu&#8217;s blog:</p>
<p><a title="http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx" href="http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx">http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx</a></p>
<p>I found this&#8230; the fourth post down by freechoice being most significant:</p>
<p><a title="http://forums.asp.net/p/1317611/2611395.aspx" href="http://forums.asp.net/p/1317611/2611395.aspx">http://forums.asp.net/p/1317611/2611395.aspx</a></p>
<p>There is code in there for a dynamic model binder, that is a great solution.</p>
<p>I threw together a quick test and sample model binder just to spike out my options:</p>
<p><pre class="brush: csharp;">
#region

using System.Collections.Specialized;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using LinearJunction.Leads.Domain;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Rhino.Mocks;

#endregion

namespace LinearJunction.Leads.Web.Specs
{
    public class LeadModelBinderSpecs
    {
        #region Nested type: When_lead_form_data_is_submitted

        [TestFixture]
        public class When_lead_form_data_is_submitted
        {
            #region Setup/Teardown

            [SetUp]
            public void Setup_Context()
            {
                SetupMocks();
                SetupExpectedRequestData();
                SetupExpectations();

                ControllerContext controllerContext = new ControllerContext(httpContextBase, new RouteData(), controllerBase);
                boundLead = new LeadModelBinder().GetValue(controllerContext, &quot;Lead&quot;, typeof (Lead), modelStateDictionary);
            }

            #endregion

            private void SetupExpectations()
            {
                httpContextBase.Expect(context =&gt; context.Request).Return(requestBase).Repeat.Times(4);
                requestBase.Expect(request =&gt; request.QueryString).Return(null).Repeat.Times(4);
                requestBase.Expect(request =&gt; request.Form).Return(nameValueCollection).Repeat.Times(12);

                mockRepository.ReplayAll();
            }

            private void SetupMocks()
            {
                mockRepository = new MockRepository();
                controllerBase = mockRepository.DynamicMock&lt;ControllerBase&gt;();
                httpContextBase = mockRepository.StrictMock&lt;HttpContextBase&gt;();
                modelStateDictionary = mockRepository.PartialMock&lt;ModelStateDictionary&gt;();
                requestBase = mockRepository.StrictMock&lt;HttpRequestBase&gt;();
            }

            private void SetupExpectedRequestData()
            {
                nameValueCollection = new NameValueCollection();
                nameValueCollection.Add(&quot;FirstName&quot;, &quot;Joe&quot;);
                nameValueCollection.Add(&quot;LastName&quot;, &quot;Bob&quot;);
                nameValueCollection.Add(&quot;EmailAddress&quot;, &quot;foo@nowhere.com&quot;);
                nameValueCollection.Add(&quot;PhoneNumber&quot;, &quot;2102221234&quot;);
            }

            private object boundLead;
            private ModelStateDictionary modelStateDictionary;
            private NameValueCollection nameValueCollection;
            private ControllerBase controllerBase;
            private HttpRequestBase requestBase;
            private HttpContextBase httpContextBase;
            private MockRepository mockRepository;

            [Test]
            public void Should_return_new_lead()
            {
                Assert.That(boundLead, Is.Not.Null);
                Assert.That(boundLead, Is.InstanceOfType(typeof (Lead)));
            }

            [Test]
            public void Should_have_lead_data_set()
            {
                Lead lead = boundLead as Lead;
                Assert.That(lead.EmailAddress, Is.EqualTo(&quot;foo@nowhere.com&quot;));
                Assert.That(lead.FirstName, Is.EqualTo(&quot;Joe&quot;));
                Assert.That(lead.LastName, Is.EqualTo(&quot;Bob&quot;));
                Assert.That(lead.PhoneNumber, Is.EqualTo(&quot;2102221234&quot;));
                Assert.That(lead.LeadStatus, Is.EqualTo(LeadStatus.NEW));
            }
        }

        #endregion
    }
}
</pre></p>
<p>And the resulting class:</p>
<p><pre class="brush: csharp;">
#region

using System;
using System.Web.Mvc;
using LinearJunction.Leads.Domain;

#endregion

namespace LinearJunction.Leads.Web
{
    public class LeadModelBinder : DefaultModelBinder
    {
        public override object GetValue(ControllerContext controllerContext, string modelName, Type modelType, ModelStateDictionary modelState)
        {
            string firstName = (string) base.GetValue(controllerContext, &quot;FirstName&quot;, typeof(string), modelState);
            string lastName = (string)base.GetValue(controllerContext, &quot;LastName&quot;, typeof(string), modelState);
            string emailAddress = (string)base.GetValue(controllerContext, &quot;EmailAddress&quot;, typeof(string), modelState);
            string phoneNumber = (string)base.GetValue(controllerContext, &quot;PhoneNumber&quot;, typeof(string), modelState);

            return new LeadFactory().CreateNewFrom(firstName, lastName, emailAddress, phoneNumber);
        }
    }
}
</pre></p>
<p>I&#8217;ll go ahead and register it on application startup.</p>
<p><pre class="brush: csharp;">

        protected void Application_Start(object sender, EventArgs e)
        {
            ModelBinders.Binders[typeof (Lead)] = new LeadModelBinder();

            RegisterRoutes(RouteTable.Routes);
            InitializeWindsor();
        }
</pre></p>
<p>Finally, note that I used this approach because of my use of a factory to create the new lead. It&#8217;s a great way to handle a significant aspect. If you have no additional requirements outside of binding form data to your model object, you can use the complex binder provided by the MVC framework.</p>
<p>Now, something like this should just work, as the form data will be bound to the Lead instance and passed into the controller&#8217;s Submit method:</p>
<p><pre class="brush: csharp;">

#region

using System.Web.Mvc;
using LinearJunction.Leads.Domain;

#endregion

namespace tbdnetwork.Web.LeadCapture.Controllers
{
    public class LeadController : Controller
    {
        private readonly LeadRepository leadRepository;

        public LeadController(LeadRepository leadRepository)
        {
            this.leadRepository = leadRepository;
        }

        [AcceptVerbs(&quot;POST&quot;)]
        public ActionResult Submit(Lead lead)
        {
            leadRepository.Save(ref lead);
            return RedirectToAction(&quot;SubmissionStatus&quot;);
        }
    }
}

</pre></p>
<p>Let me go test it and find out! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=220&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/09/24/aspnet-mvc-model-binders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>Slingplayer</title>
		<link>http://nmonta76.wordpress.com/2008/09/24/slingplayer-2/</link>
		<comments>http://nmonta76.wordpress.com/2008/09/24/slingplayer-2/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 02:57:37 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/09/24/slingplayer-2/</guid>
		<description><![CDATA[Frustrated with the HD support for most TV cards and Windows Home Media Server, I gave up and bought a Slingplayer. In addition, remote control support for my AT&#38;T U-Verse cable box through Windows is non-existent as far as I can tell. The Slingplayer supports this well. So far, so good AND I can watch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=217&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Frustrated with the HD support for most TV cards and Windows Home Media Server, I gave up and bought a <a href="http://www.slingplayer.com" target="_blank">Slingplayer</a>. </p>
<p>In addition, remote control support for my AT&amp;T U-Verse cable box through Windows is non-existent as far as I can tell. The Slingplayer supports this well.</p>
<p>So far, so good AND I can watch it from anywhere I can access my network! Seems like there might be an iPhone version of the client software soon. We&#8217;ll see&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=217&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/09/24/slingplayer-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;Displaced&#8221; on Dec 1</title>
		<link>http://nmonta76.wordpress.com/2008/09/23/displaced-on-dec-1/</link>
		<comments>http://nmonta76.wordpress.com/2008/09/23/displaced-on-dec-1/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 19:41:18 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/?p=215</guid>
		<description><![CDATA[Well, today I learned my fate at work. It was absolutely expected and a blessing with the provided severance. I will be leaving my current place of employment December 1st. I&#8217;m actively looking for work, so have a look at my linked in profile and give me a holler!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=215&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, today I learned my fate at work. </p>
<p>It was absolutely expected and a blessing with the provided severance. I will be leaving my current place of employment December 1st. I&#8217;m actively looking for work, so have a look at my linked in profile and give me a holler!</p>
<p><a href="http://www.linkedin.com/in/nelsonmontalvo"><img src="http://www.linkedin.com/img/webpromo/btn_myprofile_160x33.gif" width="160" height="33" border="0" alt="View Nelson Montalvo's profile on LinkedIn"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=215&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/09/23/displaced-on-dec-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>

		<media:content url="http://www.linkedin.com/img/webpromo/btn_myprofile_160x33.gif" medium="image">
			<media:title type="html">View Nelson Montalvo&#039;s profile on LinkedIn</media:title>
		</media:content>
	</item>
		<item>
		<title>Exception: &quot;Previous method requires a return value or an exception to throw&quot;</title>
		<link>http://nmonta76.wordpress.com/2008/09/19/previous-method-requires-a-return-value-or-an-exception-to-throw/</link>
		<comments>http://nmonta76.wordpress.com/2008/09/19/previous-method-requires-a-return-value-or-an-exception-to-throw/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 10:58:22 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/09/19/previous-method-requires-a-return-value-or-an-exception-to-throw/</guid>
		<description><![CDATA[I felt stupid on this one&#8230; Rhino Mocks kept throwing: System.InvalidOperationException: Previous method &#8216;DateTimeService.GetNow();&#8217; requires a return value or an exception to throw. Well, after many hours staring at my code, it turns out that I simply had forgotten to put the state of the mock into replay mode. So: dateTimeService.Expect(x =&#62; x.GetNow()).Return(new DateTime(2008, 2, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=211&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I felt stupid on this one&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Rhino Mocks kept throwing: <em>System.InvalidOperationException: Previous method &#8216;DateTimeService.GetNow();&#8217; requires a return value or an exception to throw.</em></p>
<p>Well, after many hours staring at my code, it turns out that I simply had forgotten to put the state of the mock into replay mode.</p>
<p>So:</p>
<div style="font-size:12pt;background:white;color:black;font-family:inconsolata;">
<pre style="margin:0;">dateTimeService.Expect(x =&gt; x.GetNow()).Return(<span style="color:blue;">new</span> <span style="color:#2b91af;">DateTime</span>(2008, 2, 2));</pre>
<pre style="margin:0;">&nbsp;</pre>
</div>
<p>Becomes:</p>
<div style="font-size:12pt;background:white;color:black;font-family:inconsolata;">
<pre style="margin:0;">dateTimeService.Expect(x =&gt; x.GetNow()).Return(<span style="color:blue;">new</span> <span style="color:#2b91af;">DateTime</span>(2008, 2, 2));</pre>
<pre style="margin:0;">dateTimeService.Replay();</pre>
<pre style="margin:0;">&nbsp;</pre>
</div>
<p>Or you can use:</p>
<div style="font-size:12pt;background:white;color:black;font-family:inconsolata;">
<pre style="margin:0;">mockRepositoryInstance.ReplayAll();</pre>
</div>
<p>to set all your mock instances into playback mode.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=211&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/09/19/previous-method-requires-a-return-value-or-an-exception-to-throw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting sh&#8230; uhh&#8230; stuff done&#8230;</title>
		<link>http://nmonta76.wordpress.com/2008/09/18/getting-sh-uhh-stuff-done/</link>
		<comments>http://nmonta76.wordpress.com/2008/09/18/getting-sh-uhh-stuff-done/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 09:27:33 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Get Organized]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Declutter]]></category>
		<category><![CDATA[Evernote]]></category>

		<guid isPermaLink="false">http://nmonta76.wordpress.com/2008/09/18/getting-sh-uhh-stuff-done/</guid>
		<description><![CDATA[I had talked about this e-book once before, but Zen To Done is a much simplified version of the Getting Things Done system (and several others). It complements such ideas as ZEB and carrying around Hipster PDA&#8217;s. Still, I&#8217;ve really grown fond of my Evernote account. The iPhone app version supports taking notes as text, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=208&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had talked about this e-book once before, but <a href="http://zenhabits.net/2007/11/zen-to-done-the-simple-productivity-e-book/">Zen To Done</a> is a much simplified version of the <a href="http://www.davidco.com/what_is_gtd.php">Getting Things Done</a> system (and several others). It complements such ideas as <a href="http://www.hanselman.com/blog/ZEBZeroEmailBounceAndANewOutlookRule.aspx">ZEB</a> and carrying around <a href="http://www.43folders.com/2004/09/03/introducing-the-hipster-pda">Hipster PDA&#8217;s</a>. Still, I&#8217;ve really grown fond of my <a href="http://www.evernote.com">Evernote</a> account.</p>
<p>The iPhone app version supports taking notes as text, pictures, or voice and helps you to file it away appropriately so you can get to it from one of your other computers or your web account. It also lets you search through existing &#8220;notes&#8221; on your phone. Various document formats are indexed so that you can search them later. Pictures are even analyzed for any text!!</p>
<p>So far, the first phases of ZTD, collecting and processing, have been simplified with Evernote. Check it out!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nmonta76.wordpress.com/208/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nmonta76.wordpress.com/208/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nmonta76.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nmonta76.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nmonta76.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nmonta76.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nmonta76.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nmonta76.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nmonta76.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nmonta76.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nmonta76.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nmonta76.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nmonta76.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nmonta76.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nmonta76.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nmonta76.wordpress.com/208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nmonta76.wordpress.com&amp;blog=1370160&amp;post=208&amp;subd=nmonta76&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nmonta76.wordpress.com/2008/09/18/getting-sh-uhh-stuff-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4acb38020be4269ba8ad59f56bdaf098?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nmonta76</media:title>
		</media:content>
	</item>
	</channel>
</rss>
