Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
 //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;
 }
Exemplo n.º 8
0
 public void Setup()
 {
     _logger           = new Logger();
     _httpClient       = new HttpClient(_logger);
     _amazonInfoParser = new AmazonInfoParser(_logger, _httpClient);
 }
Exemplo n.º 9
0
 public AmazonClient(IHttpClient httpClient, IAmazonInfoParser amazonInfoParser, ILogger logger)
 {
     _httpClient       = httpClient;
     _amazonInfoParser = amazonInfoParser;
     _logger           = logger;
 }