Replace the value in the cache.
This is useful for mocking data while writing a workflow unit test.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxvoid Replace(
string registerName,
Object value
)
Parameters
- registerName String
- Name used to register value will be cached
- value Object
- An object value of replacing current value in cache
Examplevar testApi = ctx.Use<ITestApi>();
testApi.Replace("TestSampleData",1);
See Also