Click or drag to resize

ITestApiCreate Method (String, String)

Create a Dummy Data Object and persist it to 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,
	string registerName = null
)

Parameters

dataClassName
Type: SystemString
The Data Class name.
registerName (Optional)
Type: SystemString
Optional name of sharing data stored in memory.

Return Value

Type: String
The Id data object just created.
Examples
var testApi = ctx.Use<ITestApi>();
var doId = testApi.Create("TestSampleData");
See Also