/// <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; }
/// <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 ); }