<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments for paulpierce.co.uk</title>
	<link>http://paulpierce.co.uk</link>
	<description>Agile Experiences with C# .NET</description>
	<pubDate>Wed, 08 Sep 2010 18:50:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>Comment on First try of NMock2 by Paul Kinlan</title>
		<link>http://paulpierce.co.uk/?p=4#comment-1605</link>
		<dc:creator>Paul Kinlan</dc:creator>
		<pubDate>Wed, 21 Mar 2007 12:19:37 +0000</pubDate>
		<guid>http://paulpierce.co.uk/?p=4#comment-1605</guid>
		<description>Every NMock 2 search I do comes up with this, lucky really because I need to do indexers in NMock2. :)</description>
		<content:encoded><![CDATA[<p>Every NMock 2 search I do comes up with this, lucky really because I need to do indexers in NMock2. <img src='http://paulpierce.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Soap Headers in WCF, where have they gone. by Paul Pierce</title>
		<link>http://paulpierce.co.uk/?p=19#comment-1429</link>
		<dc:creator>Paul Pierce</dc:creator>
		<pubDate>Wed, 07 Mar 2007 17:17:36 +0000</pubDate>
		<guid>http://paulpierce.co.uk/?p=19#comment-1429</guid>
		<description>Alright Paul,

Thanks for the comment, makes a change to get one thats not spam.

I can see the benefit of the contract first approach, in that the wsdl's produced are more human readable and give you a more control over validation etc. The code first approach isn't the right choice for all applications and I agree that an initial investment of time in writing the wsdl could save time in the long run.

But i disagree with "Messages are not objects, and they should not be thought of as objects". Surely your wsdl will ultimately be used to generate a Data Transfer Object of some kind, so why not think in terms of the DTO to start with?

I will have a look at the webservice software factory.

ps. Enjoyed your posts on Devweek 

http://www.kinlan.co.uk/2007/02/day-1-of-devweek-conference.html
http://www.kinlan.co.uk/2007/03/devweek-day-2.html
http://www.kinlan.co.uk/2007/03/devweek-day-3-review.html

Sounded like it was really interesting, Maybe next year :).</description>
		<content:encoded><![CDATA[<p>Alright Paul,</p>
<p>Thanks for the comment, makes a change to get one thats not spam.</p>
<p>I can see the benefit of the contract first approach, in that the wsdl&#8217;s produced are more human readable and give you a more control over validation etc. The code first approach isn&#8217;t the right choice for all applications and I agree that an initial investment of time in writing the wsdl could save time in the long run.</p>
<p>But i disagree with &#8220;Messages are not objects, and they should not be thought of as objects&#8221;. Surely your wsdl will ultimately be used to generate a Data Transfer Object of some kind, so why not think in terms of the DTO to start with?</p>
<p>I will have a look at the webservice software factory.</p>
<p>ps. Enjoyed your posts on Devweek </p>
<p><a href="http://www.kinlan.co.uk/2007/02/day-1-of-devweek-conference.html" rel="nofollow">http://www.kinlan.co.uk/2007/02/day-1-of-devweek-conference.html</a><br />
<a href="http://www.kinlan.co.uk/2007/03/devweek-day-2.html" rel="nofollow">http://www.kinlan.co.uk/2007/03/devweek-day-2.html</a><br />
<a href="http://www.kinlan.co.uk/2007/03/devweek-day-3-review.html" rel="nofollow">http://www.kinlan.co.uk/2007/03/devweek-day-3-review.html</a></p>
<p>Sounded like it was really interesting, Maybe next year :).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Soap Headers in WCF, where have they gone. by Paul Kinlan</title>
		<link>http://paulpierce.co.uk/?p=19#comment-1426</link>
		<dc:creator>Paul Kinlan</dc:creator>
		<pubDate>Wed, 07 Mar 2007 15:55:28 +0000</pubDate>
		<guid>http://paulpierce.co.uk/?p=19#comment-1426</guid>
		<description>"I personally prefer the Code first approach and find it much easier to think of messages in terms of objects"

Messages are not objects, and they should not be thought of as objects.  Messages are messages that contain data. :)  The good thing about contract first is that you define up-front a schema (noramlly wsdl/xsd) that everyone can conform towards.

I belive the Webservice Software Factory has some guidance and help around headers.  It is on Codeplex under patterns &#38; practices.

Paul Kinlan</description>
		<content:encoded><![CDATA[<p>&#8220;I personally prefer the Code first approach and find it much easier to think of messages in terms of objects&#8221;</p>
<p>Messages are not objects, and they should not be thought of as objects.  Messages are messages that contain data. <img src='http://paulpierce.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The good thing about contract first is that you define up-front a schema (noramlly wsdl/xsd) that everyone can conform towards.</p>
<p>I belive the Webservice Software Factory has some guidance and help around headers.  It is on Codeplex under patterns &amp; practices.</p>
<p>Paul Kinlan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on First try of NMock2 by dibbin</title>
		<link>http://paulpierce.co.uk/?p=4#comment-12</link>
		<dc:creator>dibbin</dc:creator>
		<pubDate>Fri, 07 Jul 2006 20:23:37 +0000</pubDate>
		<guid>http://paulpierce.co.uk/?p=4#comment-12</guid>
		<description>Thanks for being the first none spam comment on my blog. 

The stub data reader in the article you mentioned, provides an good way replacing your db for testing and depending on the circumstances, may be more suitable than using NMock, especially if you wanted a more generic solution.

The article also highlights some of the benefits of using NMock: Without NMock we would have to build stubs in a similar way to the StubDataReader implementing all members; you can see by comparing the amount of code above  to the StubDataReader that this is a considerable time saving. NMock also allows us to say exactly how an object will be used, what properties/methods will be called, how many times etc.</description>
		<content:encoded><![CDATA[<p>Thanks for being the first none spam comment on my blog. </p>
<p>The stub data reader in the article you mentioned, provides an good way replacing your db for testing and depending on the circumstances, may be more suitable than using NMock, especially if you wanted a more generic solution.</p>
<p>The article also highlights some of the benefits of using NMock: Without NMock we would have to build stubs in a similar way to the StubDataReader implementing all members; you can see by comparing the amount of code above  to the StubDataReader that this is a considerable time saving. NMock also allows us to say exactly how an object will be used, what properties/methods will be called, how many times etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on First try of NMock2 by Paul Kinlan</title>
		<link>http://paulpierce.co.uk/?p=4#comment-11</link>
		<dc:creator>Paul Kinlan</dc:creator>
		<pubDate>Wed, 28 Jun 2006 14:50:09 +0000</pubDate>
		<guid>http://paulpierce.co.uk/?p=4#comment-11</guid>
		<description>Would it not be simpler and more reusable to create a Stub DataReader and Stub Record Collection that could fake the results from the DB, so that you can check the data parsing works correctly.

Much like: http://www.haacked.com/archive/2006/05/31/UnitTestingDataAccessCodeWithTheStubDataReader.aspx</description>
		<content:encoded><![CDATA[<p>Would it not be simpler and more reusable to create a Stub DataReader and Stub Record Collection that could fake the results from the DB, so that you can check the data parsing works correctly.</p>
<p>Much like: <a href="http://www.haacked.com/archive/2006/05/31/UnitTestingDataAccessCodeWithTheStubDataReader.aspx" rel="nofollow">http://www.haacked.com/archive/2006/05/31/UnitTestingDataAccessCodeWithTheStubDataReader.aspx</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
