Create a new entity with a specified entity state for testing purposes

Namespace:  Mindscape.LightSpeed.Testing
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public static TEntity Create<TEntity>(
	EntityState entityState,
	Object id
) where TEntity : new(), Entity
Visual Basic (Declaration)
Public Shared Function Create(Of TEntity As {New, Entity}) ( _
	entityState As EntityState, _
	id As Object _
) As TEntity

Parameters

entityState
Type: Mindscape.LightSpeed..::.EntityState
The entity state of the entity to be created.
id
Type: System..::.Object
The identity of the entity to be created

Type Parameters

TEntity
The type of entity to be created.

Return Value

A test entity with the state specified

Remarks

This method should only be used for testing purposes. LightSpeed manages entity state internally.

See Also