import {StageCrewMember} from '@serenity-js/core/lib/stage'
public interface | source

StageCrewMember

You can think of the StageCrewMember as an in-memory micro-service that reacts to DomainEvents from the StageManager.

Every StageCrewMember receives a reference to the Stage, and therefore StageManager as well, which enables them to emit DomainEvents back.

Useful when you're interested in implementing custom reporters.

Extends:

ListensToDomainEvents → StageCrewMember

Direct Implemented:

Member Summary

Public Members
public

assignedTo: function(stage: Stage): StageCrewMember

Assigns a Stage to this StageCrewMember

Inherited Summary

From class ListensToDomainEvents
public

notifyOf: function(event: DomainEvent): void

Handles DomainEvent objects emitted by the Stage that this StageCrewMember is assigned to.

Public Members

public assignedTo: function(stage: Stage): StageCrewMember source

Assigns a Stage to this StageCrewMember