Esempio n. 1
0
        public void ClientParsesAddress()
        {
            string expectedEndpoint = "https://api.perdu.com/2.0/repositories/comagnan/nure/default-reviewers";

            try {
                BitbucketClient bitbucketClient = new BitbucketClient(A_VALID_ADDRESS, A_USERNAME, A_PASSWORD, m_UrlClientMock.Object);
                bitbucketClient.GetDefaultReviewers();
            } catch (AggregateException e) when(e.InnerException is FlurlHttpException httpException)
            {
                string requestUri = httpException.Call.Request.RequestUri.ToString();

                Assert.Equal(expectedEndpoint, requestUri);
            }
        }