Click or drag to resize
AutomatedTestsWithDataFakeObjectTInfo Method
Fakes the data for the given info

Namespace: CMS.Tests
Assembly: CMS.Tests (in CMS.Tests.dll) Version: 9.0.0
Syntax
C#
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: TInfo
Remarks
When finalizer is called, provided TInfo object has following properties already set: ObjectID, ObjectCodeName, ObjectGUID, ObjectDisplayName.
See Also