@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
22 lines • 856 B
JavaScript
import { ensure, isDefined } from 'tiny-types';
import { CorrelationId, Description } from '../model/index.js';
import { Timestamp } from '../screenplay/index.js';
import { DomainEvent } from './DomainEvent.js';
/**
* @group Events
*/
export class AsyncOperationAborted extends DomainEvent {
description;
correlationId;
static fromJSON(o) {
return new AsyncOperationAborted(Description.fromJSON(o.description), CorrelationId.fromJSON(o.correlationId), Timestamp.fromJSON(o.timestamp));
}
constructor(description, correlationId, timestamp) {
super(timestamp);
this.description = description;
this.correlationId = correlationId;
ensure('description', description, isDefined());
ensure('correlationId', correlationId, isDefined());
}
}
//# sourceMappingURL=AsyncOperationAborted.js.map