public WorkItemImporter(bool force, MigrationRepository migrationRepository, AdoContext adoContext, JiraContext jiraContext, StatusCsvMapper statusMapper, IssueTypeCsvMapper issueTypeCsvMapper) { // TODO: interface for the mappers to alternate mapping strategies _force = force; _migrationRepository = migrationRepository ?? throw new ArgumentNullException(nameof(migrationRepository)); _adoContext = adoContext ?? throw new ArgumentNullException(nameof(adoContext)); _jiraContext = jiraContext ?? throw new ArgumentNullException(nameof(jiraContext)); _statusMapper = statusMapper ?? throw new ArgumentNullException(nameof(statusMapper)); _issueTypeCsvMapper = issueTypeCsvMapper ?? throw new ArgumentNullException(nameof(issueTypeCsvMapper)); _adoApi = _adoContext.Api; _jiraApi = _jiraContext.Api; }
public AdoContext(IAdoApiSettings apiSettings, CancellationToken cancellationToken) { ApiSettings = apiSettings; Api = new AdoApi(apiSettings, cancellationToken); }