public AzurePipelinesPublisher(IPipelinesExecutionContext executionContext, IClientFactory clientFactory, IFeatureFlagHelper featureFlagHelper, IHtmlReportPublisher htmlReportPublisher, ILogStoreHelper logStoreHelper, bool enableTelemetry) { _telemetryEnabled = enableTelemetry; _clientFactory = clientFactory; _executionContext = executionContext; _featureFlagHelper = featureFlagHelper; _htmlReportPublisher = htmlReportPublisher; _logStoreHelper = logStoreHelper; }
public HtmlReportPublisher( IPipelinesExecutionContext executionContext, IClientFactory clientFactory, ServiceFactory serviceFactory) { _executionContext = executionContext; _clientFactory = clientFactory; _serviceFactory = serviceFactory; }
public void TestInitialize() { _context = new TestPipelinesExecutionContext(_logger); _logger.Log = ""; _mockClientFactory.Reset(); _mockFFHelper.Reset(); _mockHtmlPublisher.Reset(); _mockLogStoreHelper.Reset(); }
public AzurePipelinesPublisher(bool enableTelemetry) { var context = new PipelinesExecutionContext(); _telemetryEnabled = enableTelemetry; _executionContext = context; _clientFactory = new ClientFactory(this.GetVssConnection()); context.SetTelemetryDataCollector(new PipelinesTelemetry(_clientFactory, _telemetryEnabled)); _featureFlagHelper = new FeatureFlagHelper(_clientFactory); _htmlReportPublisher = new HtmlReportPublisher(_executionContext, _clientFactory); _logStoreHelper = new LogStoreHelper(_clientFactory); }
public void TestInitialize() { _mockClientFactory = new Mock <IClientFactory>(); _mockBuildService = new Mock <BuildService>(_mockClientFactory.Object, null); _context = new TestPipelinesExecutionContext(_logger); _logger.Log = ""; _mockFileService = new Mock <FileContainerService>(new Mock <IFileContainerClientHelper>().Object, _context); _serviceFactory = new TestServiceFactory(_mockFileService.Object, _mockBuildService.Object); _mockFileService.Setup(x => x.CopyToContainerAsync(It.IsAny <Tuple <string, string> >(), It.IsAny <CancellationToken>(), It.IsAny <bool>())) .Returns(Task.CompletedTask); _mockBuildService.Setup(x => x.AssociateArtifact( It.IsAny <int>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <Dictionary <string, string> >(), It.IsAny <CancellationToken>())) .Returns(Task.FromResult <BuildArtifact>(null)); }
public virtual BuildService GetBuildService(IClientFactory clientFactory, IPipelinesExecutionContext executionContext) { return(new BuildService(clientFactory, executionContext.ProjectId)); }
public virtual FileContainerService GetFileContainerService(IClientFactory clientFactory, IPipelinesExecutionContext executionContext) { return(new FileContainerService(clientFactory, executionContext)); }
public override FileContainerService GetFileContainerService(IClientFactory clientFactory, IPipelinesExecutionContext executionContext) { return(_fileService); }
public override BuildService GetBuildService(IClientFactory clientFactory, IPipelinesExecutionContext executionContext) { return(_buildService); }
public FileContainerServiceTests() { _context = new TestPipelinesExecutionContext(_logger); }
public HtmlReportPublisher(IPipelinesExecutionContext executionContext, IClientFactory clientFactory) : this(executionContext, clientFactory, new ServiceFactory()) { }
public FileContainerService(IFileContainerClientHelper fileContainerHelper, IPipelinesExecutionContext context) { _fileContainerHelper = fileContainerHelper; _context = context; }
public FileContainerService(IClientFactory clientFactory, IPipelinesExecutionContext context) { _fileContainerHelper = new FileContainerClientHelper(clientFactory); _context = context; }