/// <summary>
 /// Constructor.
 /// </summary>
 public SubmissionDownloader(
     IRepositoryMetadataRetriever repoMetadataRetriever,
     IGitHubRepositoryClient repoClient,
     IOperationRunner operationRunner)
 {
     _repoMetadataRetriever = repoMetadataRetriever;
     _repoClient            = repoClient;
     _operationRunner       = operationRunner;
 }
Beispiel #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public PushEventRetriever(
     IRepositoryMetadataRetriever repoMetadataRetriever,
     IGitHubRepositoryClient repoClient,
     IOperationRunner operationRunner)
 {
     _repoMetadataRetriever = repoMetadataRetriever;
     _repoClient            = repoClient;
     _operationRunner       = operationRunner;
 }
		/// <summary>
		/// Constructor.
		/// </summary>
		public PushEventRetriever(
			IRepositoryMetadataRetriever repoMetadataRetriever, 
			IGitHubRepositoryClient repoClient,
			IOperationRunner operationRunner)
		{
			_repoMetadataRetriever = repoMetadataRetriever;
			_repoClient = repoClient;
			_operationRunner = operationRunner;
		}
		/// <summary>
		/// Constructor.
		/// </summary>
		public SubmissionDownloader(
			IRepositoryMetadataRetriever repoMetadataRetriever,
			IGitHubRepositoryClient repoClient, 
			IOperationRunner operationRunner)
		{
			_repoMetadataRetriever = repoMetadataRetriever;
			_repoClient = repoClient;
			_operationRunner = operationRunner;
		}
Beispiel #5
0
 /// <summary>
 /// Returns a submission downloader.
 /// </summary>
 private ISubmissionDownloader GetSubmissionDownloader(
     IGitHubRepositoryClient repoClient = null,
     IRepositoryMetadataRetriever repoMetadataRetriever = null)
 {
     return(new SubmissionDownloader
            (
                repoMetadataRetriever,
                repoClient,
                new MockOperationRunner()
            ));
 }
		/// <summary>
		/// Constructor.
		/// </summary>
		public RepositoryPopulator(
			ILogger<RepositoryPopulator> logger,
			IRepositoryMetadataRetriever repoMetadataRetriever,
			IGitHubTeamClient teamClient,
			IGitHubRepositoryClient repoClient,
			IOperationRunner operationRunner)
		{
			_logger = logger;
			_teamClient = teamClient;
			_repoClient = repoClient;
			_operationRunner = operationRunner;
			_repoMetadataRetriever = repoMetadataRetriever;
		}
Beispiel #7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public RepositoryPopulator(
     ILogger <RepositoryPopulator> logger,
     IRepositoryMetadataRetriever repoMetadataRetriever,
     IGitHubTeamClient teamClient,
     IGitHubRepositoryClient repoClient,
     IOperationRunner operationRunner)
 {
     _logger                = logger;
     _teamClient            = teamClient;
     _repoClient            = repoClient;
     _operationRunner       = operationRunner;
     _repoMetadataRetriever = repoMetadataRetriever;
 }
Beispiel #8
0
        /// <summary>
        /// Creates a repository populator.
        /// </summary>
        private IRepositoryPopulator GetRepositoryPopulator(
            IRepositoryMetadataRetriever repoMetadataRetriever = null,
            IGitHubTeamClient teamClient       = null,
            IGitHubRepositoryClient repoClient = null)
        {
            var operationRunner = new MockOperationRunner();

            return(new RepositoryPopulator
                   (
                       new Mock <ILogger <RepositoryPopulator> >().Object,
                       repoMetadataRetriever,
                       teamClient,
                       repoClient,
                       operationRunner
                   ));
        }
		/// <summary>
		/// Returns a submission downloader.
		/// </summary>
		private ISubmissionDownloader GetSubmissionDownloader(
			IGitHubRepositoryClient repoClient = null,
			IRepositoryMetadataRetriever repoMetadataRetriever = null)
		{
			return new SubmissionDownloader
			(
				repoMetadataRetriever,
				repoClient,
				new MockOperationRunner()
			);
		}
		/// <summary>
		/// Creates a repository populator.
		/// </summary>
		private IRepositoryPopulator GetRepositoryPopulator(
			IRepositoryMetadataRetriever repoMetadataRetriever = null,
			IGitHubTeamClient teamClient = null,
			IGitHubRepositoryClient repoClient = null)
		{
			var operationRunner = new MockOperationRunner();

			return new RepositoryPopulator
			(
				new Mock<ILogger<RepositoryPopulator>>().Object,
				repoMetadataRetriever,
				teamClient,
				repoClient,
				operationRunner
			);
		}