ITest ApiGetT(String) Method
Get a dummy data object from the cache.
This is useful for mocking data while writing a workflow unit test.
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
Return the data object.
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
T 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.
Example
C#
var testApi = ctx.Use<ITestApi>();
int value = testApi.Get<int>("TestSampleData");