Click or drag to resize
UnitTestExtensionsFakeExecution Method
Fakes the execution of a query

Namespace: CMS.Tests
Assembly: CMS.Tests (in CMS.Tests.dll) Version: 8.2.23
Syntax
C#
public static BeforeConditionalEvent<ExecuteQueryEventArgs<DataSet>> FakeExecution(
	this IDataQuery query,
	Action<ExecuteQueryEventArgs<DataSet>> execution
)

Parameters

query
Type: CMS.DataEngineIDataQuery
Query to fake
execution
Type: SystemActionExecuteQueryEventArgsDataSet
Execution code

Return Value

Type: BeforeConditionalEventExecuteQueryEventArgsDataSet

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataQuery. 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