public void Setup()
 {
     _testUri                = "http://a.test.uri";
     _pullRequestFactory     = Substitute.For <IPullRequestFactory>();
     _tfProjectFactory       = Substitute.For <ITfProjectFactory>();
     _tfGitRepositoryFactory = Substitute.For <ITfGitRepositoryFactory>();
 }
Esempio n. 2
0
        public TfsConnection(VssConnection serverConnection, IPullRequestFactory pullRequestFactory, ITfProjectFactory tfProjectFactory, ITfGitRepositoryFactory repositoryFactory)
        {
            _serverConnection   = serverConnection;
            _pullRequestFactory = pullRequestFactory;
            _tfProjectFactory   = tfProjectFactory;
            _repositoryFactory  = repositoryFactory;

            _gitHttpClient     = new Lazy <GitHttpClient>(_serverConnection.GetClient <GitHttpClient>);
            _projectHttpClient = new Lazy <ProjectHttpClient>(_serverConnection.GetClient <ProjectHttpClient>);
        }
Esempio n. 3
0
 public TfsConnectionFactory(IPullRequestFactory pullRequestFactory, ITfProjectFactory tfProjectFactory, ITfGitRepositoryFactory tfGitRepositoryFactory)
 {
     _pullRequestFactory     = pullRequestFactory;
     _tfProjectFactory       = tfProjectFactory;
     _tfGitRepositoryFactory = tfGitRepositoryFactory;
 }