public BookTransfer(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, BookThumbNailer htmlThumbnailer, BookDownloadStartingEvent bookDownloadStartingEvent) { this._parseClient = bloomParseClient; this._s3Client = bloomS3Client; _thumbnailer = htmlThumbnailer; _bookDownloadStartingEvent = bookDownloadStartingEvent; }
public BookTransfer(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, HtmlThumbNailer htmlThumbnailer, BookDownloadStartingEvent bookDownloadStartingEvent) { this._parseClient = bloomParseClient; this._s3Client = bloomS3Client; _htmlThumbnailer = htmlThumbnailer; _bookDownloadStartingEvent = bookDownloadStartingEvent; }
public LoginDialog(BloomParseClient client) { Require.That(client != null); _client = client; InitializeComponent(); _showPasswordCheckBox.Checked = Settings.Default.WebShowPassword; oldText = this.Text; oldLogin = _loginButton.Text; _originalHeight = Height; ShowTermsOfUse(false); }
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"; _transfer = new BookTransfer(_parseClient, new BloomS3Client(BloomS3Client.UnitTestBucketName)); }
public BookTransfer(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client) { this._parseClient = bloomParseClient; this._s3Client = bloomS3Client; }
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 BookUpload(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, BookThumbNailer htmlThumbnailer) { this.ParseClient = bloomParseClient; this._s3Client = bloomS3Client; _thumbnailer = htmlThumbnailer; }
public LoginDialog(BloomParseClient client) { Require.That(client != null); _client = client; InitializeComponent(); }
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() { _client = new BloomParseClient(); }
public BookDownload(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, BookDownloadStartingEvent bookDownloadStartingEvent) { this._s3Client = bloomS3Client; _bookDownloadStartingEvent = bookDownloadStartingEvent; }