<?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 Testing SharePoint &#8211; Getting into the Object Model</title>
	<atom:link href="http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/</link>
	<description>Inspiring people to change the way they work</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:15:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: AndrewWoody</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-1178</link>
		<dc:creator>AndrewWoody</dc:creator>
		<pubDate>Thu, 08 Apr 2010 17:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-1178</guid>
		<description>Thanks Mike,  I&#039;m a big user of Resharper - some great stuff in VS2005/2008.   Although I&#039;m not as convinced in VS2010 as I think it sometimes trys to do too much.</description>
		<content:encoded><![CDATA[<p>Thanks Mike,  I&#39;m a big user of Resharper &#8211; some great stuff in VS2005/2008.   Although I&#39;m not as convinced in VS2010 as I think it sometimes trys to do too much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Blake</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-1177</link>
		<dc:creator>Mike Blake</dc:creator>
		<pubDate>Thu, 08 Apr 2010 17:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-1177</guid>
		<description>It looks really promising. I would also recommend Resharper to help you refactor code and generate classes etc.</description>
		<content:encoded><![CDATA[<p>It looks really promising. I would also recommend Resharper to help you refactor code and generate classes etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: itjobs1</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-1070</link>
		<dc:creator>itjobs1</dc:creator>
		<pubDate>Thu, 03 Dec 2009 20:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-1070</guid>
		<description>Thanks for this article it&#039;s great! &amp;interesting  subject &lt;br&gt;&lt;a href=&quot;http://www.staffingpower.com&quot; rel=&quot;nofollow&quot;&gt;www.staffingpower.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this article it&#39;s great! &#038;interesting  subject <br /><a href="http://www.staffingpower.com" rel="nofollow">http://www.staffingpower.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza Alirezaei&#8217;s Blog &#187; MVPs by MVPs in 2008</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-701</link>
		<dc:creator>Reza Alirezaei&#8217;s Blog &#187; MVPs by MVPs in 2008</dc:creator>
		<pubDate>Thu, 08 Jan 2009 21:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-701</guid>
		<description>[...] 11)Andrew Woodward:http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/12)Jake Dan Attis : [...]</description>
		<content:encoded><![CDATA[<p>[...] 11)Andrew Woodward:<a href="http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/12" rel="nofollow">http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/12</a>)Jake Dan Attis : [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SharePoint and Unit Testing &#171; iSea</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-665</link>
		<dc:creator>SharePoint and Unit Testing &#171; iSea</dc:creator>
		<pubDate>Tue, 23 Dec 2008 05:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-665</guid>
		<description>[...] http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/" rel="nofollow">http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isolator for SharePoint &#171; Solutionizing .NET</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-623</link>
		<dc:creator>Isolator for SharePoint &#171; Solutionizing .NET</dc:creator>
		<pubDate>Tue, 25 Nov 2008 05:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-623</guid>
		<description>[...] model. However, Andrew Woodward recently posted a whitepaper on the subject that caught my eye: Unit Testing SharePoint Solutions - Getting into the Object Model. Featured in the paper is Typemock Isolator, which has just been released in a special [...]</description>
		<content:encoded><![CDATA[<p>[...] model. However, Andrew Woodward recently posted a whitepaper on the subject that caught my eye: Unit Testing SharePoint Solutions &#8211; Getting into the Object Model. Featured in the paper is Typemock Isolator, which has just been released in a special [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garth</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-585</link>
		<dc:creator>Garth</dc:creator>
		<pubDate>Fri, 14 Nov 2008 07:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-585</guid>
		<description>Here&#039;s some sample code of the Natural Mocks I&#039;m using now (nothing worse than a posting that says I&#039;ve got it working an no sample code ;) )

/////////////////////////////////////////////////
SPList list = RecorderManager.CreateMockedObject();
            SPListItem item = RecorderManager.CreateMockedObject();
            using (RecordExpectations recorder = RecorderManager.StartRecording())
            {
                recorder.ExpectAndReturn(list.GetItemById(1), item);

                recorder.ExpectAndReturn(item[&quot;ID&quot;], 1);
                recorder.ExpectAndReturn(item[&quot;Customer Name&quot;], &quot;Bob Jones&quot;);
                recorder.ExpectAndReturn(item[&quot;NumberOfItems&quot;], 2);
                
            }</description>
		<content:encoded><![CDATA[<p>Here&#8217;s some sample code of the Natural Mocks I&#8217;m using now (nothing worse than a posting that says I&#8217;ve got it working an no sample code <img src='http://www.21apps.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
<p>/////////////////////////////////////////////////<br />
SPList list = RecorderManager.CreateMockedObject();<br />
            SPListItem item = RecorderManager.CreateMockedObject();<br />
            using (RecordExpectations recorder = RecorderManager.StartRecording())<br />
            {<br />
                recorder.ExpectAndReturn(list.GetItemById(1), item);</p>
<p>                recorder.ExpectAndReturn(item["ID"], 1);<br />
                recorder.ExpectAndReturn(item["Customer Name"], &#8220;Bob Jones&#8221;);<br />
                recorder.ExpectAndReturn(item["NumberOfItems"], 2);</p>
<p>            }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garth</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-584</link>
		<dc:creator>Garth</dc:creator>
		<pubDate>Fri, 14 Nov 2008 07:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-584</guid>
		<description>Cool. Thanks for the response. I&#039;m using Natural Mocks for this instance and it&#039;s working. 

Shotto</description>
		<content:encoded><![CDATA[<p>Cool. Thanks for the response. I&#8217;m using Natural Mocks for this instance and it&#8217;s working. </p>
<p>Shotto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doron</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-583</link>
		<dc:creator>Doron</dc:creator>
		<pubDate>Thu, 13 Nov 2008 13:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-583</guid>
		<description>@Garth,

This is indeed a missing feature in Typemock Isolator - we don&#039;t handle conditional expectations correctly with our AAA API. This feature is supported by our older APIs (see the discussion on the Isolator forums here: http://www.typemock.com/community/viewtopic.php?t=1030&amp;highlight=). 

We are working on extending the AAA API with more features like this one, so you can pretty safely assume you&#039;ll get it in an upcoming version.

Doron (developer, Typemock)</description>
		<content:encoded><![CDATA[<p>@Garth,</p>
<p>This is indeed a missing feature in Typemock Isolator &#8211; we don&#8217;t handle conditional expectations correctly with our AAA API. This feature is supported by our older APIs (see the discussion on the Isolator forums here: <a href="http://www.typemock.com/community/viewtopic.php?t=1030&#038;highlight" rel="nofollow">http://www.typemock.com/community/viewtopic.php?t=1030&#038;highlight</a>=). </p>
<p>We are working on extending the AAA API with more features like this one, so you can pretty safely assume you&#8217;ll get it in an upcoming version.</p>
<p>Doron (developer, Typemock)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garth</title>
		<link>http://www.21apps.com/agile/unit-testing-sharepoint-getting-into-the-object-model/comment-page-1/#comment-581</link>
		<dc:creator>Garth</dc:creator>
		<pubDate>Thu, 13 Nov 2008 09:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.21apps.com/?p=592#comment-581</guid>
		<description>Thanks for this article it&#039;s great!

I&#039;m having a bit of a funny happening in my code and I was wondering if it&#039;s me or the the API. 

I&#039;ve set up the following: 
// ----------------------------------------------------------
SPList list = Isolate.Fake.Instance(Members.ReturnRecursiveFakes);
            SPListItem item = Isolate.Fake.Instance(Members.ReturnRecursiveFakes);

            Isolate.Swap.NextInstance().With(list);
            Isolate.Swap.NextInstance().With(item);
            
            Isolate.WhenCalled(() =&gt; list.GetItemById(1)).WillReturn(item);
            Isolate.WhenCalled(() =&gt; item[&quot;Customer Name&quot;]).WillReturn(&quot;Bob Jones&quot;);
            Isolate.WhenCalled(() =&gt; item[&quot;NumberOfItems&quot;]).WillReturn(2);
// ----------------------------------------------------------
However when I call item[&quot;Customer Name&quot;] the mock object returns &#039;2&#039; instead of &#039;Bob Jones&#039; it appears to be ignoring the field name set in the item[] and just returns the last value that was set with &#039;WhenCalled()&#039;. 

Have I set this up incorrectly?
Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for this article it&#8217;s great!</p>
<p>I&#8217;m having a bit of a funny happening in my code and I was wondering if it&#8217;s me or the the API. </p>
<p>I&#8217;ve set up the following:<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
SPList list = Isolate.Fake.Instance(Members.ReturnRecursiveFakes);<br />
            SPListItem item = Isolate.Fake.Instance(Members.ReturnRecursiveFakes);</p>
<p>            Isolate.Swap.NextInstance().With(list);<br />
            Isolate.Swap.NextInstance().With(item);</p>
<p>            Isolate.WhenCalled(() =&gt; list.GetItemById(1)).WillReturn(item);<br />
            Isolate.WhenCalled(() =&gt; item["Customer Name"]).WillReturn(&#8220;Bob Jones&#8221;);<br />
            Isolate.WhenCalled(() =&gt; item["NumberOfItems"]).WillReturn(2);<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
However when I call item["Customer Name"] the mock object returns &#8217;2&#8242; instead of &#8216;Bob Jones&#8217; it appears to be ignoring the field name set in the item[] and just returns the last value that was set with &#8216;WhenCalled()&#8217;. </p>
<p>Have I set this up incorrectly?<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

