C# Класс 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.
Наследование: FdoTestBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.)

Защищенные методы

Метод Описание
CreateCache ( ) : FdoCache

Override to create and load a very basic cache.

RestartCache ( bool doCommit ) : void

Override to do nothing.

Описание методов

AddBtFootnote() публичный Метод

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
Результат ICmTranslation

AddBtFootnote() публичный Метод

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
Результат void

ChangeDefaultVernWs() публичный Метод

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
Результат void

CreateCache() защищенный Метод

Override to create and load a very basic cache.
protected CreateCache ( ) : FdoCache
Результат FdoCache

RestartCache() защищенный Метод

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.
Результат void