Table of Contents

Interface IHasAbilities

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

An object which has & is able to gain abilities.

public interface IHasAbilities
Extension Methods

Remarks

Abilities are the mechanism by which actors: ICanPerform interact with the application and system. They are arbitrary objects which provide functionality.

Properties

Abilities

Gets the collection of the actor's abilities.

IReadOnlyCollection<object> Abilities { get; }

Property Value

IReadOnlyCollection<object>

Methods

IsAbleTo(object)

Adds an ability to the specified actor

void IsAbleTo(object ability)

Parameters

ability object

The ability to add to the actor

Exceptions

ArgumentNullException

If ability is null

InvalidOperationException

If the actor already has an ability of the same type as ability, or which derives from the same type