Exemple #1
0
        private string UploadBook(string path)
        {
            string storageKeyOfBookFolder = Guid.NewGuid().ToString();

            _client.UploadBook(storageKeyOfBookFolder, path, new NullProgress());
            return(storageKeyOfBookFolder);
        }
        public void UploadBook_EmptyFolder_DoesntThrow()
        {
            var storageKeyOfBookFolder = Guid.NewGuid().ToString();

            using (var f = new TemporaryFolder(_workFolder, "emptyFolder"))
            {
                _client.UploadBook(storageKeyOfBookFolder, f.FolderPath, new NullProgress());
            }
            // This doesn't actually create an entry, since the folder is empty,
            // so no need to delete it after our test
        }
 private void UploadBook(string bookFolder)
 {
     _client.UploadBook(_storageKeyOfBookFolder, bookFolder, new NullProgress(), pdfToInclude: "preview.pdf");
 }