public BuildMapper(IBuildConfigurationMapper buildConfigurationMapper, IBuildChangeMapper buildChangeMapper, IPropertyMapper propertyMapper, IAgentMapper agentMapper, IBuildStatusMapper buildStatusMapper) { if (buildConfigurationMapper == null) { throw new ArgumentNullException(nameof(buildConfigurationMapper)); } if (buildChangeMapper == null) { throw new ArgumentNullException(nameof(buildChangeMapper)); } if (propertyMapper == null) { throw new ArgumentNullException(nameof(propertyMapper)); } if (agentMapper == null) { throw new ArgumentNullException(nameof(agentMapper)); } if (buildStatusMapper == null) { throw new ArgumentNullException(nameof(buildStatusMapper)); } _buildConfigurationMapper = buildConfigurationMapper; _buildChangeMapper = buildChangeMapper; _propertyMapper = propertyMapper; _agentMapper = agentMapper; _buildStatusMapper = buildStatusMapper; }
public BuildMapper( IBuildConfigurationMapper buildConfigurationMapper, IBuildChangeMapper buildChangeMapper, IPropertyMapper propertyMapper, IAgentMapper agentMapper, IBuildStatusMapper buildStatusMapper, IConfigurationRepository configurationRepository) { _buildConfigurationMapper = buildConfigurationMapper ?? throw new ArgumentNullException(nameof(buildConfigurationMapper)); _buildChangeMapper = buildChangeMapper ?? throw new ArgumentNullException(nameof(buildChangeMapper)); _propertyMapper = propertyMapper ?? throw new ArgumentNullException(nameof(propertyMapper)); _agentMapper = agentMapper ?? throw new ArgumentNullException(nameof(agentMapper)); _buildStatusMapper = buildStatusMapper ?? throw new ArgumentNullException(nameof(buildStatusMapper)); _configurationRepository = configurationRepository ?? throw new ArgumentNullException(nameof(configurationRepository)); }
public BuildConfigurationDataService(ITeamCityClient teamCityClient, IBuildConfigurationMapper buildConfigurationMapper) { if (teamCityClient == null) { throw new ArgumentNullException(nameof(teamCityClient)); } if (buildConfigurationMapper == null) { throw new ArgumentNullException(nameof(buildConfigurationMapper)); } _teamCityClient = teamCityClient; _buildConfigurationMapper = buildConfigurationMapper; }