C# Class BloomTests.WebLibraryIntegration.BookTransferTests

Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
UploadAndDownLoadNewBook ( string bookName, string id, string uploader, string data, bool isTemplate = false ) : string>.Tuple

Review: this is fragile and expensive. We're doing real internet traffic and creating real objects on S3 and parse.com which (to a very small extent) costs us real money. This will be slow. Also, under S3 eventual consistency rules, there is no guarantee that the data we just created will actually be retrievable immediately.

Private Methods

Method Description
BookExists_ExistingBook_ReturnsTrue ( ) : void
BookExists_NonExistentBook_ReturnsFalse ( ) : void
BookWithPeriodInTitle_DoesNotGetTruncatedPdfName ( ) : void
DownloadUrl_GetsDocument ( ) : void
GetLanguagePointers_CreatesLanguagesButDoesNotDuplicate ( ) : void
Login ( ) : void
MakeBook ( string bookName, string id, string uploader, string data ) : string
RoundTripBookLocksIt ( ) : void
RoundTripOfTemplateBookDoesNotLockIt ( ) : void
Setup ( ) : void
SmokeTest_DownloadKnownBookFromProductionSite ( ) : void
TearDown ( ) : void
TestFixtureSetUp ( ) : void
UploadBook_FillsInMetaData ( ) : void
UploadBook_NotLoggedIn_Throws ( ) : void
UploadBook_SameId_Replaces ( ) : void
UploadBooks_SimilarIds_DoNotOverwrite ( ) : void

Method Details

UploadAndDownLoadNewBook() public method

Review: this is fragile and expensive. We're doing real internet traffic and creating real objects on S3 and parse.com which (to a very small extent) costs us real money. This will be slow. Also, under S3 eventual consistency rules, there is no guarantee that the data we just created will actually be retrievable immediately.
public UploadAndDownLoadNewBook ( string bookName, string id, string uploader, string data, bool isTemplate = false ) : string>.Tuple
bookName string
id string
uploader string
data string
isTemplate bool
return string>.Tuple