コード例 #1
0
 public static void BeforeTestRunInjection(IISWebServerDriver webServerDriver)
 {
     _webServerDriver = webServerDriver;
     _config          = ConfigBuilder.Configuration;
     _config.SiteUrl  = webServerDriver.SiteUrl;
     webServerDriver.StartWebServer();
 }
コード例 #2
0
 private static void SetUpTestEnvironment(IISWebServerDriver webServerDriver)
 {
     webServerDriver.StartWebServer();
     _config         = ConfigBuilder.Configuration;
     _config.SiteUrl = webServerDriver.SiteUrl;
     if (string.IsNullOrEmpty(_config.A18nProfileTag))
     {
         _config.A18nProfileTag = DefaultProfileTag;
     }
     if (string.IsNullOrWhiteSpace(_config.A18nProfileId))
     {
         _a18nClient = new A18nClient(_config.A18nApiKey, createNewDefaultProfile: true, _config.A18nProfileTag);
     }
     else
     {
         _a18nClient = new A18nClient(_config.A18nApiKey, _config.A18nProfileId);
     }
 }
コード例 #3
0
 public static void BeforeTestRunInjection(IISWebServerDriver webServerDriver)
 {
     _webServerDriver = webServerDriver;
     SetUpTestEnvironment(webServerDriver);
 }