예제 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public ProjectService(
     DatabaseContext dbContext,
     IRepositoryPopulator repoPopulator,
     IPushEventRetriever pushEventRetriever,
     IPushEventProcessor pushEventProcessor,
     IGitHubWebhookValidator webhookValidator,
     IJsonSerializer jsonSerializer,
     ITimeProvider timeProvider)
 {
     _dbContext          = dbContext;
     _repoPopulator      = repoPopulator;
     _pushEventRetriever = pushEventRetriever;
     _pushEventProcessor = pushEventProcessor;
     _webhookValidator   = webhookValidator;
     _jsonSerializer     = jsonSerializer;
     _timeProvider       = timeProvider;
 }
예제 #2
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public ProjectService(
			DatabaseContext dbContext, 
			IRepositoryPopulator repoPopulator,
			IPushEventRetriever pushEventRetriever,
			IPushEventProcessor pushEventProcessor,
			IGitHubWebhookValidator webhookValidator,
			IJsonSerializer jsonSerializer,
			ITimeProvider timeProvider)
		{
			_dbContext = dbContext;
			_repoPopulator = repoPopulator;
			_pushEventRetriever = pushEventRetriever;
			_pushEventProcessor = pushEventProcessor;
			_webhookValidator = webhookValidator;
			_jsonSerializer = jsonSerializer;
			_timeProvider = timeProvider;
		}
예제 #3
0
 /// <summary>
 /// Returns a project service instance.
 /// </summary>
 private IProjectService GetProjectService(
     DatabaseContext dbContext,
     IRepositoryPopulator repoPopulator       = null,
     IPushEventRetriever pushEventRetriever   = null,
     IPushEventProcessor pushEventProcessor   = null,
     IGitHubWebhookValidator webhookValidator = null,
     IJsonSerializer jsonSerializer           = null,
     ITimeProvider timeProvider = null)
 {
     return(new ProjectService
            (
                dbContext,
                repoPopulator,
                pushEventRetriever,
                pushEventProcessor,
                webhookValidator,
                jsonSerializer,
                timeProvider
            ));
 }
		/// <summary>
		/// Returns a project service instance.
		/// </summary>
		private IProjectService GetProjectService(
			DatabaseContext dbContext,
			IRepositoryPopulator repoPopulator = null, 
			IPushEventRetriever pushEventRetriever = null,
			IPushEventProcessor pushEventProcessor = null,
			IGitHubWebhookValidator webhookValidator = null,
			IJsonSerializer jsonSerializer = null,
			ITimeProvider timeProvider = null)
		{
			return new ProjectService
			(
				dbContext,
				repoPopulator,
				pushEventRetriever,
				pushEventProcessor,
				webhookValidator,
				jsonSerializer,
				timeProvider
			);
		}