Example #1
0
        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;
        }
Example #2
0
 private static void Executor(Shuttle shuttle)
 {
     HostingTraceListener.SetHook(msg => shuttle._sink.Receive(msg));
 }