public async Task <List <PullRequest> > FetchActivePullRequests( string baseUrl, string projectName, string repositoryName, string personalAccessToken, string password, string userName ) { var client = new BitbucketClient( baseUrl, userName, password ?? personalAccessToken); return((await client.GetPullRequestsAsync(projectName, repositoryName)).ToList()); }