Changes the EntityState property of an entity 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 UpdateEntityState<TEntity>(
	TEntity entity,
	EntityState entityState
) where TEntity : Entity
Visual Basic (Declaration)
Public Shared Function UpdateEntityState(Of TEntity As Entity) ( _
	entity As TEntity, _
	entityState As EntityState _
) As TEntity

Parameters

entity
Type: TEntity
The entity to change the state of
entityState
Type: Mindscape.LightSpeed..::.EntityState
The entity state to be applied

Type Parameters

TEntity

Return Value

The entity with the changed entity state

Remarks

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

See Also