Click or drag to resize

ITestApiCreate Method (String, Object, String)

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.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
string Create(
	string dataClassName,
	Object data,
	string registerName = null
)

Parameters

dataClassName
Type: SystemString
Data Class name
data
Type: SystemObject
Data Object to be added.
registerName (Optional)
Type: SystemString
Optional name of sharing data stored in memory. If null, the data object will be added to the case of the workflow.

Return Value

Type: String
Id of the added Data Object.
Examples
var testApi = ctx.Use<ITestApi>();
var doId = testApi.Create("TestSampleData", new 
{
    Name = "Tester",
    IsActive = true,
    Level = 1
});
See Also