views:

56

answers:

0

I'm building a WCF service that receives requests on an external IP and translates them into messages that are sent via NServiceBus.

One of my unit tests invokes Global.Application_Start(), which performs the configuration of the application, and then attempts to resolve the web service to validate that the container can build up all of the dependencies.

This works fine when I'm using Configure.With() in my windows services, but the call to Configure.WithWeb() fails in this context (presumably because the "bin" directory does not exist?).

Is it possible to unit test a method that calls Configure.WithWeb(), or should I just use the overload for Configure.With() that takes a directory name?