public frmMain( ILogger logger, IHttpClient httpClient, Container diContainer, IAuthorProfileGenerator authorProfileGenerator, IAmazonClient amazonClient, PreviewProviderFactory previewProviderFactory, IAmazonInfoParser amazonInfoParser, IAliasesRepository aliasesRepository, IPreviewDataExporter previewDataExporter, XRayExporterFactory xrayExporterFactory, ChaptersService chaptersService, IXRayService xrayService, ITermsService termsService) { InitializeComponent(); _progress = new ProgressBarCtrl(prgBar); var rtfLogger = new RtfLogger(txtOutput); _logger = logger; _diContainer = diContainer; _authorProfileGenerator = authorProfileGenerator; _amazonClient = amazonClient; _previewProviderFactory = previewProviderFactory; _amazonInfoParser = amazonInfoParser; _aliasesRepository = aliasesRepository; _previewDataExporter = previewDataExporter; _xrayExporterFactory = xrayExporterFactory; _chaptersService = chaptersService; _xrayService = xrayService; _termsService = termsService; _logger.LogEvent += rtfLogger.Log; _httpClient = httpClient; }
public void Setup() { _logger = new Logger(); _httpClient = new HttpClient(_logger); _amazonInfoParser = new AmazonInfoParser(_logger, _httpClient); _amazonClient = new AmazonClient(_httpClient, _amazonInfoParser, _logger); _goodreads = new SecondarySourceGoodreads(_logger, _httpClient, _amazonClient); }
public void Setup() { _logger = new Logger(); _httpClient = new HttpClient(_logger); _amazonInfoParser = new AmazonInfoParser(_logger, _httpClient); _amazonClient = new AmazonClient(_httpClient, _amazonInfoParser, _logger); _authorProfileGenerator = new AuthorProfileGenerator(_httpClient, _logger, _amazonClient); }
public void Setup() { _logger = new ConsoleLogger(); _httpClient = new HttpClient(_logger); _amazonInfoParser = new AmazonInfoParser(_logger, _httpClient); _amazonClient = new AmazonClient(_httpClient, _amazonInfoParser, _logger); _authorProfileGenerator = new AuthorProfileGenerator(_httpClient, _logger, _amazonClient); _secondarySourceGoodreads = new SecondarySourceGoodreads(_logger, _httpClient, _amazonClient); _endActionsArtifactService = new EndActionsArtifactService(_logger); }
public EndActionsDataGenerator( ILogger logger, IHttpClient httpClient, IAmazonClient amazonClient, IAmazonInfoParser amazonInfoParser, IRoentgenClient roentgenClient) { _logger = logger; _httpClient = httpClient; _amazonClient = amazonClient; _amazonInfoParser = amazonInfoParser; _roentgenClient = roentgenClient; }
public EndActionsDataGenerator( ILogger logger, IHttpClient httpClient, IAmazonClient amazonClient, IAmazonInfoParser amazonInfoParser, IRoentgenClient roentgenClient, IReadingTimeService readingTimeService, IPageCountService pageCountService) { _logger = logger; _httpClient = httpClient; _amazonClient = amazonClient; _amazonInfoParser = amazonInfoParser; _roentgenClient = roentgenClient; _readingTimeService = readingTimeService; _pageCountService = pageCountService; }
//Requires an already-built AuthorProfile and the BaseEndActions.txt file // TODO Move non-DI params from constructor to function public EndActions( AuthorProfileGenerator.Response authorProfile, BookInfo book, long erl, ISecondarySource dataSource, Settings settings, Func <string, string, string> asinPrompt, ILogger logger, IHttpClient httpClient, IAmazonClient amazonClient, IAmazonInfoParser amazonInfoParser) { _authorProfile = authorProfile; curBook = book; _erl = erl; _dataSource = dataSource; _settings = settings; _asinPrompt = asinPrompt; _logger = logger; _httpClient = httpClient; _amazonClient = amazonClient; _amazonInfoParser = amazonInfoParser; }
public void Setup() { _logger = new Logger(); _httpClient = new HttpClient(_logger); _amazonInfoParser = new AmazonInfoParser(_logger, _httpClient); }
public AmazonClient(IHttpClient httpClient, IAmazonInfoParser amazonInfoParser, ILogger logger) { _httpClient = httpClient; _amazonInfoParser = amazonInfoParser; _logger = logger; }