<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Espresso Fueled Agile Development : ASP.NET AJAX</title><link>http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx</link><description>Tags: ASP.NET AJAX</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Who is using WCSF?</title><link>http://blogs.msdn.com/mpuleio/archive/2008/12/03/who-is-using-wcsf.aspx</link><pubDate>Wed, 03 Dec 2008 21:48:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9171225</guid><dc:creator>mpuleio</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/9171225.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=9171225</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=9171225</wfw:comment><description>&lt;p&gt;Blaine and I would like to ask the community to let us know &amp;quot;who is using WCSF?&amp;quot;&amp;#160; We know that WCSF has been fairly successful based on: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;WCSF has been downloaded a few times (ok, it is really many thousands of times) &lt;/li&gt;    &lt;li&gt;The discussion forums on CodePlex are fairly busy &lt;/li&gt;    &lt;li&gt;Direct customer engagement with a number of companies &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;However, there are a lot of folks who are using WCSF that we do not know about.&amp;#160; Since we get requests all the time about who is using WCSF, the size of projects, the size of dev teams, etc, we would love to collect some more data and statistics.&amp;#160; So, if you have used or are using WCSF on a project, let us know via comments, email, or discussions on CodePlex.&amp;#160; If you have stopped using it, please let us know why, so we can possibly address concerns.&lt;/p&gt;  &lt;p&gt;To make things simple, I have created a thread on the WCSF CodePlex discussion forum so you can easily provide feedback: &lt;a title="http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=41405" href="http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=41405"&gt;http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=41405&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Thanks. &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9171225" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>Where is WCSF headed?</title><link>http://blogs.msdn.com/mpuleio/archive/2008/12/03/where-is-wcsf-headed.aspx</link><pubDate>Wed, 03 Dec 2008 21:24:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9171150</guid><dc:creator>mpuleio</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/9171150.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=9171150</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=9171150</wfw:comment><description>&lt;p&gt;Blaine &amp;amp; I have been getting a lot of emails, messages, comments, etc about WCSF.&amp;#160; There are a lot of people interested in a public statement from patterns &amp;amp; practices about the roadmap for WCSF and future support of WCSF, in addition to the &amp;quot;normal&amp;quot; feature requests.&lt;/p&gt;  &lt;p&gt;Well, we have some good news: Blaine has publicly released the WCSF roadmap in his blog as &lt;a href="http://blogs.msdn.com/blaine/archive/2008/12/03/roadmap-for-wcsf.aspx"&gt;Roadmap for WCSF&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Basically, right now, we are asking for feedback from the community.&amp;#160; Let Blaine and/or I know what you want via our blogs, email, or the WCSF CodePlex site at &lt;a href="http://www.codeplex.com/websf"&gt;www.codeplex.com/websf&lt;/a&gt;.&amp;#160; You can also create work items/ issues on the WCSF CodePlex site and have people vote on them (&lt;a title="http://www.codeplex.com/websf/WorkItem/List.aspx" href="http://www.codeplex.com/websf/WorkItem/List.aspx"&gt;http://www.codeplex.com/websf/WorkItem/List.aspx&lt;/a&gt;).&amp;#160; &lt;/p&gt;  &lt;p&gt;Thanks in advance for the feedback...&lt;/p&gt;  &lt;p&gt;[Edit: I created a specific thread on the CodePlex discussions board to facilitate feedback: &lt;a title="http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=41403" href="http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=41403"&gt;http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=41403&lt;/a&gt;). Enjoy]&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9171150" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Converting the Composite Web Application Block to Unity - Using the UnityCompositionContainer</title><link>http://blogs.msdn.com/mpuleio/archive/2008/05/21/converting-the-composite-web-application-block-to-unity-using-the-unitycompositioncontainer.aspx</link><pubDate>Wed, 21 May 2008 19:38:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8528652</guid><dc:creator>mpuleio</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8528652.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8528652</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8528652</wfw:comment><description>&lt;p&gt;This is the sixth post in a series. The other post include:  &lt;ul&gt; &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-intro.aspx"&gt;Converting the Composite Web Application Block to Unity - Intro&lt;/a&gt;.  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-adding-an-icompositioncontainer.aspx" target="_blank"&gt;Converting the Composite Web Application Block to Unity - Adding an ICompositionContainer&lt;/a&gt;  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/09/converting-the-composite-web-application-block-to-unity-clean-up-icompositioncontainer.aspx"&gt;Converting the Composite Web Application Block to Unity - Clean Up ICompositionContainer&lt;/a&gt;  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/22/converting-the-composite-web-application-block-to-unity-ummmm-oooops.aspx"&gt;Converting the Composite Web Application Block to Unity - Ummmm...Oooops.&lt;/a&gt;  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/05/01/converting-the-composite-web-application-block-to-unity-actually-adding-unity.aspx" target="_blank"&gt;Converting the Composite Web Application Block to Unity - Actually Adding Unity&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you want background, go read the earlier posts.  &lt;p&gt;Based upon feedback, I am making the source code available at &lt;a title="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" target="_blank"&gt;CWAB and Unity&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;For those who have been following along, you all know I am making this up as I go. So, I am asking that you be patient with me as we figure this out together. This article (in particular) may have a few false starts, and "ooops" moments.&amp;nbsp; We are replacing something that was not meant to be pluggable, and all of the refactoring work that has been done up to this point may not be enough.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;Reminder:&amp;nbsp; &lt;/strong&gt;&lt;em&gt;&lt;u&gt;This is a proof of concept&lt;/u&gt;&lt;/em&gt;.&amp;nbsp; The version of CWAB I am creating here is not a supported product or guidance from patterns &amp;amp; practices.&amp;nbsp; If you really want Unity support in WCSF, please go to the Issue Tracker on the &lt;a href="http://www.codeplex.com/websf" target="_blank"&gt;WCSF Community Site&lt;/a&gt; and vote for the work item to get Unity support for WCSF.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;At the end of the last post I planned on trying to actually use the UnityCompositionContainer, and then nuke the old CompositionContainer.&lt;/p&gt; &lt;p&gt;Let's get started by replacing any calls that creates a CompositionContainer with code that creates a UnityCompositionContainer.&amp;nbsp; There is ONE spot, in WebClientApplication.&amp;nbsp; Simple. Change, recompile, re-run unit tests, and we are green. &lt;/p&gt; &lt;p&gt;If it really was that simple, we should be able to remove the CompositionContainer class (and its test fixture) from the solution, and not have any challenges.&amp;nbsp; Let's try that.&lt;/p&gt; &lt;p&gt;We fail to compile.&amp;nbsp; Our TestableRootCompositionContainer is part of the problem. MockContainer in ManagedObjectCollectionFixture is the rest of it.&lt;/p&gt; &lt;p&gt;If we derive TestableRootCompositionContainer from UnityContainer, and remove everything from the class (as a temporary measure), we go from two to 27 build errors.&amp;nbsp; &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&amp;lt;timewarp duration="an or two"/&amp;gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Not good.&amp;nbsp; But not too bad, considering what comes next.&amp;nbsp; After fixing these build errors, I got on a roll, and did the following:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Removed references to the old ObjectBuilder.dll in both unit test and system projects  &lt;li&gt;Removed the BuilderStrategies folder in both unit test and system projects  &lt;li&gt;Removed the Collections folder in both unit test and system projects  &lt;li&gt;Removed the ObjectBuilder folder in both unit test and system projects  &lt;li&gt;Removed the ProviderDependencyAttribute and its fixture  &lt;li&gt;Removed StateDependencyAttribute and its fixture  &lt;li&gt;Removed OptionalDependencyAttribute and its fixture  &lt;li&gt;Removed ServiceDependencyAttribute and its fixture  &lt;li&gt;Removed all references to the old ObjectBuilder namespace  &lt;li&gt;Replaced any [CreateNew] attributes with the Unity [Dependency] attribute  &lt;li&gt;Hacked on WebClientApplication  &lt;li&gt;Removed the Services collection.&amp;nbsp; Replaced calls to container.Services.Add with container.RegisterType.&amp;nbsp; If needed added a call to container.Resolve, when the Services.Add call was supposed to return an object.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Ok, things are compiling again.&amp;nbsp; Finally.&amp;nbsp; But there are a few failing unit tests, about 20 or so...&amp;nbsp; Let's fix those.&lt;/p&gt; &lt;p&gt;&amp;lt;type... type.... swear.... type /&amp;gt;&lt;/p&gt; &lt;p&gt;Getting those test to pass was fairly simple.&amp;nbsp; All of them required a little bit of container setup that was different than before.&amp;nbsp; This was not a big deal.&lt;/p&gt; &lt;p&gt;There is one major change I did make in the process, and a related renaming.&amp;nbsp; First, the renaming, Page became InjectablePage; MasterPage became InjectableMasterPage, and guess what UserControl became? Excactly, InjectableUserControl.&amp;nbsp; These are better descriptions and will remove the confusion I have dealt with on the forums where people use the wrong Page base class.&amp;nbsp; The other change is that, previously CompositionContainer had two Builders: one for things like services that stayed around, and another for Pages and transient items like presenters.&amp;nbsp; We no longer need two builders, and can get containers and lifetime managers to handle the differences.&amp;nbsp; The approach I took for simplicity is to have each page create a container that is a child of the correct Module container, use this for doing injection on the page, and then nuking the container on Page.Dispose.&amp;nbsp; This is quick and dirty, and it works, but I may revisit it later. &lt;/p&gt; &lt;p&gt;Now, since Unity 1.1 just shipped, it is time to upgrade.&amp;nbsp; I replaced the binaries and...&lt;/p&gt; &lt;p&gt;Everything still passes.&lt;/p&gt; &lt;p&gt;I think that is enough for today.&lt;/p&gt; &lt;p&gt;As a quick check, I just looked at the solution statistics for the original version of CWAB and the current solution.&amp;nbsp; CWAB went from 26KLOC (pre-article one) to 14KLOC, both numbers including unit tests.&amp;nbsp; And I bet that there is more to be cut out and cleaned up.&amp;nbsp; Having a purpose built, re-usable component for DI helped a lot here.&amp;nbsp; For this edition, windiff will probably be the best bet for following all the types of changes I made.&amp;nbsp; This one took a while and impacted &lt;em&gt;&lt;strong&gt;a lot &lt;/strong&gt;&lt;/em&gt;of code.&lt;/p&gt; &lt;p&gt;Next, I am going to review unit tests, run code coverage, determine if there are gaps in test coverage after all the hacking.&amp;nbsp; After that, it will be porting one of the quickstarts over to the new version of CWAB.&amp;nbsp; After that, the RI, at which point I will be sure that the updated version works well enough to be a good proof of concept.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8528652" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Unity/default.aspx">Unity</category></item><item><title>Converting the Composite Web Application Block to Unity - Actually Adding Unity</title><link>http://blogs.msdn.com/mpuleio/archive/2008/05/01/converting-the-composite-web-application-block-to-unity-actually-adding-unity.aspx</link><pubDate>Fri, 02 May 2008 02:44:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447888</guid><dc:creator>mpuleio</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8447888.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8447888</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8447888</wfw:comment><description>&lt;p&gt;This is the fifth post in a series. The other post include:  &lt;ul&gt; &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-intro.aspx"&gt;Converting the Composite Web Application Block to Unity - Intro&lt;/a&gt;.  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-adding-an-icompositioncontainer.aspx" target="_blank"&gt;Converting the Composite Web Application Block to Unity - Adding an ICompositionContainer&lt;/a&gt;  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/09/converting-the-composite-web-application-block-to-unity-clean-up-icompositioncontainer.aspx"&gt;Converting the Composite Web Application Block to Unity - Clean Up ICompositionContainer&lt;/a&gt;  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/22/converting-the-composite-web-application-block-to-unity-ummmm-oooops.aspx"&gt;Converting the Composite Web Application Block to Unity - Ummmm...Oooops.&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you want background, go read the earlier posts.  &lt;p&gt;Based upon feedback, I am making the source code available at &lt;a title="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" target="_blank"&gt;CWAB and Unity&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;First off, I have moved this little side project to source control, so I can avoid the re-work I had to do before I could write this part of the series. &lt;/p&gt; &lt;p&gt;Note to self :&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;em&gt;NEVER work without a safety net.&amp;nbsp; That means both unit tests and source control. &lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Ok.&amp;nbsp; Now that that is out of the way....&lt;/p&gt; &lt;p&gt;Let's go add Unity to CWAB, via EDD (formerly TDD).&lt;/p&gt; &lt;p&gt;How can we do this?&amp;nbsp; First, we need a test fixture.&amp;nbsp; So, I added &lt;span style="color: #2b91af"&gt;CompositionContainerFixture&lt;/span&gt; to the CompositeWeb.Tests project as an empty test fixture.&amp;nbsp; And then I added the following very simple test as a starting point:&lt;/p&gt; &lt;blockquote&gt;&lt;pre class="code"&gt;[&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
&lt;span style="color: blue"&gt;public void &lt;/span&gt;UnityCompositionContainerIsICompositionContainer()
{
    UnityCompositionContainer container = &lt;span style="color: blue"&gt;new &lt;/span&gt;UnityCompositionContainer();
    &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.IsInstanceOfType(container, &lt;span style="color: blue"&gt;typeof&lt;/span&gt;(&lt;span style="color: #2b91af"&gt;ICompositionContainer&lt;/span&gt;));
}
&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;This will allow me to write enough code to create the &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;class and ensure that it implements the right interface.&lt;/p&gt;
&lt;p&gt;Making the test compile forces me to create a new &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;class (I added it to the fixture as a nested class for the moment), and the test fails.&amp;nbsp; No problem.&amp;nbsp; I add the interface, implement it with methods that throw, and..... We are green again.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Next step, I copied the unit test &lt;span style="color: green"&gt;RootContainerParentIsNull&lt;/span&gt; over, changed its name to NewUnityContainerParentIsNull, updated it to create a new UnityCompositionContainer, and compiled and ran the test.&amp;nbsp; It passed, which is not idea;l, but I will leave it an move on, knowing it will be important later.&amp;nbsp; For the next test, I copied &lt;span style="color: green"&gt;ChildContainerHasParent &lt;/span&gt;changed its name to NewUnityContainerParentIsNull, updated it to create a new UnityCompositionContainer, and compiled and ran the test... Red. Just like we expected.&amp;nbsp; To make this work, I could do a bit of throw away work, or I could add Unity.&amp;nbsp; I feel like I can skip the simplest thing possible, because I know where I want to go.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;However, first, I'm doing a check-in.&amp;nbsp; I'll comment out the failing test, and sync up.&amp;nbsp; Just a sec.&lt;/p&gt;
&lt;p&gt;&amp;lt;click click&amp;gt;&lt;/p&gt;
&lt;p&gt;Ok, now To add Unity.&amp;nbsp; I grabbed the binaries from MSDN, dropped them in my tree in the Lib folder and we are good to go.&amp;nbsp; I added references in the CWAB projecct to Unity.DLL and ObjectBuilder2.DLL.&amp;nbsp; This means we have two completely separate DI systems as part of out code, which is awful.&amp;nbsp; However, it won't last too long.&lt;/p&gt;
&lt;p&gt;Now, we can make that test pass.&amp;nbsp; I added an IUnityContainer field to UnityCompositionContainer.&amp;nbsp; I then implemented a constructor to initialize it.&amp;nbsp; Then we needed to implement CreateChildContainer.&amp;nbsp; For this, the simplest thing was to create a new constructor for UnityCompositionContainer which takes a parent container as the only parameter.&amp;nbsp; After a little wire-up we end up with passing tests and this code:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;private &lt;/span&gt;UnityCompositionContainer(&lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;parentContainer)
{
    Parent = parentContainer;
    wrappedContainer = parentContainer.wrappedContainer.CreateChildContainer();
}&lt;/pre&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;CreateChildContainer()
{
    &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;child = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;(&lt;span style="color: blue"&gt;this&lt;/span&gt;);
    &lt;span style="color: blue"&gt;return &lt;/span&gt;child;
}&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;Fairly simple.&amp;nbsp; I will continue moving unit tests over, adapting them, and making them pass.&amp;nbsp; If there are any interesting deviations from normal, or new tests added, I'll let you know.&lt;/p&gt;
&lt;p&gt;&amp;lt;timewarp duration="a short while" /&amp;gt;&lt;/p&gt;
&lt;p&gt;That was actually fairly simple.&amp;nbsp; I copied the tests one at a time, replaced the container used with the UnityCompositionContainer, compiled, ran the tests, watched them fail due to NotImplementedExceptions, and fixed them.&amp;nbsp; Here's the test fixture:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;[&lt;span style="color: #2b91af"&gt;TestClass&lt;/span&gt;]
&lt;span style="color: blue"&gt;public class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainerFixture
&lt;/span&gt;{
    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;UnityCompositionContainerIsICompositionContainer()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;container = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.IsInstanceOfType(container, &lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;ICompositionContainer&lt;/span&gt;));
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;NewUnityContainerParentIsNull()
    {
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;container = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.IsNull(container.Parent);
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;ChildContainerHasParent()
    {
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;parent = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();

        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;child = parent.CreateChildContainer();

        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreSame(parent, child.Parent);
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanRegisterTypeMappingOnRootContainer()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();

        root.RegisterType&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;();

        &lt;span style="color: #2b91af"&gt;IFoo &lt;/span&gt;resolvedIFoo = root.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;&amp;gt;();

        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;), resolvedIFoo.GetType());
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanRegisterTypeMappingViaTypeObjects()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        root.RegisterType(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;), &lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;));

        &lt;span style="color: #2b91af"&gt;IFoo &lt;/span&gt;resolvedIFoo = root.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;&amp;gt;();

        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;), resolvedIFoo.GetType());
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RequestingTypeMappingForUnmappedTypeReturnsRequestedType()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();

        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;resolvedFoo = root.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;();

        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;), resolvedFoo.GetType());
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    [&lt;span style="color: #2b91af"&gt;ExpectedException&lt;/span&gt;(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;ArgumentException&lt;/span&gt;))]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;TypeMappingsMustBeTypeCompatible()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        root.RegisterType(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;IBar&lt;/span&gt;), &lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;));
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanRegisterMultipleTypeMappings()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();

        root.RegisterType&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;();
        root.RegisterType&amp;lt;&lt;span style="color: #2b91af"&gt;IBar&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;Bar&lt;/span&gt;&amp;gt;();
        &lt;span style="color: #2b91af"&gt;IBar &lt;/span&gt;b = root.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;IBar&lt;/span&gt;&amp;gt;();
        &lt;span style="color: #2b91af"&gt;IFoo &lt;/span&gt;f = root.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;&amp;gt;();

        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Bar&lt;/span&gt;), b.GetType());
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;), f.GetType());
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RequestingTypeMappingOnChildReadsFromParent()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;parent = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;child = (&lt;span style="color: #2b91af"&gt;ICompositionContainer&lt;/span&gt;) parent.CreateChildContainer();

        parent.RegisterType&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;();

        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;), child.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;&amp;gt;().GetType());
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;ChildContainersCanOverrideParentTypeMapping()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;parent = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;child = (&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;) parent.CreateChildContainer();

        parent.RegisterType&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;();
        child.RegisterType&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;Foo2&lt;/span&gt;&amp;gt;();

        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;), parent.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;&amp;gt;().GetType());
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo2&lt;/span&gt;), child.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;IFoo&lt;/span&gt;&amp;gt;().GetType());
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanCreateChildContainer()
    {
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;container = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();

        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;child = container.CreateChildContainer();
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.IsNotNull(child);
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreNotSame(container, child);
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanRegisterInstance()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        root.RegisterInstance(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: blue"&gt;string&lt;/span&gt;), &lt;span style="color: #a31515"&gt;"foo"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"bar"&lt;/span&gt;);
        &lt;span style="color: blue"&gt;string &lt;/span&gt;returned = (&lt;span style="color: blue"&gt;string&lt;/span&gt;) root.Resolve(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: blue"&gt;string&lt;/span&gt;), &lt;span style="color: #a31515"&gt;"foo"&lt;/span&gt;);
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: #a31515"&gt;"bar"&lt;/span&gt;, returned);
    }


    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanRegisterInstanceViaGenericWithoutName()
    {
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;f1 = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;();
        root.RegisterInstance&amp;lt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;(f1);
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;returnedFoo = (&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;) root.Resolve(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;));
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(f1, returnedFoo);
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanRegisterInstanceViaGenericWithName()
    {
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;f1 = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;();
        root.RegisterInstance&amp;lt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;(&lt;span style="color: #a31515"&gt;"asdf"&lt;/span&gt;, f1);
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;returnedFoo = (&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;) root.Resolve(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;), &lt;span style="color: #a31515"&gt;"asdf"&lt;/span&gt;);
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(f1, returnedFoo);
    }


    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanResolveViaGenericWithoutName()
    {
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;f1 = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;();
        root.RegisterInstance&amp;lt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;(f1);
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;returnedFoo = root.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;();
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(f1, returnedFoo);
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;CanResolveInstanceViaGenericWithName()
    {
        &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;f1 = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;();
        root.RegisterInstance&amp;lt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;(&lt;span style="color: #a31515"&gt;"asdf"&lt;/span&gt;, f1);
        &lt;span style="color: #2b91af"&gt;Foo &lt;/span&gt;returnedFoo = root.Resolve&amp;lt;&lt;span style="color: #2b91af"&gt;Foo&lt;/span&gt;&amp;gt;(&lt;span style="color: #a31515"&gt;"asdf"&lt;/span&gt;);
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(f1, returnedFoo);
    }

    [&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
    &lt;span style="color: blue"&gt;public void &lt;/span&gt;UnityCompositionContainerImplementsIDisposable()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;disposableContainer = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;();
        &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.IsNotNull(disposableContainer &lt;span style="color: blue"&gt;as &lt;/span&gt;&lt;span style="color: #2b91af"&gt;IDisposable&lt;/span&gt;);
    }

    &lt;span style="color: green"&gt;// This test is commented out intentionally. The purpose of this test is to show 
    // that if you use the generic version of the RegisterTypeMapping method, if the
    // types aren't compatible it'll fail at compile time. 
    // 
    // This is exactly what happens. However that also means this file won't compile.
    // The test is left in as comments, if you wish to verify this then remove the comments,
    // watch the compile file, and then comment it out again.

    //[TestMethod]
    //public void GenericTypeMappingRegistrationEnforcesCompileTimeCompatibility()
    //{
    //    UnityCompositionContainer root = new UnityCompositionContainer();
    //    root.RegisterType&amp;lt;IBar, Foo&amp;gt;();
    //}
&lt;/span&gt;}&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;Notice, there are no tests for the Services collection.&amp;nbsp; This is intentional.&amp;nbsp; We will see if we can avoid implementing the methods at all.&lt;/p&gt;
&lt;p&gt;And here is the code to make those tests pass:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;: &lt;span style="color: #2b91af"&gt;ICompositionContainer&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;IDisposable
&lt;/span&gt;{
    &lt;span style="color: blue"&gt;private &lt;/span&gt;&lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;parent = &lt;span style="color: blue"&gt;null&lt;/span&gt;;
    &lt;span style="color: blue"&gt;private &lt;/span&gt;&lt;span style="color: #2b91af"&gt;IUnityContainer &lt;/span&gt;wrappedContainer;

    &lt;span style="color: blue"&gt;public &lt;/span&gt;UnityCompositionContainer()
    {
        wrappedContainer = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityContainer&lt;/span&gt;();
    }

    &lt;span style="color: blue"&gt;private &lt;/span&gt;UnityCompositionContainer(&lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;parentContainer)
    {
        Parent = parentContainer;
        wrappedContainer = parentContainer.wrappedContainer.CreateChildContainer();
    }

    &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;Parent
    {
        &lt;span style="color: blue"&gt;get &lt;/span&gt;{ &lt;span style="color: blue"&gt;return &lt;/span&gt;parent; }
        &lt;span style="color: blue"&gt;set &lt;/span&gt;{ parent = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }
    }

    &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;IServiceCollection &lt;/span&gt;Services
    {
        &lt;span style="color: blue"&gt;get &lt;/span&gt;{ &lt;span style="color: blue"&gt;throw new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;NotImplementedException&lt;/span&gt;(); &lt;span style="color: green"&gt;// return services; 
        &lt;/span&gt;}
    }

    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterInstance(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;t, &lt;span style="color: blue"&gt;object &lt;/span&gt;instance)
    {
        wrappedContainer.RegisterInstance(t, instance);
    }

    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterInstance(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;t, &lt;span style="color: blue"&gt;string &lt;/span&gt;name, &lt;span style="color: blue"&gt;object &lt;/span&gt;instance)
    {
        wrappedContainer.RegisterInstance(t, name, instance);
    }

    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterInstance&amp;lt;TInterface&amp;gt;(TInterface instance)
    {
        wrappedContainer.RegisterInstance&amp;lt;TInterface&amp;gt;(instance);
    }

    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterInstance&amp;lt;TInterface&amp;gt;(&lt;span style="color: blue"&gt;string &lt;/span&gt;name, TInterface instance)
    {
        wrappedContainer.RegisterInstance&amp;lt;TInterface&amp;gt;(name, instance);
    }

    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterType&amp;lt;TRequested, TReturned&amp;gt;() &lt;span style="color: blue"&gt;where &lt;/span&gt;TReturned : TRequested
    {
        wrappedContainer.RegisterType&amp;lt;TRequested, TReturned&amp;gt;();
    }

    &lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterType(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;requested, &lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;returned)
    {
        wrappedContainer.RegisterType(requested, returned);
    }

    &lt;span style="color: blue"&gt;public object &lt;/span&gt;Resolve(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;typeOfItem)
    {
        &lt;span style="color: blue"&gt;return &lt;/span&gt;wrappedContainer.Resolve(typeOfItem);
    }

    &lt;span style="color: blue"&gt;public object &lt;/span&gt;Resolve(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;typeOfItem, &lt;span style="color: blue"&gt;string &lt;/span&gt;name)
    {
        &lt;span style="color: blue"&gt;return &lt;/span&gt;wrappedContainer.Resolve(typeOfItem, name);
    }

    &lt;span style="color: blue"&gt;public &lt;/span&gt;T Resolve&amp;lt;T&amp;gt;()
    {
        &lt;span style="color: blue"&gt;return &lt;/span&gt;wrappedContainer.Resolve&amp;lt;T&amp;gt;();
    }

    &lt;span style="color: blue"&gt;public &lt;/span&gt;T Resolve&amp;lt;T&amp;gt;(&lt;span style="color: blue"&gt;string &lt;/span&gt;name)
    {
        &lt;span style="color: blue"&gt;return &lt;/span&gt;wrappedContainer.Resolve&amp;lt;T&amp;gt;(name);
    }

    &lt;span style="color: blue"&gt;public object &lt;/span&gt;BuildItem(&lt;span style="color: #2b91af"&gt;IBuilder&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;WCSFBuilderStage&lt;/span&gt;&amp;gt; builder, &lt;span style="color: blue"&gt;object &lt;/span&gt;item)
    {
        &lt;span style="color: blue"&gt;throw new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;NotImplementedException&lt;/span&gt;();
    }

    &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;CreateChildContainer()
    {
        &lt;span style="color: #2b91af"&gt;UnityCompositionContainer &lt;/span&gt;child = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;UnityCompositionContainer&lt;/span&gt;(&lt;span style="color: blue"&gt;this&lt;/span&gt;);
        &lt;span style="color: blue"&gt;return &lt;/span&gt;child;
    }

    &lt;span style="color: blue"&gt;public void &lt;/span&gt;Dispose()
    {
        wrappedContainer.Dispose();
        wrappedContainer = &lt;span style="color: blue"&gt;null&lt;/span&gt;;
    }
}&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;We are now in a green state, time to check in.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Abusing Source Control&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Agile teams usually check in very often.&amp;nbsp; Some teams check in every time they hit green.&amp;nbsp; I think that is a bit of overkill, unless you have a source control system with NO overhead.&amp;nbsp; I check in when I complete a feature or a story, and usually at a few good, green stopping points in the process, like I have been doing.&amp;nbsp; This was a good stopping point, and my next task is a bit risky, so this is a perfect time to check in.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This is a long enough post, even though I didn't do all that much, that I will call it quits for today.&amp;nbsp; Next post, actually use the UnityCompositionContainer, and then nuke the old CompositionContainer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8447888" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Example+Driven+Design+_2800_Formerly+TDD_2900_/default.aspx">Example Driven Design (Formerly TDD)</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Unity/default.aspx">Unity</category></item><item><title>Converting the Composite Web Application Block to Unity - Ummmm...Oooops.</title><link>http://blogs.msdn.com/mpuleio/archive/2008/04/22/converting-the-composite-web-application-block-to-unity-ummmm-oooops.aspx</link><pubDate>Wed, 23 Apr 2008 02:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8417509</guid><dc:creator>mpuleio</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8417509.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8417509</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8417509</wfw:comment><description>&lt;P&gt;This is the forth post in a series. The other post include 
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-intro.aspx" mce_href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-intro.aspx"&gt;Converting the Composite Web Application Block to Unity - Intro&lt;/A&gt;. 
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-adding-an-icompositioncontainer.aspx" target=_blank mce_href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-adding-an-icompositioncontainer.aspx"&gt;Converting the Composite Web Application Block to Unity - Adding an ICompositionContainer&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/mpuleio/archive/2008/04/09/converting-the-composite-web-application-block-to-unity-clean-up-icompositioncontainer.aspx" mce_href="http://blogs.msdn.com/mpuleio/archive/2008/04/09/converting-the-composite-web-application-block-to-unity-clean-up-icompositioncontainer.aspx"&gt;Converting the Composite Web Application Block to Unity - Clean Up ICompositionContainer&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;If you want background, go read the earlier posts. 
&lt;P&gt;Based upon feedback, I am making the source code available at &lt;A title=http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" target=_blank mce_href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity"&gt;CWAB and Unity&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In the last installment I wanted to remove the following from the ICompositionContainer:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRIKE&gt;static methods &lt;/STRIKE&gt;
&lt;LI&gt;&lt;STRIKE&gt;Builder &lt;/STRIKE&gt;
&lt;LI&gt;&lt;STRIKE&gt;Locator &lt;/STRIKE&gt;
&lt;LI&gt;&lt;STRIKE&gt;Containers &lt;/STRIKE&gt;
&lt;LI&gt;Services&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;We completed the first four. In this installment, we will remove the Services collection, replacing it with using RegisterInstance and Resolve. After that, we will compare our ICompositionContainer to IUnityContainer, see what else we need to do, and may even pull in Unity. 
&lt;H3&gt;Adding a few new methods&lt;/H3&gt;
&lt;P&gt;Before we do this, I want to add a generic overload to Resolve and one to RegisterInstance.&amp;nbsp; I like the way the generic calls on Unity look, compared to all the typeof() and casting we have done so far.&amp;nbsp; 
&lt;P&gt;I added the following tests, one at a time, and made them pass: 
&lt;BLOCKQUOTE&gt;&lt;PRE class=code&gt;[&lt;SPAN style="COLOR: #2b91af"&gt;TestMethod&lt;/SPAN&gt;]
&lt;SPAN style="COLOR: blue"&gt;public void &lt;/SPAN&gt;CanRegisterInstanceViaGenericWithoutName()
{
    &lt;SPAN style="COLOR: #2b91af"&gt;ICompositionContainer &lt;/SPAN&gt;root = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;TestableRootCompositionContainer&lt;/SPAN&gt;();
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;f1 = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;();
    root.RegisterInstance&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;&amp;gt;(f1);
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;returnedFoo = (&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;)root.Resolve(&lt;SPAN style="COLOR: blue"&gt;typeof&lt;/SPAN&gt;(&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;));
    &lt;SPAN style="COLOR: #2b91af"&gt;Assert&lt;/SPAN&gt;.AreEqual(f1, returnedFoo);
}

[&lt;SPAN style="COLOR: #2b91af"&gt;TestMethod&lt;/SPAN&gt;]
&lt;SPAN style="COLOR: blue"&gt;public void &lt;/SPAN&gt;CanRegisterInstanceViaGenericWithName()
{
    &lt;SPAN style="COLOR: #2b91af"&gt;ICompositionContainer &lt;/SPAN&gt;root = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;TestableRootCompositionContainer&lt;/SPAN&gt;();
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;f1 = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;();
    root.RegisterInstance&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;&amp;gt;(&lt;SPAN style="COLOR: #a31515"&gt;"asdf"&lt;/SPAN&gt;, f1);
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;returnedFoo = (&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;)root.Resolve(&lt;SPAN style="COLOR: blue"&gt;typeof&lt;/SPAN&gt;(&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;), &lt;SPAN style="COLOR: #a31515"&gt;"asdf"&lt;/SPAN&gt;);
    &lt;SPAN style="COLOR: #2b91af"&gt;Assert&lt;/SPAN&gt;.AreEqual(f1, returnedFoo);
}


[&lt;SPAN style="COLOR: #2b91af"&gt;TestMethod&lt;/SPAN&gt;]
&lt;SPAN style="COLOR: blue"&gt;public void &lt;/SPAN&gt;CanResolveViaGenericWithoutName()
{
    &lt;SPAN style="COLOR: #2b91af"&gt;ICompositionContainer &lt;/SPAN&gt;root = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;TestableRootCompositionContainer&lt;/SPAN&gt;();
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;f1 = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;();
    root.RegisterInstance&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;&amp;gt;(f1);
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;returnedFoo = root.Resolve&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;&amp;gt;();
    &lt;SPAN style="COLOR: #2b91af"&gt;Assert&lt;/SPAN&gt;.AreEqual(f1, returnedFoo);
}

[&lt;SPAN style="COLOR: #2b91af"&gt;TestMethod&lt;/SPAN&gt;]
&lt;SPAN style="COLOR: blue"&gt;public void &lt;/SPAN&gt;CanResolveInstanceViaGenericWithName()
{
    &lt;SPAN style="COLOR: #2b91af"&gt;ICompositionContainer &lt;/SPAN&gt;root = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;TestableRootCompositionContainer&lt;/SPAN&gt;();
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;f1 = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;();
    root.RegisterInstance&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;&amp;gt;(&lt;SPAN style="COLOR: #a31515"&gt;"asdf"&lt;/SPAN&gt;, f1);
    &lt;SPAN style="COLOR: #2b91af"&gt;Foo &lt;/SPAN&gt;returnedFoo = root.Resolve&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Foo&lt;/SPAN&gt;&amp;gt;(&lt;SPAN style="COLOR: #a31515"&gt;"asdf"&lt;/SPAN&gt;);
    &lt;SPAN style="COLOR: #2b91af"&gt;Assert&lt;/SPAN&gt;.AreEqual(f1, returnedFoo);
}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In making them pass, I added the following to the ICompositionContainer interface:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;PRE class=code&gt;T Resolve&amp;lt;T&amp;gt;();
T Resolve&amp;lt;T&amp;gt;(&lt;SPAN style="COLOR: blue"&gt;string &lt;/SPAN&gt;name);
&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;RegisterInstance&amp;lt;TInterface&amp;gt;(TInterface instance);
&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;RegisterInstance&amp;lt;TInterface&amp;gt;(&lt;SPAN style="COLOR: blue"&gt;string &lt;/SPAN&gt;name, TInterface instance);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;
&lt;P&gt;This will help a bit with the look, feel, and style of the code, now for the real work.&lt;/P&gt;
&lt;H3&gt;Removing the Services Collection&lt;/H3&gt;
&lt;P&gt;Why do we want to remove the Services collection?&amp;nbsp; Since Unity handles this sort of functionality, we can offload it entirely to Unity.&amp;nbsp; This will cut a bit of code out of our implementation. 
&lt;P&gt;Let's do this the simple way, (I like to call it hack and slash development) and just remove the Services collection from the ICompositionContainer interface.&amp;nbsp; This will result in a number of build errors (twenty or so, in fact).&amp;nbsp; However, we can fix each of them easily.&amp;nbsp; Any call to add a service becomes a RegisterInstance call, and any call to get a service becomes a Resolve call.&amp;nbsp; So, we will hack each problem until we are in a green state again.&amp;nbsp; The other option, for the less daring, is to search for all uses of Services, change them one at a time, and make sure we are green at each step.&amp;nbsp; Today, I am feeling brave (read: reckless, or overly caffeinated), so I took the other approach.&amp;nbsp; If I were pairing with someone, they would probably stop me. :-) 
&lt;P&gt;Once CWAB compiles, we still need to get the unit test library to compile.&amp;nbsp; &amp;lt;click click click&amp;gt; &amp;lt;swear&amp;gt; &amp;lt;click click click&amp;gt;.&amp;nbsp; The biggest challenge here is that Services.AddNew&amp;lt;T, IT&amp;gt; and RegisterType&amp;lt;IT, T&amp;gt; have the generic parameters in reversed order.&amp;nbsp; Aaargh. 
&lt;P&gt;Everything compiles, but I have a problem: 34 unit tests are failing.&amp;nbsp; This is not optimal.&amp;nbsp; Now, why are they failing?&amp;nbsp; After looking at the first few, it looks like I removed Services from the interface, and forgot to remove it from the CompositionContainer.&amp;nbsp; The result is that some tests are still using the ServicesCollection.&amp;nbsp; Oooops. 
&lt;P&gt;After removing Services from CompostionContainer, and getting everything to compile again, the test results are..... 
&lt;P&gt;Ouch!&amp;nbsp; 40 failing unit tests.&amp;nbsp; That is not good. 
&lt;P&gt;However, after some investigation, I can remove a couple of classes from our solution, as they are no longer necessary, and are just causing problems. 
&lt;BLOCKQUOTE&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: #2b91af"&gt;ServiceDependencyParameterResolver&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;ProviderDependencyParameterResolver&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;ProviderDependencyAttribute&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;ServiceDependencyAttribute&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;After removing them, there is a bit of code cleanup required, to remove references.&amp;nbsp; All of the ServiceDependencyAttributes I replaced with ObjectBuilder DependencyAttributes.&amp;nbsp; The ProviderAttributes, I commented out for the moment.&lt;/P&gt;
&lt;P&gt;Wow. Progress. we are down to 37 failing tests. After looking at a few of them, where instances were not the same, I changed the SingletonPolicy in Resolve, and we are down to 24 failing tests. 
&lt;P&gt;Oh, gotta take a break. 
&lt;P&gt;&amp;lt;TimeWarp&amp;gt;Several Days Fly By&amp;lt;/TimeWarp&amp;gt; 
&lt;P&gt;I got interrupted from getting this working the other day.&amp;nbsp; Now, I am starting with broken tests.&amp;nbsp; I hate that.&amp;nbsp; I guess I was a bit too reckless.&amp;nbsp; Well, I have a few options: 
&lt;OL&gt;
&lt;LI&gt;I can continue and see this through 
&lt;LI&gt;I can timebox to a hour, and then roll back, and try again by taking smaller steps 
&lt;LI&gt;I can give up now and try again from the last known good state.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;I am going to opt for number 1.5: timebox to two hours, and depending on where I am, make a decision. 
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;timewarp duration="1 hour" /&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;@#$%^%$#@#$!!! &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;timewarp duration="a few days" reason="I needed to think about it" /&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have determined that I got a bit overzealous.&amp;nbsp; For the moment, the Services collection is necessary, and we can remove it once we have Unity in place to provide the necessary functionality.&amp;nbsp; It will stay as part of the interface, and will continue to provide functionality until we no longer need it.&amp;nbsp; However, it will eventually go away.&amp;nbsp; How did I arrive at this conclusion?&amp;nbsp; Well, I could not get the failing unit tests to pass in a reasonable amount of time.&amp;nbsp; Moving the functionality requires a lot more code than is really practical for throw-away code.&amp;nbsp; Oooops.&amp;nbsp; Everyone makes mistakes.&amp;nbsp; 
&lt;P&gt;As a result, I need to roll back a lot of changes.&amp;nbsp; Unfortunately, I did not back up everything (or do a check in) before starting down the path of removing the services collection.&amp;nbsp; Net result: I need to roll back everything, and then re-do the first half of this article. Double @#%$@%!&lt;/P&gt;
&lt;P&gt;I'll revert and then rework the code up to the section &lt;EM&gt;Removing the Services Collection&lt;/EM&gt;.&amp;nbsp; I'll get the code posted (&lt;A href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" target=_blank mce_href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity"&gt;with the other source code&lt;/A&gt;) before I start the next installment.&lt;/P&gt;
&lt;P&gt;However, I wanted to post this article sooner rather than later, so folks don't think I have dropped the series.&amp;nbsp; Enjoy.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8417509" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Example+Driven+Design+_2800_Formerly+TDD_2900_/default.aspx">Example Driven Design (Formerly TDD)</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Unity/default.aspx">Unity</category></item><item><title>Converting the Composite Web Application Block to Unity - Clean Up ICompositionContainer</title><link>http://blogs.msdn.com/mpuleio/archive/2008/04/09/converting-the-composite-web-application-block-to-unity-clean-up-icompositioncontainer.aspx</link><pubDate>Thu, 10 Apr 2008 02:06:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8373500</guid><dc:creator>mpuleio</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8373500.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8373500</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8373500</wfw:comment><description>&lt;p&gt;This is the third post in a series. The other post include  &lt;ul&gt; &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-intro.aspx"&gt;Converting the Composite Web Application Block to Unity - Intro&lt;/a&gt;.  &lt;li&gt;&lt;a href="http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-adding-an-icompositioncontainer.aspx" target="_blank"&gt;Converting the Composite Web Application Block to Unity - Adding an ICompositionContainer&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you want background, go read the earlier posts.  &lt;p&gt;Based upon feedback, I am making the source code available at &lt;a title="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" target="_blank"&gt;CWAB and Unity&lt;/a&gt;.  &lt;p&gt;In the last post, we started getting closer to my eventual goal. However, we still need to get rid of the static methods, Builder, Locator, Containers, and Services.&amp;nbsp; &lt;p&gt;Why?  &lt;ul&gt; &lt;li&gt;Static methods will make the necessary refactorings a pain in the.... well, a pain.  &lt;li&gt;Builder and Locator are handled by Unity internally, and we no longer need to deal with them directly.&amp;nbsp; &lt;li&gt;Containers will just be registered in the root container by module name, and we can use the WebClientApplication.FindModuleContainer method when we need to.&amp;nbsp; &lt;li&gt;Then there are CWAB Services.&amp;nbsp; These services will probably just go away.&amp;nbsp; Global Services are types that are Registered on the Root Container as singletons, and module services are types registered on the appropriate Container as singletons.&amp;nbsp; This will be really simple once we get Unity tied into the solution.&amp;nbsp; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Once we get rid of these items on the interface, we will want to add a few from the IUnityContainer, namely CreateChildContainer, and at least a few overloads (if not all of them) for RegisterType, RegisterInstance, and Resolve.  &lt;p&gt;Then, we will add a new type of container to the project, a CWABUnityContainer, and maybe a CompositionContainer factory.&amp;nbsp; The CWABUnityContainer will be a facade that implements ICompositionContainer and hides a real UnityContainer under the hood.&amp;nbsp; After that, things should be simple, allowing us to delete the old container and its code, and then do a bit of re-organizing.  &lt;blockquote&gt; &lt;p&gt;Note: Since this is a proof of concept, not what I would call "shipping code", I have turned off creating XML comments in the solution.&amp;nbsp; With the volume of changes, I was getting annoyed with all the warnings.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;Removing Static Methods from CompositionContainer&lt;/strong&gt;  &lt;p&gt;There is only one static method on CompositionContainer, and it relies on the Locator property of the container object parameter to work.&amp;nbsp; In removing this, we can simplify the type, and remove the only dependency on the Locator property.&amp;nbsp; Let's change BuildItem to be a public, non-static method, and add it to the ICompositionContainer interface for a little while.  &lt;p&gt;Everything compiles.&amp;nbsp; Tests green (except for the ones I had commented out near the end of the last article.  &lt;p&gt;&lt;strong&gt;Removing ObjectBuilder specific parts of the interface&lt;/strong&gt;  &lt;p&gt;Let's do these one at a time, starting with Builder.&amp;nbsp; Comment it out in the interface, and....  &lt;p&gt;Two parts of the test fixture fail to compile:  &lt;ul&gt; &lt;li&gt;CreateRootContainerInitializesContainer needs a line commented out, since we changed the semantics of the method  &lt;li&gt;MockWebClientApplication needs a change to the ApplicationBuilder property to return null for the moment, with a comment to come back later.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Now we can compile, and run the tests, and we are green. However, I did notice something that I want to take care of before I go any further.... IWebClientApplication has an ApplicationBuilder and a PageBuilder, which can go away.&amp;nbsp; The Container will handle the responsibilities of these two properties.&amp;nbsp; If we delete these properties from the interface, the MockWebClientApplication and WebClientApplication, we get some compile errors in WebClientApplication, which lead us down an ugly path. Instead, we will leave these properties ONLY in WebClientApplication, and make a note to delete them later.  &lt;p&gt;Compile -&amp;gt; Good.&amp;nbsp; &lt;p&gt;Tests -&amp;gt; Green.  &lt;p&gt;&lt;strong&gt;Next Step, the Locator... &lt;/strong&gt; &lt;p&gt;If we remove it from the interface, we have compilation problems in WebClientApplication.BuildItemWithCurrentContext where we call BuildItem.&amp;nbsp; Let's roll back, change the signature of BuildItem to not have a locator, and the implementation to use the current container's locator, and then re-do the change.&amp;nbsp; Again, we will leave the property only on the CompositionContainer, even though it is not part of the interface, and add a few comments.&amp;nbsp; After a quick change to the test CreateRootContainerInitializesContainer, everything is green, and all tests pass.&amp;nbsp; &lt;p&gt;&lt;strong&gt;The Containers collection &lt;/strong&gt; &lt;p&gt;If we remove the Containers property from the ICompositionContainer interface, we have problems in the ModuleLoaderService.&amp;nbsp; The ModuleLoaderService understands how the CompositionContainer works, and can add new containers (one for each module) to the collection.&amp;nbsp; We also have challenges in the DefaultModuleContainerLocatorService, where we need to find a container in the collection.&amp;nbsp; If we think about how Unity works, both of these problems can go away if we find another another way to get child containers, and to create child containers.&amp;nbsp; Unity has the Resolve method, which can take a name parameter to get a named instance of an object (this handles getting a child container). We also have the CreateChildContainer method, to help with the creation, as well as RegisterInstance to give a created instance a name to use later.  &lt;p&gt;Let's roll back removing the Containers property, add the RegisterInstance and Resolve methods (that use a name) to the interface, test them, then add the CreateChildContainer method to the interface, and test it.&amp;nbsp; Once we have those pieces, we can re-work ModuleLoaderService and DefaultModuleContainerLocatorService to use the new methods.&amp;nbsp; Once we do all that, we can remove Containers from the ICompositionContainer interface without problems.  &lt;p&gt;So, let's start with RegisterInstance.&amp;nbsp; Since I know whatever implementation I come up with is a throw away implementation, and it only needs to work well enough NOT to break the existing code, I am going to keep this simple.&amp;nbsp; &lt;p&gt;First, a unit test added to CompositionContainerFixture:  &lt;blockquote&gt;&lt;pre class="code"&gt;[&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
&lt;span style="color: blue"&gt;public void &lt;/span&gt;CanRegisterInstance()
{
    &lt;span style="color: #2b91af"&gt;TestableRootCompositionContainer &lt;/span&gt;root = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;TestableRootCompositionContainer&lt;/span&gt;();
    root.RegisterInstance(&lt;span style="color: blue"&gt;typeof&lt;/span&gt;(&lt;span style="color: blue"&gt;string&lt;/span&gt;), &lt;span style="color: #a31515"&gt;"foo"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"bar"&lt;/span&gt;);
    &lt;span style="color: blue"&gt;string &lt;/span&gt;returned = (&lt;span style="color: blue"&gt;string&lt;/span&gt;) root.Resolve(&lt;span style="color: blue"&gt;typeof &lt;/span&gt;(&lt;span style="color: blue"&gt;string&lt;/span&gt;), &lt;span style="color: #a31515"&gt;"foo"&lt;/span&gt;);
    &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreEqual(&lt;span style="color: #a31515"&gt;"bar"&lt;/span&gt;, returned);
}&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;This tests for the behavior that Unity will have.&amp;nbsp; I will add the following to the ICompositionContainer to get it to compile: 
&lt;blockquote&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;void &lt;/span&gt;RegisterInstance(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;t, &lt;span style="color: blue"&gt;string &lt;/span&gt;name, &lt;span style="color: blue"&gt;object &lt;/span&gt;instance);&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;And then add the stupid implementation:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterInstance(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;t, &lt;span style="color: blue"&gt;string &lt;/span&gt;name, &lt;span style="color: blue"&gt;object &lt;/span&gt;instance)
{
}&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;Everything compiles, and the test fails, horribly.&lt;/p&gt;
&lt;p&gt;Now, to get the test to pass, RegisterInstance becomes:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;private &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;object&lt;/span&gt;&amp;gt; _registeredInstances = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;object&lt;/span&gt;&amp;gt;();
&lt;span style="color: blue"&gt;public void &lt;/span&gt;RegisterInstance(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;t, &lt;span style="color: blue"&gt;string &lt;/span&gt;name, &lt;span style="color: blue"&gt;object &lt;/span&gt;instance)
{
    _registeredInstances.Add(&lt;span style="color: #2b91af"&gt;String&lt;/span&gt;.Concat(t.FullName, name), instance);
}
&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;Now, I know that is an ugly, bad, horrible monstrosity of an implementation.&amp;nbsp; It is also the simplest thing that will work. :-)&amp;nbsp; I also know I could use OB to do this, but again, I am keeping things simple, knowing I will throw away the implementation in a few hours.&lt;/p&gt;
&lt;p&gt;Resolve changes a bit too.&amp;nbsp; I added an overloaded version, and then made the unit test above pass by making the code look like this:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public object &lt;/span&gt;Resolve(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;typeOfItem)
{
    &lt;span style="color: blue"&gt;string &lt;/span&gt;temporaryID = &lt;span style="color: #2b91af"&gt;Guid&lt;/span&gt;.NewGuid().ToString();
    &lt;span style="color: blue"&gt;return &lt;/span&gt;Resolve(typeOfItem, temporaryID);
}

&lt;span style="color: blue"&gt;public object &lt;/span&gt;Resolve(&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;typeOfItem, &lt;span style="color: blue"&gt;string &lt;/span&gt;name)
{
    &lt;span style="color: blue"&gt;string &lt;/span&gt;key = &lt;span style="color: #2b91af"&gt;String&lt;/span&gt;.Concat(typeOfItem.FullName, name);
    &lt;span style="color: blue"&gt;if &lt;/span&gt;(_registeredInstances.ContainsKey(key))
    {
        &lt;span style="color: blue"&gt;return &lt;/span&gt;_registeredInstances[key];
    }
    
    &lt;span style="color: #2b91af"&gt;PolicyList &lt;/span&gt;policies = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;PolicyList&lt;/span&gt;();
    policies.Set&amp;lt;&lt;span style="color: #2b91af"&gt;ISingletonPolicy&lt;/span&gt;&amp;gt;(&lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SingletonPolicy&lt;/span&gt;(&lt;span style="color: blue"&gt;false&lt;/span&gt;), typeOfItem, name);
    policies.Set&amp;lt;&lt;span style="color: #2b91af"&gt;ICreationPolicy&lt;/span&gt;&amp;gt;(&lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;DefaultCreationPolicy&lt;/span&gt;(), typeOfItem, name);
    policies.Set&amp;lt;&lt;span style="color: #2b91af"&gt;IPropertySetterPolicy&lt;/span&gt;&amp;gt;(&lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;PropertySetterPolicy&lt;/span&gt;(), typeOfItem, name);

    &lt;span style="color: blue"&gt;return &lt;/span&gt;_builder.BuildUp(
        _locator,
        typeOfItem,
        name,
        &lt;span style="color: blue"&gt;null&lt;/span&gt;,
        policies);
}
&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;Compile.&amp;nbsp; Run Tests.&amp;nbsp; We are Green.&lt;/p&gt;
&lt;p&gt;Now to add CreateChildContainer.&amp;nbsp; First, we need a unit test:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="code"&gt;[&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]
&lt;span style="color: blue"&gt;public void &lt;/span&gt;CanCreateChildContainer()
{
    &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;container = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;TestableRootCompositionContainer&lt;/span&gt;();
    
    &lt;span style="color: #2b91af"&gt;ICompositionContainer &lt;/span&gt;child = container.CreateChildContainer();
    &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.IsNotNull(child);
    &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.AreNotSame(container, child);
}
&lt;/pre&gt;&lt;/blockquote&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;To make that compile and then pass, I added CreateChildContainer to the interface, the class, and then implemented it.&amp;nbsp; Simple.&amp;nbsp; And we are Green again.&lt;/p&gt;
&lt;p&gt;Next step: remove from ICompositionContainer the Containers property, compile, and it fails.&amp;nbsp; This requires minor tweaking to the ModuleLoaderService and DefaultModuleContainerLocatorService. Now, we compile.&amp;nbsp; However, the Containers property is still on the CompositionContainer.&amp;nbsp; After we remove it from there, we have to fix a lot of unit tests so that they compile (and removing a few that no longer make sense, semantically).&amp;nbsp; This is simple, but tedious.&amp;nbsp; &amp;lt;click&amp;gt; &amp;lt;click&amp;gt; &amp;lt;swearing&amp;gt; &amp;lt;click&amp;gt; &amp;lt;click&amp;gt; ...&lt;/p&gt;
&lt;p&gt;Ok, we are now compiling and all unit tests pass.&lt;/p&gt;
&lt;p&gt;I need a break, so we will cut this a little shorter than I had hoped.&lt;/p&gt;
&lt;p&gt;In this installment I wanted to remove the following from the ICompositionContainer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;static methods 
&lt;li&gt;Builder 
&lt;li&gt;Locator 
&lt;li&gt;Containers 
&lt;li&gt;Services&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;We completed the first four. In the next installment, we will remove the Services collection, replacing it with using RegisterInstance and Resolve. After that, we will compare our ICompositionContainer to IUnityContainer, see what else we need to do, and may even pull in Unity.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8373500" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Example+Driven+Design+_2800_Formerly+TDD_2900_/default.aspx">Example Driven Design (Formerly TDD)</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Unity/default.aspx">Unity</category></item><item><title>Web Client Software Factory Guidance Assets are now Available on MSDN</title><link>http://blogs.msdn.com/mpuleio/archive/2008/04/09/web-client-software-factory-guidance-assets-are-now-available-on-msdn.aspx</link><pubDate>Wed, 09 Apr 2008 20:19:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8372785</guid><dc:creator>mpuleio</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8372785.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8372785</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8372785</wfw:comment><description>&lt;p&gt;Some of you may remember that waaaay back in October (and earlier) the &lt;a href="http://www.codeplex.com/websf" target="_blank"&gt;Web Client Software Factory&lt;/a&gt; team was shipping these things called "bundles".&amp;nbsp; A bundle was all a developer needed to get started and learn about a single concept, like the Model View Presenter pattern in a web application, or contextual auto-complete.&amp;nbsp; These bundles were released for VS2005 and .NET 2.0 on the &lt;a href="http://www.codeplex.com/websf" target="_blank"&gt;WCSF community CodePlex&lt;/a&gt; site.&lt;/p&gt; &lt;p&gt;Now, the same bundles for VS2005 with .NET2.0 and new bundles for VS2008 with .NET 3.5 are available on MSDN's &lt;a href="http://msdn2.microsoft.com/en-us/library/bb264518.aspx" target="_blank"&gt;Web Client Software Factory page&lt;/a&gt;.&amp;nbsp; However, due to factors I do not understand and that are beyond my control, we are now calling these "&lt;strong&gt;Guidance Assets&lt;/strong&gt;".&lt;/p&gt; &lt;p&gt;The first question everyone is going to ask is :&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;"How are these different from the Web Client Software Factory - February 2008?" &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;The Guidance Assets for .NET 3.5 are &lt;em&gt;&lt;strong&gt;identical&lt;/strong&gt;&lt;/em&gt; to the same assets inside the WCSF February release. This packaging just allows developers to grab one or two pieces of the factory at a time, or to share with a co-worker to get them up to speed on a concept.&amp;nbsp; For example, the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EAD064ED-5823-4D56-9FE8-74F81E4A555E&amp;amp;displaylang=en"&gt;Web Client Contextual AutoComplete Application Block for .NET Framework 3.5&lt;/a&gt; is EXACTLY the same as the Autocomplete Quickstart in the factory, with everything you need to get started and stand alone documentation.&amp;nbsp; The .NET2.0 versions of the assets are &lt;em&gt;identical&lt;/em&gt; to what we shipped in October on CodePlex (in fact, they were copied from CodePlex to the MSDN download center).&lt;/p&gt; &lt;p&gt;&lt;em&gt;Why did we post the bundles on MSDN? &lt;/em&gt;&lt;/p&gt; &lt;p&gt;A number of customers complained that they wanted to use the bundles but their corporate policy does not allow them to use anything from CodePlex or other open source sites.&amp;nbsp; However, MSDN is a trusted source in their companies. To help these customers, we have have two distribution channels for identical assets.&amp;nbsp; :-)&lt;/p&gt; &lt;p&gt;Blaine has already blogged about this, &lt;a href="http://blogs.msdn.com/blaine/archive/2008/04/09/web-client-bundles-for-net-2-0-and-net-3-5-available-on-download-center.aspx" target="_blank"&gt;Web Client Bundles for .NET 2.0 and .NET 3.5 Available on Download Center&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Here is a comprehensive list of click-able links for all the ZIP files:&lt;/p&gt; &lt;p&gt;.NET 3.5 Assets for Visual Studio 2008: (All these are included in the Feb release of the factory, &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=47755838-049B-4291-AFEA-A379AE28D7B3&amp;amp;displaylang=en"&gt;Web Client Software Factory - February 2008&lt;/a&gt;) &lt;ul&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=3813903F-3148-4B2C-94D5-DB4219149E50&amp;amp;displaylang=en"&gt;Web Client Composite Library for .NET Framework 3.5&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EAD064ED-5823-4D56-9FE8-74F81E4A555E&amp;amp;displaylang=en"&gt;Web Client Contextual AutoComplete Application Block for .NET Framework 3.5&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=4442B5CD-FEE9-49DD-B6D3-226D727A81ED&amp;amp;displaylang=en"&gt;Web Client Model View Presenter Application Block for .NET Framework 3.5&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=DB2F1606-EEC2-4200-98D8-08546ACD61BA&amp;amp;displaylang=en"&gt;Web Client Modularity Application Block for .NET Framework&amp;nbsp; 3.5&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=6369E790-03DC-40C3-B1C4-0AECE474EA03&amp;amp;displaylang=en"&gt;Web Client Responsive Composite Reference Implementation for .NET Framework 3.5&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=8C10CC52-33C0-4C78-BDE5-DD85C42B9F7F&amp;amp;displaylang=en"&gt;Web Client Search Application Block for .NET Framework 3.5&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A57DDCB9-E68A-4A74-97E3-E5DD795A3B6A&amp;amp;displaylang=en"&gt;Web Client Validation Application Block for .NET Framework 3.5&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;.NET 2.0 Assets for Visual Studio 2005: (These are what we released in October-ish) &lt;ul&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=910F93D6-26F0-4280-9644-062270F5EF44&amp;amp;displaylang=en"&gt;Web Client Composite Automation for .NET Framework 2.0&lt;/a&gt;&amp;nbsp; // This is not a ZIP, but an MSI.&amp;nbsp; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=361744C5-6949-4E56-9054-D2AD8761DB07&amp;amp;displaylang=en"&gt;Web Client Composite Library for .NET Framework 2.0&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=6CA8D3A8-7CC9-45C1-81A2-D6C0B9A46437&amp;amp;displaylang=en"&gt;Web Client Contextual AutoComplete Application Block for .NET Framework 2.0&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=443D6144-64F7-4910-99A3-22F5B702F5CC&amp;amp;displaylang=en"&gt;Web Client Model View Presenter Application Block for .NET Framework 2.0&lt;/a&gt; &lt;li&gt;&lt;a href=" http://www.microsoft.com/downloads/details.aspx?FamilyId=2D58076F-DA0D-4AA8-9C60-3D8C31EE1876&amp;amp;displaylang=en"&gt;Web Client Modularity Application Block for .NET Framework 2.0&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A2824B50-4DD2-4CA0-8A55-191C9AC6BF6F&amp;amp;displaylang=en"&gt;Web Client Responsive Composite Reference Implementation for .NET Framework 2.0&lt;/a&gt; &lt;li&gt;&lt;a href=" http://www.microsoft.com/downloads/details.aspx?FamilyId=F6AACDB8-FD50-4A8A-B3A1-D8CB7AD1F7D5&amp;amp;displaylang=en"&gt;Web Client Search Application Block for .NET Framework 2.0&lt;/a&gt; &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=E7DC5A01-75FF-4DEA-9F16-DD414041D817&amp;amp;displaylang=en"&gt;Web Client Validation Application Block for .NET Framework 2.0&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8372785" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category></item><item><title>Converting the Composite Web Application Block to Unity - Intro</title><link>http://blogs.msdn.com/mpuleio/archive/2008/04/04/converting-the-composite-web-application-block-to-unity-intro.aspx</link><pubDate>Fri, 04 Apr 2008 23:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8358223</guid><dc:creator>mpuleio</dc:creator><slash:comments>10</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8358223.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8358223</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8358223</wfw:comment><description>&lt;P&gt;A few weeks ago, I decided I needed to play with the &lt;A href="http://www.codeplex.com/unity" target=_blank mce_href="http://www.codeplex.com/unity"&gt;Unity Dependency Injection container&lt;/A&gt;. I wanted to see how Chris and the rest of the team had designed it and see how usable the container was. I had seen requests on the &lt;A href="http://www.codeplex.com/websf" target=_blank mce_href="http://www.codeplex.com/websf"&gt;Web Client Software Factory&lt;/A&gt; project's CodePlex site asking for a Unity version of WCSF. Put the two together, and I have a side project, a proof of concept I can legitimately do at work. My eventual end goal is to have the Order Management RI working with a new, Unity-based version of CWAB. 
&lt;P&gt;So, I sat down a few Saturdays ago, with CWAB, an early drop of Unity, and started working. After about eight hours I had the basics of CWAB working: there was a container, and a module loader, global services, and module level services. About 3 hours was used figuring out Unity, the differences between it and the container we created for CWAB (CompositionContainer) , and how to get around them. The rest was work, finding bugs in Unity (I filed a few the next day), and quite a lot of fun. 
&lt;P&gt;Since then, I have added a few more features, made some forwards progress, and lost ground after being overly optimistic about the impact of a few changes. 
&lt;P&gt;Now that I have learned a bit, I wanted to share the information with folks who might be interested in doing this themselves. Rather than trying to remember what I did the first time around, I am going to start over, take a different approach, document what I do as I go, and make a few posts out of this. 
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Please keep in mind, none of this is tested.&amp;nbsp; Use at your own risk.&amp;nbsp; No Support Available.&amp;nbsp; Danger, Will Robinson!&amp;nbsp; Danger!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is a proof of concept that I am fairly certain will work, but I am not 100% certain. We will find out as we go. Oh, and I guarantee that there will be breaking changes. 
&lt;P&gt;My strategy will be to take the existing CWAB DLL and its unit tests, refactor the container behind an interface, modify the interface to nearly match Unity, and then drop Unity in replacing one implementation of the interface with another. After I get CWAB building and the unit tests passing with Unity, I will open up the code for the RI, replace references, and get it to work. 
&lt;P&gt;I will do all of this in an example-driven &lt;STRIKE&gt;test driven&lt;/STRIKE&gt; manner. I am sure I will cheat on occasion, but I will try to be honest and point it out when I do, as well as a reason why. &lt;/P&gt;
&lt;P&gt;EDIT: Based upon feedback, I am making the source code available at &lt;A title=http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity href="http://www.codeplex.com/websf/Wiki/View.aspx?title=CWAB%20and%20Unity" target=_blank&gt;&lt;STRONG&gt;&lt;FONT color=#006bad&gt;CWAB and Unity&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8358223" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Data-mining for Code Quality Metrics</title><link>http://blogs.msdn.com/mpuleio/archive/2008/04/02/data-mining-for-code-quality-metrics.aspx</link><pubDate>Thu, 03 Apr 2008 02:30:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8352663</guid><dc:creator>mpuleio</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8352663.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8352663</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8352663</wfw:comment><description>&lt;p&gt;I spent two weeks between full time projects (still working on the 2 part time projects I am on) looking back at the build logs from the past 6 months (or so) trying to figure out what metrics we have, what we should track going forward, and what goals we should have for these metrics.&amp;nbsp;&amp;nbsp; I came up with some interesting findings.&lt;/p&gt; &lt;p&gt;First, overall unit test code coverage was OK, but not as high as I would like on my projects.&amp;nbsp; Of course, these numbers included generated code, view code, and other things that I usually filter out.&amp;nbsp; Also coverage was fairly flat.&amp;nbsp; For the most part, as we added code, we added tests.&amp;nbsp; This, I think is much better than one of the alternatives, having coverage drop over the course of the project.&lt;/p&gt; &lt;p&gt;Here is coverage for the Application Blocks in WCSF, without axis labels.&amp;nbsp; The Y axis starts at 76% (not zero).&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/mpuleio/WindowsLiveWriter/CodeQualityMetrics_BA15/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="589" alt="image" src="http://blogs.msdn.com/blogfiles/mpuleio/WindowsLiveWriter/CodeQualityMetrics_BA15/image_thumb_1.png" width="1028" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;You will see that there was a noticeable drop in coverage part way through the project. That was when we added a new library of AJAX controls.&amp;nbsp; Before the change was made we knew this would happen and accepted the risk.&amp;nbsp; I also worked with the testers on my team to mitigate the risk via more acceptance tests and careful code reviews. And after the change, we trended up, slowly, over time.&lt;/p&gt; &lt;p&gt;In addition to watching coverage over time, I was able to come up with a few indices to watch going forward.&amp;nbsp; Thanks to &lt;a href="http://www.ndepend.com/" target="_blank"&gt;NDepend&lt;/a&gt;, a little bit of work parsing build logs, and Linq, I was able to create seven indices, three of which I will be watching closely on future projects:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Cyclomatic Complexity&lt;/li&gt; &lt;li&gt;Afferent Coupling&lt;/li&gt; &lt;li&gt;Efferent Coupling&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you want a definition for any of these, check out the NDepend site.&amp;nbsp; The index for each of these is the average of the top 10 worst values by type.&lt;/p&gt; &lt;p&gt;Here is a graph of these indices over time for another, un-named project (without the axis labels)&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/mpuleio/WindowsLiveWriter/CodeQualityMetrics_BA15/image_2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="772" alt="image" src="http://blogs.msdn.com/blogfiles/mpuleio/WindowsLiveWriter/CodeQualityMetrics_BA15/image_thumb.png" width="1021" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;You can see that the first few builds did not have NDepend hooked up properly.&amp;nbsp; Then everything tracks along, relatively stable until about 40% through the project.&amp;nbsp; The Dev Lead on the project was able to tell me what happened on the day that the Cyclomatic Complexity dropped drastically.&amp;nbsp; It was a big change to simplify things.&lt;/p&gt; &lt;p&gt;Do these graphs, numbers, and indices (and all the others that I pulled from the data, but did not share yet) tell me the whole story as far as code quality?&amp;nbsp; &lt;em&gt;&lt;strong&gt;Of course not&lt;/strong&gt;&lt;/em&gt;.&amp;nbsp; However, these can all be used as indicators.&amp;nbsp; If complexity trends sharply up over time, there may be a problem we need to investigate.&amp;nbsp; If it stays low, there can still be other problems hidden.&amp;nbsp; However, a little information is better than none.&lt;/p&gt; &lt;p&gt;Now, on to the next project...&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8352663" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Example+Driven+Design+_2800_Formerly+TDD_2900_/default.aspx">Example Driven Design (Formerly TDD)</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Agile/default.aspx">Agile</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item><item><title>The .NET Framework is a bit on the big side.</title><link>http://blogs.msdn.com/mpuleio/archive/2008/03/18/the-net-framework-is-a-bit-on-the-big-side.aspx</link><pubDate>Wed, 19 Mar 2008 07:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8324754</guid><dc:creator>mpuleio</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8324754.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8324754</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8324754</wfw:comment><description>&lt;P&gt;As anyone who has ever tried to find docs on MSDN already knows, the .NET Framework is big.&amp;nbsp; Real big.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I can see the feedback already:&amp;nbsp; &lt;EM&gt;Thanks, Mike for stating the bloody obvious....&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Seriously, though, how big is this library that we&amp;nbsp;have been building applications, web sites, critical line-of-business apps, and other frameworks on top of?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="http://blogs.msdn.com/brada/default.aspx" mce_href="http://blogs.msdn.com/brada/default.aspx"&gt;Brad Abrams&lt;/A&gt; posted all about the &lt;A class="" href="http://blogs.msdn.com/brada/archive/2008/03/17/number-of-types-in-the-net-framework.aspx" mce_href="http://blogs.msdn.com/brada/archive/2008/03/17/number-of-types-in-the-net-framework.aspx"&gt;Number of Types in the .NET Framework&lt;/A&gt;. This includes&amp;nbsp;info about the different versions of the .NET Framework, and the numbers of assemblies, namespaces, types, and members.&lt;/P&gt;
&lt;P&gt;As a counterpoint, &lt;A class="" href="http://codebetter.com/blogs/patricksmacchia/default.aspx" mce_href="http://codebetter.com/blogs/patricksmacchia/default.aspx"&gt;Patrick Smacchia&lt;/A&gt; posted&amp;nbsp;&lt;A class="" href="http://codebetter.com/blogs/patricksmacchia/archive/2008/03/18/number-of-types-in-the-net-framework.aspx" mce_href="http://codebetter.com/blogs/patricksmacchia/archive/2008/03/18/number-of-types-in-the-net-framework.aspx"&gt;Number of Types in the .NET Framework.&lt;/A&gt;&amp;nbsp;using the numbers that he generated&amp;nbsp;with &lt;A class="" href="http://www.ndepend.com/" mce_href="http://www.ndepend.com/"&gt;nDepend&lt;/A&gt;. (&lt;FONT color=#ff0000&gt;Note from the lawyers: This is a link to an external Web site that provides software.&amp;nbsp;Please note that Microsoft is not responsible for the content of external Internet sites. )&amp;nbsp; &lt;/FONT&gt;These numbers are a little differnt than Brad's.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that in mind, it is no wonder that I forget how things in the framework work, every once in a while.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;As a personal aside: &amp;nbsp;I am a very happy, licensed user of nDepend, and it &lt;EM&gt;&lt;STRONG&gt;&lt;U&gt;rocks&lt;/U&gt;&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; I have used it to help simplify APIs and frameworks like the Composite Web Application Block in WCSF.&amp;nbsp; nDepend allowed me to file bugs against my team's code because methods were too big and complex, or types were too tightly coupled, or classes/interfaces needed to be moved from one assembly to another.&amp;nbsp; &amp;nbsp; One of my current projects is to data mine all the p&amp;amp;p build logs&amp;nbsp;from the past 6 months+ to glean information about our code and improvements we should be making.&amp;nbsp; nDepend results in those build logs&amp;nbsp;provide a lot of data.&amp;nbsp; I may post more about that project later.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Enjoy.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8324754" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Web Client Software Factory February 2008 Ships with Side by Side Support</title><link>http://blogs.msdn.com/mpuleio/archive/2008/03/18/web-client-software-factory-february-2008-ships-with-side-by-side-support.aspx</link><pubDate>Wed, 19 Mar 2008 07:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8324658</guid><dc:creator>mpuleio</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/8324658.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=8324658</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=8324658</wfw:comment><description>&lt;P&gt;When we originally released the Web Client Software Factory February 2008, there was an issue for a number of folks.&amp;nbsp; If you had VS2005 installed with the October release of WCSF, you could not install the February release on VS2008 without uninstalling the October version.&amp;nbsp; After some feedback fromcustomers who need to support both WCSF 1.1 apps and WCSF 2.0 apps, we have re-released the factory installer.&amp;nbsp; The install no longer forces an un-install of the Oct release, allowing side-by-side support.&amp;nbsp; Go get the refreshed MSI from the&amp;nbsp;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=47755838-049B-4291-AFEA-A379AE28D7B3&amp;amp;displaylang=en"&gt;download center&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Blaine recently &lt;A class="" href="http://blogs.msdn.com/blaine/archive/2008/03/13/wcsf-february-2008-release-can-now-live-side-by-side-with-october-2007-guidance-package.aspx" mce_href="http://blogs.msdn.com/blaine/archive/2008/03/13/wcsf-february-2008-release-can-now-live-side-by-side-with-october-2007-guidance-package.aspx"&gt;blogged about this too&lt;/A&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8324658" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category></item><item><title>Web Client Software Factory February 2008 Ships!</title><link>http://blogs.msdn.com/mpuleio/archive/2008/02/28/web-client-software-factory-february-2008-ships.aspx</link><pubDate>Thu, 28 Feb 2008 22:25:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7937016</guid><dc:creator>mpuleio</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/7937016.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=7937016</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=7937016</wfw:comment><description>&lt;p&gt;I know that folks have been reading about the Web Client Software Factory on Blaine's blog and on Glenn's blog.&amp;nbsp; Blaine posted about what we planned to include, back in December with &lt;a href="http://blogs.msdn.com/blaine/archive/2007/12/13/next-version-of-web-client-software-factory-wcsf.aspx"&gt;Next version of Web Client Software Factory (WCSF)&lt;/a&gt;.&amp;nbsp; Glenn had the post at the end of January, &lt;a href="http://blogs.msdn.com/gblock/archive/2008/01/31/web-client-2-0-closer-than-you-think.aspx"&gt;Web Client 2.0 closer than you think&lt;/a&gt;, and &lt;a href="http://blogs.msdn.com/gblock/archive/2008/02/22/web-client-2-0-what-s-the-hold-up.aspx"&gt;Web Client 2.0, what's the hold up?&lt;/a&gt;&amp;nbsp; &lt;/p&gt; &lt;h2&gt;So, what is in the latest version of the Web Client Software Factory?&lt;/h2&gt; &lt;p&gt;Here is a quick blurb from the front page of our docs, with my comments in &lt;font color="#0000ff"&gt;Blue&lt;/font&gt;:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;The February 2008 release of the Web Client Software Factory is an update to the June 2007 release. The following are the major changes:  &lt;ul&gt; &lt;li&gt;&lt;b&gt;Added user interface responsiveness guidance&lt;/b&gt;. The guidance includes documentation, Web controls, QuickStarts, and a new reference implementation that demonstrate how to incorporate Microsoft ASP.NET AJAX technologies in your Web applications to provide a richer user interface experience.  &lt;li&gt;&lt;b&gt;Added support for &lt;/b&gt;&lt;b&gt;the &lt;/b&gt;&lt;b&gt;Model-View-Presenter pattern &lt;/b&gt;&lt;b&gt;in&lt;/b&gt; &lt;b&gt;user controls and master pages&lt;/b&gt;. The Composite Web Application Block includes a new Dependency Injection mechanism that facilitates the implementation of the Model-View-Presenter pattern in Web controls and master pages. The guidance package also includes new recipes that help developers create master pages and user controls that implement the Model-View-Presenter pattern. By using the Model-View-Presenter, developers can extend the testability surface to user controls and master pages. &lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;font color="#0000ff"&gt;Dependency Injection also works in ASMX Web Services hosted in a WCSF web application project&lt;/font&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;ul&gt; &lt;li&gt;&lt;b&gt;User controls can be&lt;/b&gt; &lt;b&gt;reused across modules&lt;/b&gt;. Developers can build Web pages made up of user controls from different modules. &lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;font color="#0000ff"&gt;There is an example of this in the Order Management Reference Implementation&lt;/font&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;ul&gt; &lt;li&gt;&lt;b&gt;Updated the Composite Web Application Block&lt;/b&gt;. The main changes include the following:  &lt;ul&gt; &lt;li&gt;Improved performance  &lt;li&gt;Support for services registration through configuration  &lt;li&gt;Support for type mapping for dependency injection &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;font color="#0000ff"&gt;Type mapping was a no-brainer to add.&amp;nbsp; We also needed it to show a few of the deeper concepts around MVP.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#0000ff"&gt;The performance improvements are the part of how the new &lt;a href="http://www.codeplex.com/unity"&gt;Unity project&lt;/a&gt; works &lt;em&gt;deep&lt;/em&gt; under the hood.&amp;nbsp; &lt;a href="http://www.tavaresstudios.com/Blog/"&gt;Chris Tavares&lt;/a&gt; and worked with the WCSF team on the performance enhancements.&amp;nbsp; Later, Chris went to start the Unity project, which has evolved into a great tool from what I have seen.&amp;nbsp; I know the next question is "When will WCSF support Unity?"&amp;nbsp; My answer is as soon as we can do a complete re-write.&amp;nbsp; Out of the box, Unity provides a lot of functionality that CWAB provides.&amp;nbsp; To properly use Unity, we would need to throw out a lot of the CWAB code, and re-do it.&amp;nbsp; &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#0000ff"&gt;The ability to add a service via config was requested by the community, and is shown in the Order Management Reference Implementation.&lt;/font&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;ul&gt; &lt;li&gt;&lt;b&gt;Updates to the &lt;/b&gt;&lt;b&gt;Add Business Module and Add Foundational Module recipes&lt;/b&gt;. These recipes now include a new option to create a separate project for the modules’ public interface.  &lt;li&gt;&lt;b&gt;Updated the patterns &lt;/b&gt;&lt;b&gt;documentation &lt;/b&gt;&lt;b&gt;topics&lt;/b&gt;. The main changes include two new pattern description topics, Inversion of Control and Module Interface Separation, and it updates to the Model-View-Presenter topic.  &lt;li&gt;&lt;b&gt;Included additional guidance for &lt;/b&gt;&lt;b&gt;several&lt;/b&gt; &lt;b&gt;technical concepts&lt;/b&gt;. The technical concepts covered are views testability, modularity, autocomplete, validation, and search. The guidance consists of documentation, QuickStarts, Web controls, and How-to topics. &lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;font color="#0000ff"&gt;These concepts were shipped previously as "Bundles" on our CodePlex community.&amp;nbsp; We will be releasing new, updated VS2008 versions of these bundles on MSDN in the near future, but all the content is in the factory.&amp;nbsp; The bundles are so folks can get a small taste and look at a single feature or concept in isolation.&lt;/font&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;ul&gt; &lt;li&gt;&lt;b&gt;Added support for Visual Studio 2008 to the guidance package&lt;/b&gt;. &lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;font color="#0000ff"&gt;VS2008 and and .NET 3.5 support was asked for very loudly by customers.&lt;/font&gt;&lt;/p&gt; &lt;h2&gt;Testing Guidance&lt;/h2&gt; &lt;p&gt;Something we do not talk about enough is the fact that we are releasing some guidance on how to test web applications.&amp;nbsp; First, since we do most development via &lt;strike&gt;TDD&lt;/strike&gt; EDD (Example Driven Development), we have quite a bit in the way of unit tests.&amp;nbsp; There are a few exceptions, where we intentionally do not include unit tests as we do not want to clutter a QuickStart example with another concept that may hinder understanding of what the QuickStart is about. &lt;/p&gt; &lt;p&gt;We are also shipping acceptance tests.&amp;nbsp; In a few projects, these acceptance tests are manual test scripts in the form of a Visual Studio Manual Test.&amp;nbsp; In others, we have completely automated the acceptance tests using &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;&amp;lt;TheLawyersMadeMeSayIt&amp;gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;Note: this is a link to an external Web site that provides software that can be used to write acceptance tests. Please note that Microsoft is not responsible for the content of external Internet sites. &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;&amp;lt;/TheLawyersMadeMeSayIt&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the &lt;a href="http://watin.sourceforge.net/"&gt;WatiN (Web Application Testing in .NET)&lt;/a&gt;.&amp;nbsp; &lt;/p&gt; &lt;p&gt;To compile the test projects and run the tests, you will need VS2008 Professional or Team System, and to download the WatiN binaries, and copy the DLLs to the Lib folder (which our help describes with more info).&amp;nbsp; The upside is that anyone can see how we are doing functional/acceptance testing&amp;nbsp; of our sample applications.&amp;nbsp; Of course, there is a lot more to testing than just acceptance testing, but it is a start.&lt;/p&gt; &lt;h2&gt;Other resources&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;The &lt;a href="http://msdn.com/webclientfactory"&gt;WCSF page on MSDN&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="http://www.codeplex.com/websf"&gt;The WCSF Community on CodePlex&lt;/a&gt; &lt;/li&gt; &lt;li&gt;If you just want to peruse the docs, check out the &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=websf&amp;amp;ReleaseId=1563"&gt;WCSF Documentation download page&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;You will also want to check out what Blaine and Glenn say about the release:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Blaine's post: &lt;a href="http://blogs.msdn.com/blaine/archive/2008/02/28/web-client-software-factory-shipped.aspx"&gt;Web Client Software Factory Shipped&lt;/a&gt;&lt;/li&gt; &lt;li&gt;Glenn's post: &lt;a href="http://blogs.msdn.com/gblock/archive/2008/02/28/web-client-software-factory-2-0-shipped.aspx"&gt;Web Client Software Factory 2.0 Shipped&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7937016" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Example+Driven+Design+_2800_Formerly+TDD_2900_/default.aspx">Example Driven Design (Formerly TDD)</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Testing/default.aspx">Testing</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Developing a ASP .NET Control with client capabilities</title><link>http://blogs.msdn.com/mpuleio/archive/2007/10/31/developing-a-asp-net-control-with-client-capabilities.aspx</link><pubDate>Wed, 31 Oct 2007 20:16:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5801289</guid><dc:creator>mpuleio</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/5801289.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=5801289</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=5801289</wfw:comment><description>&lt;p&gt;Brian J. Cardiff ( from Clarius Consulting) is one of the developers on the Web Client team.&amp;#xA0; He has asked me to post an article for him, since he does not have a blog (yet).&lt;/p&gt;  &lt;p&gt;Here it is (with some re-formatting):&lt;/p&gt;  &lt;blockquote&gt;   &lt;h2&gt;Developing a ASP .NET Control with client capabilities (using ASP .NET Ajax Extensions support)&lt;/h2&gt;    &lt;p&gt;Since the &lt;a href="http://www.asp.net/ajax/ajaxcontroltoolkit/"&gt;AjaxControlToolkit&lt;/a&gt; appears, creating extenders control like &lt;a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx"&gt;Autocomplete&lt;/a&gt; (&lt;a href="http://www.asp.net/ajax/ajaxcontroltoolkit/"&gt;AjaxControlToolkit&lt;/a&gt;) or &lt;a href="http://www.codeplex.com/websf/Wiki/View.aspx?title=Autocomplete_landing_page&amp;amp;referringTitle=Home"&gt;Contextual Autocomplete&lt;/a&gt; (&lt;a href="http://www.codeplex.com/websf"&gt;Web Software Factory&lt;/a&gt;) is a task that involves more work in JavaScript and Metadata that classic .NET programming. &lt;/p&gt;    &lt;p&gt;In this post I will point out some of the key aspects to create, a Control that takes advance of the &lt;a href="http://www.asp.net/ajax/"&gt;ASP .NET Ajax Extensions&lt;/a&gt;. The post is based on the &lt;b&gt;RealTimeSearchMonitor&lt;/b&gt; control located inside the &lt;a href="http://www.codeplex.com/websf/Wiki/View.aspx?title=bundles&amp;amp;referringTitle=Home"&gt;Search Bundle&lt;/a&gt; of the &lt;a href="http://www.codeplex.com/websf"&gt;Web Software Factory&lt;/a&gt;. So I suggest downloading and opening it while you read the post, just to take a quick look at it.&lt;/p&gt;    &lt;p&gt;When you want to create a control that will reside on client side, what would you need? (and where it is implemented in &lt;b&gt;RealTimeSearch&lt;/b&gt; project)&lt;/p&gt;    &lt;ul&gt;     &lt;li&gt;ASP.NET Control that implements &lt;b&gt;IScriptControl&lt;/b&gt;&lt;/li&gt;      &lt;li&gt;RealTimeSearchMonitor.cs&lt;/li&gt;      &lt;li&gt;A JavaScript file that will define classes and/or function for the control.&lt;/li&gt;      &lt;li&gt;RealTimeSearchBehavior.js&lt;/li&gt;      &lt;li&gt;Some lines of JavaScript code to instantiate a client side object.&lt;/li&gt;      &lt;li&gt;These are generated from GetRealTimeSearchMonitorScriptDescriptor protected method.&lt;/li&gt;      &lt;li&gt;(Optional) ASP .NET Control Designer&lt;/li&gt;      &lt;li&gt;RealTimeSearchDesigner.cs, metadata all around and type converter.&lt;/li&gt;   &lt;/ul&gt;    &lt;p&gt;The &lt;b&gt;IScriptControl&lt;/b&gt; interface defines two method:&lt;/p&gt;    &lt;ul&gt;     &lt;li&gt;IEnumerable&amp;lt;ScriptReference&amp;gt; GetScriptReferences()&lt;/li&gt;   &lt;/ul&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;This indicates that a reference to RealTimeSearchBehavior.js file should be included&lt;/p&gt;    &lt;p&gt;In the response you will have: &lt;/p&gt;    &lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;/ScriptResource.axd?d=&lt;i&gt;&amp;#x2026;(some identifier)&amp;#x2026;&amp;quot;&lt;/i&gt; &amp;gt;&amp;lt;/script &amp;gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;ul&gt;     &lt;li&gt;IEnumerable&amp;lt;ScriptDescriptor&amp;gt; GetScriptDescriptors()&lt;/li&gt;   &lt;/ul&gt;    &lt;p&gt;This calls GetRealTimeSearchMonitorScriptDescriptor protected method.&lt;/p&gt;    &lt;p&gt;In the response you will have: &lt;/p&gt;    &lt;p&gt;Sys.Application.add_init(function() {&lt;/p&gt;    &lt;p&gt;$create(&lt;/p&gt;    &lt;p&gt;RealTimeSearch.RealTimeSearchBehavior, &lt;/p&gt;    &lt;p&gt;{&amp;quot;controlsToMonitor&amp;quot;:[&lt;/p&gt;    &lt;p&gt;{&amp;quot;TargetId&amp;quot;:&amp;quot;ctl00_DefaultContent_CompanyNameTextBox&amp;quot;,&lt;/p&gt;    &lt;p&gt;&amp;quot;Callback&amp;quot;:&amp;quot;javascript:__doPostBack(\u0027ctl00$DefaultContent$CompanyNameTextBox\u0027,\u0027\u0027)&amp;quot;,&lt;/p&gt;    &lt;p&gt;&amp;quot;Validators&amp;quot;:[&amp;quot;ctl00_DefaultContent_CompanyNameRegexValidator&amp;quot;]}, &lt;/p&gt;    &lt;p&gt;&lt;i&gt;&amp;#x2026;(more controlsToMonitor elements)&amp;#x2026;&lt;/i&gt;}],&lt;/p&gt;    &lt;p&gt;&amp;quot;interval&amp;quot;:700}, null, null, &lt;/p&gt;    &lt;p&gt;$get(&amp;quot;ctl00_DefaultContent_CustomerRealTimeSearchMonitor&amp;quot;));&lt;/p&gt;    &lt;p&gt;});&lt;/p&gt;    &lt;h3&gt;What does the GetRealTimeSearchMonitorScriptDescriptor method do?&lt;/h3&gt;    &lt;p&gt;Using properties of the &lt;b&gt;RealTimeSearchMonitor&lt;/b&gt; it generates the info that the control will need in the client side. In this case: resolving control's ClientID, Callback for the specified event and related validators to each controls (see ResolveControlMonitorParameter method). It's no magic but &lt;b&gt;a very important point where all get wired&lt;/b&gt;.&lt;/p&gt;    &lt;p&gt;The &lt;b&gt;ScriptComponentDescriptor&lt;/b&gt; has to be related with a DOM element in the client side, so our control will also generate an empty DIV, this is done in the Render method.&lt;/p&gt;    &lt;h3&gt;&lt;b&gt;Although IScriptControl interface is implemented&lt;/b&gt;&lt;/h3&gt;    &lt;p&gt;Although &lt;b&gt;IScriptControl&lt;/b&gt; interface is implemented you have to call RegisterScriptControl and RegisterScriptDescriptors methods in the &lt;b&gt;ScriptManager&lt;/b&gt; of the page in order to get our GetScriptReferences and GetScriptDescriptors called respectively. The former is done in the PreRender and the later in the Render method.&lt;/p&gt;    &lt;h3&gt;Conclusions&lt;/h3&gt;    &lt;p&gt;It's good to have a simple (but useful) example of a control with client capabilities using ASP .NET Ajax Extensions. There is quite a good infrastructure to develop your own controls, go ahead and give you a chance to know it and use it!&lt;/p&gt;    &lt;p&gt;Brian J. Cardiff (Clarius Consulting)&lt;/p&gt;    &lt;p&gt;&lt;a href="mailto:brian.cardiff@clariusconsulting.net"&gt;brian.cardiff@clariusconsulting.net&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Please feel free to leave comments here, or email Brian directly.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5801289" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item><item><title>WCSF: Insights and Plans</title><link>http://blogs.msdn.com/mpuleio/archive/2007/10/15/wcsf-insights-and-plans.aspx</link><pubDate>Mon, 15 Oct 2007 21:36:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5463238</guid><dc:creator>mpuleio</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/5463238.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=5463238</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=5463238</wfw:comment><description>&lt;p&gt;There have been a lot of posts recently about WCSF, spurred on by our recent releases.&amp;#xA0; Here are a few highlights with my comments about each:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blogs.msdn.com/blaine/archive/2007/09/05/developer-hands-on-labs-available-for-wcsf-june-2007-release.aspx" target="_blank"&gt;Developer Hands-on Labs available for WCSF June 2007 Release&lt;/a&gt; - Blaine&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;These have been on the back burner.&amp;#xA0; They had been &amp;quot;almost&amp;quot; done for quite a while, and are finally out the door.&lt;/p&gt; &lt;/blockquote&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blogs.msdn.com/blaine/archive/2007/10/12/web-client-bundle-quality-checkpoints.aspx" target="_blank"&gt;Web Client Bundle Quality Checkpoints&lt;/a&gt; - Blaine&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;I worked with Blaine on drafting this.&amp;#xA0; (I actually threatened to post it if he did not do so soon).&amp;#xA0; It gives some insight into what we do around testing each and every one of our releases. &lt;/p&gt; &lt;/blockquote&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blogs.msdn.com/gblock/archive/2007/10/12/more-web-client-goodness-shipping-wcsf-2-0.aspx" target="_blank"&gt;More Web Client goodness shipping, WCSF 2.0.&lt;/a&gt; - Glenn&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;A re-cap of what we have shipped recently, as well as future plans for the team.&lt;/p&gt; &lt;/blockquote&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://staff.southworks.net/blogs/ejadib/archive/2007/10/08/How_2D00_To_3A00_-Web-Client-Software-Factory-_2800_WCSF_2900_-_2600_-Visual-Studio-Orcas-Beta-2.aspx" target="_blank"&gt;How-To: Web Client Software Factory (WCSF) June 2007 &amp;amp; Visual Studio Orcas Beta 2&lt;/a&gt; - Ezequiel&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;Necessary reading if you are running Orcas and want WCSF to work.&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5463238" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Testing/default.aspx">Testing</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item><item><title>More Web Client bundles shipped</title><link>http://blogs.msdn.com/mpuleio/archive/2007/10/09/more-web-client-bundles-shipped.aspx</link><pubDate>Tue, 09 Oct 2007 18:30:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5383250</guid><dc:creator>mpuleio</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/mpuleio/comments/5383250.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mpuleio/commentrss.aspx?PostID=5383250</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mpuleio/rsscomments.aspx?PostID=5383250</wfw:comment><description>&lt;p&gt;Yesterday, we posted the &lt;a href="http://www.codeplex.com/websf/Wiki/View.aspx?title=Blocks_landing_page" target="_blank"&gt;Composite Web Client Library&lt;/a&gt; and the &lt;a href="http://www.codeplex.com/websf/Wiki/View.aspx?title=Automation_landing_page" target="_blank"&gt;Composite Web Client Automation&lt;/a&gt; bundles. &lt;p&gt;The &lt;a href="http://www.codeplex.com/websf/Wiki/View.aspx?title=Blocks_landing_page" target="_blank"&gt;Composite Web Client Library&lt;/a&gt; bundle is the source code and binaries (strong named and signed) for the Composite Web Application Block, and a few other useful libraries, including sample ASP.NET AJAX extender controls.&amp;nbsp; A few of the big changes include the abililty to do dependency injection (sort of, see my other post on &lt;a href="http://blogs.msdn.com/mpuleio/archive/2007/10/04/breaking-changes-in-the-composite-web-application-block.aspx" target="_blank"&gt;Breaking Changes in CWAB&lt;/a&gt;) on Pages, MasterPages, and UserControls. &lt;p&gt;The &lt;a href="http://www.codeplex.com/websf/Wiki/View.aspx?title=Automation_landing_page" target="_blank"&gt;Composite Web Client Automation&lt;/a&gt; bundle is a new version of the Web Client Software Factory's guidance package.&amp;nbsp; We have enabled creating composite web applications by adding the ability to create MVP-style Pages, MasterPages, and UserControls.&amp;nbsp; We also have a recipe to enable ASP.NET AJAX on an existing solution (without needing to manually hack the project and solution files). &lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5383250" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Development+Tools/default.aspx">Development Tools</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/patterns+_2600_amp_3B00_+practices/default.aspx">patterns &amp;amp; practices</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/Web+Client+Software+Factory/default.aspx">Web Client Software Factory</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/ASP.NET+AJAX/default.aspx">ASP.NET AJAX</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/mpuleio/archive/tags/.NET/default.aspx">.NET</category></item></channel></rss>