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); _authorProfileGenerator = new AuthorProfileGenerator(_httpClient, _logger, _amazonClient); }