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.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
SyntaxT 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
TReturn the data object.
Examplevar testApi = ctx.Use<ITestApi>();
int value = testApi.Get<int>("TestSampleData");
See Also