public SpaceTests(ITestOutputHelper testOutputHelper) { LogSettings.RegisterDefaultLogger <XUnitLogger>(LogLevels.Verbose, testOutputHelper); _confluenceClient = ConfluenceClient.Create(TestConfluenceUri); var username = Environment.GetEnvironmentVariable("confluence_test_username"); var password = Environment.GetEnvironmentVariable("confluence_test_password"); if (!string.IsNullOrEmpty(username) && !string.IsNullOrEmpty(password)) { _confluenceClient.SetBasicAuthentication(username, password); } }
protected ConfluenceIntegrationTests(ITestOutputHelper testOutputHelper) { LogSettings.ExceptionToStacktrace = exception => exception.ToStringDemystified(); LogSettings.RegisterDefaultLogger <XUnitLogger>(LogLevels.Verbose, testOutputHelper); ConfluenceTestClient = ConfluenceClient.Create(TestConfluenceUri); var username = Environment.GetEnvironmentVariable("confluence_test_username"); var password = Environment.GetEnvironmentVariable("confluence_test_password"); if (!string.IsNullOrEmpty(username) && !string.IsNullOrEmpty(password)) { ConfluenceTestClient.SetBasicAuthentication(username, password); } }