ITestApiCreate(String, Object, String) Method
|
Persist a Data Object in the database.
The system will automatically clean up the data object after the test is finished.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxstring Create(
string dataClassName,
Object data,
string registerName = null
)
Parameters
- dataClassName String
- Data Class name
- data Object
- Data Object to be added.
- registerName String (Optional)
- Optional name of sharing data stored in memory.
If null, the data object will be added to the case of the workflow.
Return Value
StringId of the added Data Object.
Examplevar testApi = ctx.Use<ITestApi>();
var doId = testApi.Create("TestSampleData", new
{
Name = "Tester",
IsActive = true,
Level = 1
});
See Also