﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on The Auto Mocking Container</title><description>Chris,
  
I did something similar, except that I used MarkMissing() ;-)
</description><link>http://ayende.com/2530/the-auto-mocking-container#comment4</link><guid>http://ayende.com/2530/the-auto-mocking-container#comment4</guid><pubDate>Tue, 12 Jun 2007 17:04:34 GMT</pubDate></item><item><title>Chris Ortman commented on The Auto Mocking Container</title><description>What I ran into was that the AutoMockingContainer would detect the ValidatorRunner as a dependency of the Controller (because it is a public writeable property on Controller) and try to resolve the dependency by creating a mock which fails because no ctor args are passed to the call to DynamicMock&lt;&gt;
  
  
I wound up modifying the AutoMockingDependencyResolver to return false if the mocking strategy is "NonMocked" so that the container could decide it was an optional dependency and ignore it.
</description><link>http://ayende.com/2530/the-auto-mocking-container#comment3</link><guid>http://ayende.com/2530/the-auto-mocking-container#comment3</guid><pubDate>Tue, 12 Jun 2007 16:11:27 GMT</pubDate></item><item><title>Ayende Rahien commented on The Auto Mocking Container</title><description>Chris, I don't have the Validator Running as a component in the container, so I haven't run into it.
</description><link>http://ayende.com/2530/the-auto-mocking-container#comment2</link><guid>http://ayende.com/2530/the-auto-mocking-container#comment2</guid><pubDate>Tue, 12 Jun 2007 15:49:33 GMT</pubDate></item><item><title>Chris Ortman commented on The Auto Mocking Container</title><description>Did you run into any problems with ValidatorRunner? When I tried to use this with controllers it kept trying to create the validator runner which doesn't have a default constructor and would fail.
</description><link>http://ayende.com/2530/the-auto-mocking-container#comment1</link><guid>http://ayende.com/2530/the-auto-mocking-container#comment1</guid><pubDate>Tue, 12 Jun 2007 15:06:33 GMT</pubDate></item></channel></rss>