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 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:
StringThe Id data object just created.
Examples var testApi = ctx.Use<ITestApi>();
var doId = testApi.Create("TestSampleData");
See Also