Ejemplo n.º 1
0
 public BuildDataService(ITeamCityClient teamCityClient, IBuildMapper buildMapper)
 {
     if (teamCityClient == null)
     {
         throw new ArgumentNullException(nameof(teamCityClient));
     }
     if (buildMapper == null)
     {
         throw new ArgumentNullException(nameof(buildMapper));
     }
     _teamCityClient = teamCityClient;
     _buildMapper    = buildMapper;
 }
Ejemplo n.º 2
0
 public BuildDataService(ITeamCityClient teamCityClient, IBuildMapper buildMapper)
 {
     _teamCityClient = teamCityClient ?? throw new ArgumentNullException(nameof(teamCityClient));
     _buildMapper    = buildMapper ?? throw new ArgumentNullException(nameof(buildMapper));
 }
Ejemplo n.º 3
0
 public BuildDataService(ITeamCityClient teamCityClient, IBuildMapper buildMapper, IOptions <ApiOptions> apiOptions)
 {
     _teamCityClient = teamCityClient ?? throw new ArgumentNullException(nameof(teamCityClient));
     _buildMapper    = buildMapper ?? throw new ArgumentNullException(nameof(buildMapper));
     _apiOptions     = apiOptions?.Value ?? throw new ArgumentNullException(nameof(apiOptions));
 }
Ejemplo n.º 4
0
 public TeamCityController(ITeamCityService teamCityService, IBuildMapper buildMapper, ISettingsService settingsService)
 {
     _teamCityService = teamCityService;
     _buildMapper     = buildMapper;
     _settingsService = settingsService;
 }