Click or drag to resize

ITestApiGetT(String) Method

Get a dummy data object from the cache. This is useful for mocking data while writing a workflow unit test.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
T Get<T>(
	string registerName
)

Parameters

registerName  String
Name used to register value will be cached

Type Parameters

T
Type of the cached object.

Return Value

T
Return the data object.
Example
C#
var testApi = ctx.Use<ITestApi>();
int value = testApi.Get<int>("TestSampleData");
See Also