Click or drag to resize

ITestApiSet Method

Set a dummy data object into 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#
void Set(
	string registerName,
	Object value
)

Parameters

registerName  String
Name used to register value will be cached
value  Object
An object value stored in cache
Example
C#
var testApi = ctx.Use<ITestApi>();
testApi.Set("TestSampleData",1);
See Also