AutomatedTestsWithDataFakeObjectTInfo Method |
Fakes the data for the given info
Namespace: CMS.TestsAssembly: CMS.Tests (in CMS.Tests.dll) Version: 9.0.0
Syntax public TInfo FakeObject<TInfo>(
int id,
int siteId = 0,
Action<TInfo> finalizer = null
)
where TInfo : new(), BaseInfo, IInfo
Parameters
- id
- Type: SystemInt32
ID of the fake object - siteId (Optional)
- Type: SystemInt32
Optional site ID of the object - finalizer (Optional)
- Type: SystemActionTInfo
Optional action allowing to seed additional fields.
Type Parameters
- TInfo
Return Value
Type:
TInfoRemarks See Also