Пример #1
0
 public void GivenIHaveACleanSiteBasedOn(string siteFolder) {
     _webHost = new WebHost();
     Host.Initialize(siteFolder, "/");
     var shuttle = new Shuttle();
     Host.Execute(() => {
         log4net.Config.BasicConfigurator.Configure(new CastleAppender());
         HostingTraceListener.SetHook(msg => shuttle._sink.Receive(msg));
     });
     _messages = shuttle._sink;
 }
Пример #2
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;
 }
 public void GivenIHaveACleanSiteBasedOn(string siteFolder, string virtualDirectory) {
     _webHost = new WebHost(_orchardTemp);
     Host.Initialize(siteFolder, virtualDirectory ?? "/", _dynamicCompilationOption);
     var shuttle = new Shuttle();
     Host.Execute(() => Executor(shuttle));
     _messages = shuttle._sink;
 }