ITestApiGetT Method (String)
|
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.1.0
Syntax T Get<T>(
string registerName
)
Parameters
- registerName
- Type: SystemString
Name used to register value will be cached
Type Parameters
- T
- Type of the cached object.
Return Value
Type:
TReturn the data object.
Examples var testApi = ctx.Use<ITestApi>();
int value = testApi.Get<int>("TestSampleData");
See Also