Table of Contents

Interface IPersona

Namespace
CSF.Screenplay
Assembly
CSF.Screenplay.Abstractions.dll

A persona is a factory for a commonly-used actor

public interface IPersona : IHasName
Inherited Members

Remarks

In Screenplay is is recommended to use memorable actors which are widely understood and recognisable by the team. This is easier if the composition of an actor is the same across every IPerformance in which they participate.

By using a separate persona implementation for each named actor, the developer can ensure consistent creation for instances of those actors.

Methods

GetActor(Guid)

Gets the actor which is associated with the current persona

Actor GetActor(Guid performanceIdentity)

Parameters

performanceIdentity Guid

A unique identity for the currently-executing performance

Returns

Actor

Remarks

Implementors should not only create and return the actor from this method, but also configure the actor with the standard abilities associated with this persona.