public DownloadController( IBookDownloader bookDownloader, INavigationService navigationService, INotificationsService notificationsService, IEventAggregator eventAggregator, IDownloadsContainer container, IBookDownloadsRepository bookDownloadsRepository) { _bookDownloader = bookDownloader; _navigationService = navigationService; _notificationsService = notificationsService; _eventAggregator = eventAggregator; _container = container; _bookDownloadsRepository = bookDownloadsRepository; _bookDownloader.DownloadCompleted += BookDownloaderOnDownloadCompleted; _bookDownloader.DownloadError += BookDownloaderOnDownloadError; }
public BookService(IBookDownloader downloader, IDeserializer deserializer) { this.downloader = downloader; this.deserializer = deserializer; }