C# Class SIL.FieldWorks.Common.Framework.TestAccessorForFindOrCreateStyle

StylesXmlAccessor is an abstract class designed to be subclassed for a specific stylesheet. Here, so far, we just want to test one method of the base class, so we make a trivial subclass which trivially implements (by throwing) abstract methods not needed by the one we want to test. The FindOrCreateStyle method is normally called (indirectly) by CreateStyles(), which initializes m_databaseStyles to contain all the pre-existing styles. For this test we just do this in the constructor of our private subclass.
Inheritance: SIL.FieldWorks.Common.Framework.StylesXmlAccessor
显示文件 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
TestAccessorForFindOrCreateStyle ( SIL.FieldWorks.FDO.FdoCache cache ) : System

Method Details

TestAccessorForFindOrCreateStyle() public method

public TestAccessorForFindOrCreateStyle ( SIL.FieldWorks.FDO.FdoCache cache ) : System
cache SIL.FieldWorks.FDO.FdoCache
return System