public void GivenIHaveACleanSiteBasedOn(string siteFolder, string virtualDirectory) { _webHost = new WebHost(_orchardTemp); Host.Initialize(siteFolder, virtualDirectory ?? "/", _dynamicCompilationOption); var shuttle = new Shuttle(); Host.Execute(() => { log4net.Config.BasicConfigurator.Configure(new CastleAppender()); HostingTraceListener.SetHook(msg => shuttle._sink.Receive(msg)); }); _messages = shuttle._sink; }
private static void Executor(Shuttle shuttle) { HostingTraceListener.SetHook(msg => shuttle._sink.Receive(msg)); }