C# Class SIL.FieldWorks.FDO.FDOTests.MemoryOnlyBackendProviderTestBase

Base class for testing the FdoCache with the FDOBackendProviderType.kMemoryOnly backend provider where each test should start with a fresh system. This class does *not* restore the data between test runs; derive from MemoryOnlyBackendProviderRestoredForEachTestTestBase if that is desired.
Inheritance: FdoTestBase
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode Description
AddBtFootnote ( ICmTranslation trans, int ichPos, int ws, IStFootnote footnote, string footnoteBtText ) : ICmTranslation

Add a back translation footnote in the given translation for the given footnote. Inserts a ref ORC in the translation and sets the the BT text in the footnote.

AddBtFootnote ( ICmTranslation trans, int ichPos, int ws, IStFootnote footnote ) : void

Add a back translation footnote ref ORC in the given translation for the given footnote

ChangeDefaultVernWs ( IWritingSystem ws ) : void

Change the default vernacular writing system. (This removes any previous vernacular writing system(s) from the list.)

Méthodes protégées

Méthode Description
CreateCache ( ) : FdoCache

Override to create and load a very basic cache.

RestartCache ( bool doCommit ) : void

Override to do nothing.

Method Details

AddBtFootnote() public méthode

Add a back translation footnote in the given translation for the given footnote. Inserts a ref ORC in the translation and sets the the BT text in the footnote.
public AddBtFootnote ( ICmTranslation trans, int ichPos, int ws, IStFootnote footnote, string footnoteBtText ) : ICmTranslation
trans ICmTranslation The given back translation of an StTxtPara
ichPos int The 0-based character offset into the back translation string /// at which we will insert the reference ORC
ws int writing system of the BT and ORC
footnote IStFootnote The given footnote
footnoteBtText string text for the back translation of the footnote
Résultat ICmTranslation

AddBtFootnote() public méthode

Add a back translation footnote ref ORC in the given translation for the given footnote
public AddBtFootnote ( ICmTranslation trans, int ichPos, int ws, IStFootnote footnote ) : void
trans ICmTranslation The given translation, usually a back translation
ichPos int The 0-based character offset into the translation string /// at which we will insert the reference ORC
ws int writing system of the ORC
footnote IStFootnote The given footnote
Résultat void

ChangeDefaultVernWs() public méthode

Change the default vernacular writing system. (This removes any previous vernacular writing system(s) from the list.)
public ChangeDefaultVernWs ( IWritingSystem ws ) : void
ws IWritingSystem the writing system which will become the default /// vernacular writing system
Résultat void

CreateCache() protected méthode

Override to create and load a very basic cache.
protected CreateCache ( ) : FdoCache
Résultat FdoCache

RestartCache() protected méthode

Override to do nothing.
protected RestartCache ( bool doCommit ) : void
doCommit bool 'True' to end the task and commit the changes. 'False' to skip the commit.
Résultat void