Example #1
0
        public BitbucketTests(ITestOutputHelper testOutputHelper)
        {
            LogSettings.RegisterDefaultLogger <XUnitLogger>(LogLevels.Verbose, testOutputHelper);
            _bitbucketClient = BitbucketClient.Create(new Uri(BitbucketTestUri));

            if (!string.IsNullOrEmpty(_username) && !string.IsNullOrEmpty(_password))
            {
                _bitbucketClient.SetBasicAuthentication(_username, _password);
            }
        }