title: spring - Unsatisfied dependency expressed through object property
body: <p>I am receiving the following error when attempting to inject my dao into a unit test class using spring. </p>
  
  <pre class="lang-none prettyprint-override"><code>UnitTest.DataAccess.FruitDaoTest.GetAllVitaminC:
  SetUp : Spring.Objects.Factory.UnsatisfiedDependencyException : Error creating object with name 'FruitDaoTest' : Unsatisfied dependency expressed through object property 'FruitDao': Set this property value or disable dependency checking for this object.
  </code></pre>
  
  <p>Here is the segment of my spring config file that is relevant:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;db:provider
      id="DbProvider"
      provider="SqlServer-2.0"
      connectionString="Data Source=stuff.group.stuff;Initial Catalog=zing;User ID=Marve; Password=stinky" /&gt;
  
  &lt;object id="transactionManager" type="Spring.Data.Core.AdoPlatformTransactionManager, Spring.Data"&gt;
    &lt;property name="DbProvider" ref="DbProvider" /&gt;
  &lt;/object&gt;
  &lt;object id="FruitDao" type="FruitBasket.DataAccess.FruitDao, FruitBasket"&gt;
    &lt;property name="DbProvider" ref="DbProvider"/&gt;
    &lt;property name="user" value="apple" /&gt;
    &lt;property name="pass" value="orange" /&gt;
    &lt;property name="server" value="pear" /&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>I'm not very familiar with spring so I'm unsure of what the problem is here. Any ideas?</p>