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

Namespace: CMS.Tests
Assembly: CMS.Tests (in CMS.Tests.dll) Version: 9.0.0
public static BeforeConditionalEvent<ExecuteQueryEventArgs<DataSet>> FakeExecution(
	this IDataQuery query,
	Action<ExecuteQueryEventArgs<DataSet>> execution,
	bool cancel = true


Type: CMS.DataEngineIDataQuery
Query to fake
Type: SystemActionExecuteQueryEventArgsDataSet
Execution code
cancel (Optional)
Type: SystemBoolean
True when query execution should be canceled

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