public AzureDevOpsLogic(OptionsDto optionsDto) { _optionsDto = optionsDto; _httpClient = new CustomHttpClient(); _fileBuildOrderLogic = new FileBuildOrderLogic(optionsDto); //Define PAT token var authToken = Convert.ToBase64String(Encoding.ASCII.GetBytes($":{_optionsDto.ApiKey}")); //Define Authorization _httpClient.SetAuthorization(new AuthenticationHeaderValue("Basic", authToken)); }
public AzureDevOps_Platform_Test() { _options = new OptionsDto { Mode = "AzureDevOps", ApiKey = "cqjk3s2pkv5x5o57feaw6j2qs4id2thfsw3w544hiqgt347gfoja", SourceUri = "http://kamina.azuredevops.local/DefaultCollection/Kamina", ProjectName = "Tengen Toppa Gurren Lagann", SourceBranch = "develop", LastKnownFile = "Input/BuildOrder.json", MaxErrorCycles = 6 }; _azureDevOps = new AzureDevOpsLogic(_options); _fileBuildOrderLogic = new FileBuildOrderLogic(_options); }