Click or drag to resize

ITestApiReplace Method

Replace the value in 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.1.0
Syntax
C#
void Replace(
	string registerName,
	Object value
)

Parameters

registerName
Type: SystemString
Name used to register value will be cached
value
Type: SystemObject
An object value of replacing current value in cache
Examples
var testApi = ctx.Use<ITestApi>();
testApi.Replace("TestSampleData",1);
See Also