internal TeamCityServer( string serverUrl, string serverUrlBase, ITeamCityService service, ILogger logger) { if (String.IsNullOrWhiteSpace(serverUrl)) { throw new ArgumentNullException(nameof(serverUrl)); } this.ServerUrl = serverUrl; if (String.IsNullOrWhiteSpace(serverUrlBase)) { this.ServerUrlBase = string.Empty; } else { this.ServerUrlBase = serverUrlBase; } this.Service = service ?? throw new ArgumentNullException(nameof(service)); this.Logger = logger ?? NullLogger.Instance; }
public Paged( TeamCityServer instance, Func <Task <TTeamCityDto> > getFirst, Func <TTeamCityDto, Task <Page <TTeamCityEntity> > > convertToPage) { this._instance = instance; this._service = instance.Service; this._getFirst = getFirst; this._convertToPage = convertToPage; }
public void Arrange() { _sucessBuildId = "827572"; _teamCityService = Substitute.For <ITeamCityService>(); _teamCityService.GetBuildStatus(_sucessBuildId).Returns("SUCCESS"); _testEnvironmentService = Substitute.For <ITestEnvironmentService>(); _buildStatusDataStorageService = Substitute.For <IBuildStatusDataStorageService>(); _updateBuildStatusController = new UpdateBuildStatusController(_teamCityService, _testEnvironmentService, _buildStatusDataStorageService); SetupController(HttpMethod.Post); }
public ProjectDetails() { _teamCityService = DependencyService.Get <ITeamCityService>(); BuildTypeCollection = new ObservableCollection <BuildType>(); InitializeComponent(); // TODO: This is synchronous loading. Not good. Refactor to make it asynchronous LoadProjectBuildTypes(); }
public Projects() { ProjectsCollection = new ObservableCollection <Project>(); InitializeComponent(); _teamCityService = DependencyService.Get <ITeamCityService>(); ProjectsList.ItemsSource = ProjectsCollection; ProjectsList.ItemSelected += ProjectsList_ItemSelected; Filter.TextChanged += Filter_TextChanged; // TODO: This is synchronous loading. Not good. Refactor to make it asynchronous RefreshProjectList(); }
public BuildsController(ITeamCityService teamCityService) { _teamCityService = teamCityService; }
public BuildService(ITeamCityService teamCityService) { _teamCityService = teamCityService; }
public BuildTypeService(ITeamCityService teamCityService, IBuildService buildService) { _teamCityService = teamCityService; _buildService = buildService; }
public TeamCityPoller() { // TODO: Fix Dependecy Injection on these services. _tcService = new TeamCityService(); _nodeService = new NodeService(); }
public UpdateBuildStatusController(ITeamCityService teamCityService, ITestEnvironmentService testEnvironmentService, IBuildStatusDataStorageService buildStatusDataStorageService) { _teamCityService = teamCityService; _testEnvironmentService = testEnvironmentService; _buildStatusDataStorageService = buildStatusDataStorageService; }
public TeamCityController(ITeamCityService teamCityService, IBuildMapper buildMapper, ISettingsService settingsService) { _teamCityService = teamCityService; _buildMapper = buildMapper; _settingsService = settingsService; }
internal CETeamCityService(string user, string password) { _service = new TeamCityService(user, password); }