markrendle/Simple.Web — pull request #29 by ianbattersby (2012-08-31 19:52:42+00:00)
Title: HandlerRunnerBuildTests use local IMediaType to resolve test fail

Decided the best way to deal with the [failing tests (race-condition?!)](https://github.com/markrendle/Simple.Web/issues/27) of scanning assembly ExportedTypes was to just use a local IMediaTypeHandler. One *could* say this also enforces the test boundary, and also removes tests dependency on external library.

Fixes
--
Simple.Web.CodeGeneration.Tests.HandlerRunnerBuilderTest.CallsPatchWithParameter [FAIL]
Simple.Web.UnsupportedMediaTypeException : Requested type(s) not available
Stack Trace:
c:\Source\GitHub\Simple.Web\Simple.Web\Behaviors\Implementations\SetInput.cs(45,0): at Simple.Web.Behaviors.Implementations.GetInput.Impl[T](IContext context)
at lambda_method(Closure , Object , IContext )
c:\Source\GitHub\Simple.Web\Tests\Simple.Web.CodeGeneration.Tests\HandlerRunnerBuilderTest.cs(75,0): at Simple.Web.CodeGeneration.Tests.HandlerRunnerBuilderTest.CallsPatchWithParameter()