public void Setup() { _client = new BloomParseClient(); // These substitute keys target the "silbloomlibraryunittests" application so testing won't interfere with the real one. _client.ApiKey = KeyManager.ParseUnitTestApiKey; _client.ApplicationKey = KeyManager.ParseUnitTextApplicationKey; }
public void Setup() { _workFolder = new TemporaryFolder("unittest-" + _thisTestId); _workFolderPath = _workFolder.FolderPath; Assert.AreEqual(0, Directory.GetDirectories(_workFolderPath).Count(), "Some stuff was left over from a previous test"); Assert.AreEqual(0, Directory.GetFiles(_workFolderPath).Count(), "Some stuff was left over from a previous test"); // Todo: Make sure the S3 unit test bucket is empty. // Todo: Make sure the parse.com unit test book table is empty _parseClient = new BloomParseClientDouble(_thisTestId); _htmlThumbNailer = new HtmlThumbNailer(new NavigationIsolator()); _transfer = new BookTransfer(_parseClient, new BloomS3Client(BloomS3Client.UnitTestBucketName), new BookThumbNailer(_htmlThumbNailer), new BookDownloadStartingEvent()); _transfer.BookDownLoaded += (sender, args) => _downloadedBooks.Add(args.BookDetails); }
public void Setup() { _workFolder = new TemporaryFolder("unittest"); _workFolderPath = _workFolder.FolderPath; Assert.AreEqual(0, Directory.GetDirectories(_workFolderPath).Count(), "Some stuff was left over from a previous test"); Assert.AreEqual(0, Directory.GetFiles(_workFolderPath).Count(), "Some stuff was left over from a previous test"); // Todo: Make sure the S3 unit test bucket is empty. // Todo: Make sure the parse.com unit test book table is empty _parseClient = new BloomParseClient(); // These substitute keys target the "silbloomlibraryunittests" application so testing won't interfere with the real one. _parseClient.ApiKey = "HuRkXoF5Z3hv8f3qHE4YAIrDjwNk4VID9gFxda1U"; _parseClient.ApplicationKey = "r1H3zle1Iopm1IB30S4qEtycvM4xYjZ85kRChjkM"; _htmlThumbNailer = new HtmlThumbNailer(new NavigationIsolator()); _transfer = new BookTransfer(_parseClient, new BloomS3Client(BloomS3Client.UnitTestBucketName), _htmlThumbNailer, new BookDownloadStartingEvent()); _transfer.BookDownLoaded += (sender, args) => _downloadedBooks.Add(args.BookDetails); }
// Called by autofac, which creates the one instance and registers it with the server. public CommonApi(BookSelection bookSelection, BloomParseClient parseClient, BloomWebSocketServer webSocketServer) { _bookSelection = bookSelection; _parseClient = parseClient; _webSocketServer = webSocketServer; }
public void Setup() { _client = new BloomParseClient(); }
// Called by autofac, which creates the one instance and registers it with the server. public CommonApi(BookSelection bookSelection, BloomParseClient parseClient) { _bookSelection = bookSelection; _parseClient = parseClient; }
internal HarvesterBookTransfer(BloomParseClient parseClient, BloomS3Client bloomS3Client, BookThumbNailer htmlThumbnailer) : base(parseClient, bloomS3Client, htmlThumbnailer, new Bloom.BookDownloadStartingEvent()) { }