<?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: Unit Tests : Testing Business with Fake Data</title>
	<atom:link href="http://www.jasonheine.com/beyond/index.php/unit-tests-testing-business-with-fake-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonheine.com/beyond/index.php/unit-tests-testing-business-with-fake-data/</link>
	<description>Taking over the world, one byte at a time.</description>
	<lastBuildDate>Tue, 30 Mar 2010 13:10:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Sergio</title>
		<link>http://www.jasonheine.com/beyond/index.php/unit-tests-testing-business-with-fake-data/comment-page-1/#comment-3369</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Fri, 23 Oct 2009 15:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonheine.com/beyond/?p=64#comment-3369</guid>
		<description>Cool Article,

In my expiriance maybe some mocking tool will help you mock your business objects withouth need to implement any interface or do code your fake data classes.
For example you may use MOQ framework in .NET projects.

However, really cool article. Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Cool Article,</p>
<p>In my expiriance maybe some mocking tool will help you mock your business objects withouth need to implement any interface or do code your fake data classes.<br />
For example you may use MOQ framework in .NET projects.</p>
<p>However, really cool article. Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Heine</title>
		<link>http://www.jasonheine.com/beyond/index.php/unit-tests-testing-business-with-fake-data/comment-page-1/#comment-2675</link>
		<dc:creator>Jason Heine</dc:creator>
		<pubDate>Wed, 20 May 2009 20:20:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonheine.com/beyond/?p=64#comment-2675</guid>
		<description>Hi Bruce,

Yes, this would be correct. Your ObjectMother would have specific scenarios of handling different invalid data. Also, you can pass in data to your fake database. Typically your logic will be handled in the business layer for validation, but if something does not get validated properly, you could put some logic in your fake service layer that would replicate what would happen if you were to do this in a real database.</description>
		<content:encoded><![CDATA[<p>Hi Bruce,</p>
<p>Yes, this would be correct. Your ObjectMother would have specific scenarios of handling different invalid data. Also, you can pass in data to your fake database. Typically your logic will be handled in the business layer for validation, but if something does not get validated properly, you could put some logic in your fake service layer that would replicate what would happen if you were to do this in a real database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bonder</title>
		<link>http://www.jasonheine.com/beyond/index.php/unit-tests-testing-business-with-fake-data/comment-page-1/#comment-2674</link>
		<dc:creator>bonder</dc:creator>
		<pubDate>Wed, 20 May 2009 19:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonheine.com/beyond/?p=64#comment-2674</guid>
		<description>Jason,

Great article.  So if you have several cases of invalid data you wanted to test, would you create one method to return a prefilled invalid object per case?

Example:

ObjectMother.GetInvalidSSNData();
ObjectMother.GetInvalidMailingAddressData();
ObjectMother.GetInvalidOrderTotalData();

Also, what about sending invalid data into the fake database - do you test that?

Thanks,

--Bruce</description>
		<content:encoded><![CDATA[<p>Jason,</p>
<p>Great article.  So if you have several cases of invalid data you wanted to test, would you create one method to return a prefilled invalid object per case?</p>
<p>Example:</p>
<p>ObjectMother.GetInvalidSSNData();<br />
ObjectMother.GetInvalidMailingAddressData();<br />
ObjectMother.GetInvalidOrderTotalData();</p>
<p>Also, what about sending invalid data into the fake database &#8211; do you test that?</p>
<p>Thanks,</p>
<p>&#8211;Bruce</p>
]]></content:encoded>
	</item>
</channel>
</rss>
