コード例 #1
0
 public BookTransfer(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, BookThumbNailer htmlThumbnailer, BookDownloadStartingEvent bookDownloadStartingEvent)
 {
     this._parseClient = bloomParseClient;
     this._s3Client = bloomS3Client;
     _thumbnailer = htmlThumbnailer;
     _bookDownloadStartingEvent = bookDownloadStartingEvent;
 }
コード例 #2
0
 public BookTransfer(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, HtmlThumbNailer htmlThumbnailer, BookDownloadStartingEvent bookDownloadStartingEvent)
 {
     this._parseClient          = bloomParseClient;
     this._s3Client             = bloomS3Client;
     _htmlThumbnailer           = htmlThumbnailer;
     _bookDownloadStartingEvent = bookDownloadStartingEvent;
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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));
 }
コード例 #6
0
ファイル: BookTransfer.cs プロジェクト: jorik041/BloomDesktop
 public BookTransfer(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client)
 {
     this._parseClient = bloomParseClient;
     this._s3Client = bloomS3Client;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 public BookUpload(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, BookThumbNailer htmlThumbnailer)
 {
     this.ParseClient = bloomParseClient;
     this._s3Client   = bloomS3Client;
     _thumbnailer     = htmlThumbnailer;
 }
コード例 #9
0
ファイル: LoginDialog.cs プロジェクト: jorik041/BloomDesktop
 public LoginDialog(BloomParseClient client)
 {
     Require.That(client != null);
     _client = client;
     InitializeComponent();
 }
コード例 #10
0
 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);
 }
コード例 #11
0
 public void Setup()
 {
     _client = new BloomParseClient();
 }
コード例 #12
0
ファイル: BookDownload.cs プロジェクト: gmartin7/myBloomFork
 public BookDownload(BloomParseClient bloomParseClient, BloomS3Client bloomS3Client, BookDownloadStartingEvent bookDownloadStartingEvent)
 {
     this._s3Client             = bloomS3Client;
     _bookDownloadStartingEvent = bookDownloadStartingEvent;
 }