C# Class BloomTests.Book.BookTestsBase

Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Protected Properties

Property Type Description
_bookDom Bloom.Book.HtmlDom
_collectionSettings Bloom.Collection.CollectionSettings
_metadata Bloom.Book.BookInfo
_pageListChangedEvent PageListChangedEvent
_pageSelection Mock
_storage Mock
_templateFinder Mock
_testFolder SIL.TestUtilities.TemporaryFolder
_thumbnailer Mock

Public Methods

Method Description
MakeDom ( string bodyContents, string headContents = "" ) : HtmlDom

Protected Methods

Method Description
CreateBook ( ) : Book
CreateBook ( CollectionSettings collectionSettings ) : Book
CreateDefaultCollectionsSettings ( ) : CollectionSettings
MakeSamplePngImageWithMetadata ( string path ) : void
SetDom ( string bodyContents, string headContents = "" ) : void

Private Methods

Method Description
GetThreePageDom ( ) : XmlDocument
Setup ( ) : void
TearDown ( ) : void

Method Details

CreateBook() protected method

protected CreateBook ( ) : Book
return Bloom.Book.Book

CreateBook() protected method

protected CreateBook ( CollectionSettings collectionSettings ) : Book
collectionSettings Bloom.Collection.CollectionSettings
return Bloom.Book.Book

CreateDefaultCollectionsSettings() protected method

protected CreateDefaultCollectionsSettings ( ) : CollectionSettings
return Bloom.Collection.CollectionSettings

MakeDom() public static method

public static MakeDom ( string bodyContents, string headContents = "" ) : HtmlDom
bodyContents string
headContents string
return Bloom.Book.HtmlDom

MakeSamplePngImageWithMetadata() protected method

protected MakeSamplePngImageWithMetadata ( string path ) : void
path string
return void

SetDom() protected method

protected SetDom ( string bodyContents, string headContents = "" ) : void
bodyContents string
headContents string
return void

Property Details

_bookDom protected property

protected HtmlDom,Bloom.Book _bookDom
return Bloom.Book.HtmlDom

_collectionSettings protected property

protected CollectionSettings,Bloom.Collection _collectionSettings
return Bloom.Collection.CollectionSettings

_metadata protected property

protected BookInfo,Bloom.Book _metadata
return Bloom.Book.BookInfo

_pageListChangedEvent protected property

protected PageListChangedEvent _pageListChangedEvent
return PageListChangedEvent

_pageSelection protected property

protected Mock _pageSelection
return Mock

_storage protected property

protected Mock _storage
return Mock

_templateFinder protected property

protected Mock _templateFinder
return Mock

_testFolder protected property

protected TemporaryFolder,SIL.TestUtilities _testFolder
return SIL.TestUtilities.TemporaryFolder

_thumbnailer protected property

protected Mock _thumbnailer
return Mock