public void Setup() { _testUri = "http://a.test.uri"; _pullRequestFactory = Substitute.For <IPullRequestFactory>(); _tfProjectFactory = Substitute.For <ITfProjectFactory>(); _tfGitRepositoryFactory = Substitute.For <ITfGitRepositoryFactory>(); }
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>); }
public TfsConnectionFactory(IPullRequestFactory pullRequestFactory, ITfProjectFactory tfProjectFactory, ITfGitRepositoryFactory tfGitRepositoryFactory) { _pullRequestFactory = pullRequestFactory; _tfProjectFactory = tfProjectFactory; _tfGitRepositoryFactory = tfGitRepositoryFactory; }