I have been trying to get into unit testing with .NET for the latest
project I'm doing for a client.  I was used to unit testing being
"baked in" when I was doing Ruby on Rails development, and I've found
MVC.NET and Nunit less than ideal in this respect.

Anyway, I'm trying to use IoC via Rhino Commons - which has been
working very well in the web app - and running into a wall.  Thanks
for any pointers you can give me.

The error I'm getting is the following:

System.Configuration.ConfigurationErrorsException : Could not obtain
configuration from the AppDomain config file. Sorry, but you have to
fill the configuration or provide a IConfigurationSource instance
yourself.

Here is the controller test I'm trying to run:

http://gist.github.com/19933
<script src="http://gist.github.com/19933.js";></script>

Here is my windsor.boo config:

http://gist.github.com/19934
<script src="http://gist.github.com/19934.js";></script>

And my references list for AirModel.Tests:
<Reference Include="Castle.ActiveRecord, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug
\Castle.ActiveRecord.dll</HintPath>
    </Reference>
    <Reference Include="nunit.framework, Version=2.4.8.0,
Culture=neutral, PublicKeyToken=96d09a1eb7f44a77,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\Program Files\NUnit 2.4.8\bin
\nunit.framework.dll</HintPath>
    </Reference>
    <Reference Include="Rhino.Commons, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=0b3305902db7183f,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug
\Rhino.Commons.dll</HintPath>
    </Reference>
    <Reference Include="Rhino.Commons.ActiveRecord, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=0b3305902db7183f,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug
\Rhino.Commons.ActiveRecord.dll</HintPath>
    </Reference>
    <Reference Include="Rhino.Commons.NHibernate, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=0b3305902db7183f,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug
\Rhino.Commons.NHibernate.dll</HintPath>
    </Reference>
    <Reference Include="Rhino.Mocks, Version=3.5.0.1337,
Culture=neutral, PublicKeyToken=0b3305902db7183f,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug\Rhino.Mocks.dll</
HintPath>
    </Reference>
    <Reference Include="Rhino.Mocks.Partial, Version=3.5.0.1337,
Culture=neutral, PublicKeyToken=0b3305902db7183f,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug
\Rhino.Mocks.Partial.dll</HintPath>
    </Reference>
    <Reference Include="Rhino.Mocks.Tests.Model, Version=1.1.0.0,
Culture=neutral, PublicKeyToken=0b3305902db7183f,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug
\Rhino.Mocks.Tests.Model.dll</HintPath>
    </Reference>
    <Reference Include="Rhino.Testing, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=0b3305902db7183f,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\rhino\rhino\build\net-3.5\debug
\Rhino.Testing.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Web.Abstractions, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\NUnitTestPreview3\bin\Debug
\System.Web.Abstractions.dll</HintPath>
    </Reference>
    <Reference Include="System.Web.Mvc, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\Program Files\Microsoft ASP.NET\ASP.NET MVC Beta
\Assemblies\System.Web.Mvc.dll</HintPath>
    </Reference>
    <Reference Include="System.Web.Routing, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35,
processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\NUnitTestPreview3\bin\Debug\System.Web.Routing.dll</
HintPath>
    </Reference>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to