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

Base class for FDO tests that use a real FdoCache, or a fake one.
Inheritance: SIL.FieldWorks.Test.TestUtils.BaseTest
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
m_actionHandler IActionHandler
m_internalRestart bool

Protected Methods

Method Description
CreateCache ( ) : SIL.FieldWorks.FDO.FdoCache

Called by FixtureSetup(). Subclasses must override this to create an FdoCache that is loaded with whatever data is needed.

DisposeEverythingButBase ( ) : void

RestartCache ( bool doCommit ) : void

Restart the cache.

SetupEverythingButBase ( ) : void

Private Methods

Method Description
BootstrapSystem ( IProjectIdentifier projectId, BackendBulkLoadDomain loadType, FdoSettings settings ) : SIL.FieldWorks.FDO.FdoCache
FixtureSetup ( ) : void
FixtureTeardown ( ) : void
TestSetup ( ) : void
TestTearDown ( ) : void

Method Details

CreateCache() protected abstract method

Called by FixtureSetup(). Subclasses must override this to create an FdoCache that is loaded with whatever data is needed.
protected abstract CreateCache ( ) : SIL.FieldWorks.FDO.FdoCache
return SIL.FieldWorks.FDO.FdoCache

DisposeEverythingButBase() protected method

protected DisposeEverythingButBase ( ) : void
return void

RestartCache() protected method

Restart the cache.
protected RestartCache ( bool doCommit ) : void
doCommit bool 'True' to end the task and commit the changes. 'False' to skip the commit.
return void

SetupEverythingButBase() protected method

protected SetupEverythingButBase ( ) : void
return void

Property Details

m_actionHandler protected property

protected IActionHandler m_actionHandler
return IActionHandler

m_internalRestart protected property

protected bool m_internalRestart
return bool