<?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: Exploring Telerik OpenAccess: Unit Testing your Business Logic using Rhino Mocks</title>
	<atom:link href="http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/</link>
	<description>Complexity through Simplicity</description>
	<lastBuildDate>Tue, 13 Jul 2010 07:25:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Erik Burger</title>
		<link>http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/comment-page-1/#comment-102</link>
		<dc:creator>Erik Burger</dc:creator>
		<pubDate>Sat, 12 Dec 2009 13:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=69#comment-102</guid>
		<description>Hi Shane,

This is exactly one of the situations where mocking shines; it can not only assert whether a method was called but it can also return fixed values (that you might normally get through a web service or somesuch). So for testing your calculation you&#039;d have your object return fixed values (and in a different test suite you&#039;d test that those object actually retrieve/calculate their values correctly.

Does that make sense?

Erik</description>
		<content:encoded><![CDATA[<p>Hi Shane,</p>
<p>This is exactly one of the situations where mocking shines; it can not only assert whether a method was called but it can also return fixed values (that you might normally get through a web service or somesuch). So for testing your calculation you&#8217;d have your object return fixed values (and in a different test suite you&#8217;d test that those object actually retrieve/calculate their values correctly.</p>
<p>Does that make sense?</p>
<p>Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/comment-page-1/#comment-101</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Mon, 07 Dec 2009 21:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=69#comment-101</guid>
		<description>Hi Erik,

I know this is kind of an old post, but I&#039;ve been evaluating Telerik OA as well now and I like it too, but the one issue I&#039;ve had is just this.  Your example is a good one, but what if you needed to perform a calculation on multiple objects it&#039;s much different than just asserting that a method was called or not.  I&#039;ll look at Rhino mocks as you mentioned maybe it can do this as well, but I wanted to see if you have gone done this path already.

Thanks,

Shane</description>
		<content:encoded><![CDATA[<p>Hi Erik,</p>
<p>I know this is kind of an old post, but I&#8217;ve been evaluating Telerik OA as well now and I like it too, but the one issue I&#8217;ve had is just this.  Your example is a good one, but what if you needed to perform a calculation on multiple objects it&#8217;s much different than just asserting that a method was called or not.  I&#8217;ll look at Rhino mocks as you mentioned maybe it can do this as well, but I wanted to see if you have gone done this path already.</p>
<p>Thanks,</p>
<p>Shane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Burger</title>
		<link>http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/comment-page-1/#comment-70</link>
		<dc:creator>Erik Burger</dc:creator>
		<pubDate>Mon, 10 Aug 2009 21:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=69#comment-70</guid>
		<description>Hi Pete,

I&#039;m afraid I don&#039;t quite get what your exact issue is. If you could provide some example code, that&#039;d be great. My email is eburger at reversealchemy dot net.

Cheers,
Erik</description>
		<content:encoded><![CDATA[<p>Hi Pete,</p>
<p>I&#8217;m afraid I don&#8217;t quite get what your exact issue is. If you could provide some example code, that&#8217;d be great. My email is eburger at reversealchemy dot net.</p>
<p>Cheers,<br />
Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/comment-page-1/#comment-64</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Wed, 29 Jul 2009 02:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=69#comment-64</guid>
		<description>Hi Erik,

I&#039;ve also been using Rhino Mocks to avoid dependencies and focus on fine grained tests. Unfortunately, I&#039;m a bit stuck when it comes to stubbing a [Persistent] class.

For example, if you had:

[Persistent]
public abstract class Person
{
...
}

Because it is abstract, it would be nice to call:

mockRepository.Stub()

but I always get an exception relating to
Telerik.OpenAccess.PersistentAttribute.get_IdentityClassName()

Any thoughts?
(A work-around is to create a derived class without the [Persistent] property and stub that, but I don&#039;t want to do that for every domain class!)

Pete.</description>
		<content:encoded><![CDATA[<p>Hi Erik,</p>
<p>I&#8217;ve also been using Rhino Mocks to avoid dependencies and focus on fine grained tests. Unfortunately, I&#8217;m a bit stuck when it comes to stubbing a [Persistent] class.</p>
<p>For example, if you had:</p>
<p>[Persistent]<br />
public abstract class Person<br />
{<br />
&#8230;<br />
}</p>
<p>Because it is abstract, it would be nice to call:</p>
<p>mockRepository.Stub()</p>
<p>but I always get an exception relating to<br />
Telerik.OpenAccess.PersistentAttribute.get_IdentityClassName()</p>
<p>Any thoughts?<br />
(A work-around is to create a derived class without the [Persistent] property and stub that, but I don&#8217;t want to do that for every domain class!)</p>
<p>Pete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Burger</title>
		<link>http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/comment-page-1/#comment-35</link>
		<dc:creator>Erik Burger</dc:creator>
		<pubDate>Fri, 27 Mar 2009 10:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=69#comment-35</guid>
		<description>Hi Larry,

There is a pretty large amount of mocking frameworks available, all with their own strengths and weaknesses. The most popular for C# (as far as I know) are &lt;a href=&quot;http://www.nmock.org&quot; rel=&quot;nofollow&quot;&gt;NMock&lt;/a&gt;, &lt;a href=&quot;http://ayende.com/projects/rhino-mocks.aspx&quot; rel=&quot;nofollow&quot;&gt;Rhino Mocks&lt;/a&gt; and &lt;a href=&quot;http://www.typemock.net&quot; rel=&quot;nofollow&quot;&gt;TypeMock&lt;/a&gt;.

A good list can be found on &lt;a href=&quot;http://en.wikipedia.org/wiki/Mock_object#External_links&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;, along with some interesting articles.

Hope this helps,

Erik</description>
		<content:encoded><![CDATA[<p>Hi Larry,</p>
<p>There is a pretty large amount of mocking frameworks available, all with their own strengths and weaknesses. The most popular for C# (as far as I know) are <a href="http://www.nmock.org" rel="nofollow">NMock</a>, <a href="http://ayende.com/projects/rhino-mocks.aspx" rel="nofollow">Rhino Mocks</a> and <a href="http://www.typemock.net" rel="nofollow">TypeMock</a>.</p>
<p>A good list can be found on <a href="http://en.wikipedia.org/wiki/Mock_object#External_links" rel="nofollow">Wikipedia</a>, along with some interesting articles.</p>
<p>Hope this helps,</p>
<p>Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://www.reversealchemy.net/blog/2009/03/17/exploring-telerik-openaccess-unit-testing-your-business-logic-using-rhino-mocks/comment-page-1/#comment-34</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Fri, 27 Mar 2009 08:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=69#comment-34</guid>
		<description>Can you recommend other good mocking frameworks that support .NET?</description>
		<content:encoded><![CDATA[<p>Can you recommend other good mocking frameworks that support .NET?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
