Click or drag to resize
DocumentFakeMethodsDocumentTypeT Method
Fakes the given document type

Namespace: CMS.DocumentEngine.Tests
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
public static void DocumentType<T>(
	this IFakeMethods fake,
	string className,
	Action<DataClassInfo> setup = null
)
where T : new(), TreeNode

Parameters

fake
Type: CMS.DataEngineIFakeMethods
Fake methods
className
Type: SystemString
Class name
setup (Optional)
Type: SystemActionDataClassInfo
Setup action for further fields of the document type

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IFakeMethods. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also